From 29df685832c569b57ffeac0a097f6d820b58fd6b Mon Sep 17 00:00:00 2001 From: "J.W. Koelewijn" Date: Tue, 28 Jul 2020 14:17:27 +0200 Subject: [PATCH 1/2] Updated json gem --- mordor.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mordor.gemspec b/mordor.gemspec index e531829..9c99827 100644 --- a/mordor.gemspec +++ b/mordor.gemspec @@ -17,7 +17,7 @@ Gem::Specification.new do |s| s.homepage = 'http://github.com/jwkoelewijn/mordor/' s.add_runtime_dependency 'extlib' - s.add_runtime_dependency 'json', '~> 1.8.5' + s.add_runtime_dependency 'json', '~> 2.3.0' s.add_runtime_dependency 'mongo', '< 2.0.0' s.add_development_dependency 'rack-test' From 06a07fe634ed8c46e8c8a69ac53a61ec5cdbae55 Mon Sep 17 00:00:00 2001 From: "J.W. Koelewijn" Date: Tue, 28 Jul 2020 14:22:57 +0200 Subject: [PATCH 2/2] Get rid of deprecation warning --- spec/mordor/resource_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/mordor/resource_spec.rb b/spec/mordor/resource_spec.rb index ee4cc80..07d23f7 100644 --- a/spec/mordor/resource_spec.rb +++ b/spec/mordor/resource_spec.rb @@ -95,7 +95,7 @@ def self.ensure_indices it "should correctly replace BigDecimals" do options = { - "option" => BigDecimal.new("1.00") + "option" => BigDecimal("1.00") } result = TestResource.new.replace_params(options) result.each do |k,v|