From 73c61ed1f4703050f9f2337b77bbb4e39e66053f Mon Sep 17 00:00:00 2001 From: Jamie Cobbett Date: Fri, 29 Nov 2024 22:59:40 +0000 Subject: [PATCH] Add bigdecimal dependency to fix deprecation warning for Ruby 3.4 bigdecimal will no longer be a default gem in Ruby 3.4, so Ruby 3.3 prints a warning if it is not loaded: /Users/jamiecobbett/.asdf/installs/ruby/3.3.6/lib/ruby/gems/3.3.0/gems/json-schema-5.1.0/lib/json-schema/validator.rb:3: warning: bigdecimal was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.4.0. You can add bigdecimal to your Gemfile or gemspec to silence this warning. Fixing this now also pre-empts errors when trying to use the gem on Ruby 3.4+ when it is released. --- json-schema.gemspec | 1 + 1 file changed, 1 insertion(+) diff --git a/json-schema.gemspec b/json-schema.gemspec index 62c8f9d6..1c58137c 100644 --- a/json-schema.gemspec +++ b/json-schema.gemspec @@ -23,4 +23,5 @@ Gem::Specification.new do |s| s.add_development_dependency 'webmock', '~> 3.23' s.add_dependency 'addressable', '~> 2.8' + s.add_dependency 'bigdecimal', '~> 3.1' end