From aef394b5ac5daf93d5e55a6bdf82102e276f4ec7 Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Fri, 14 Aug 2026 13:36:12 -0700 Subject: [PATCH] Allow json 3.x Widen the json runtime dependency so the gem can be used in bundles that resolve json 3.x. The full spec suite passes on json 3.0.0.rc1. --- Gemfile.lock | 2 +- xero-ruby.gemspec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 53563a88..0999eeac 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -3,7 +3,7 @@ PATH specs: xero-ruby (18.1.0) faraday (>= 2.0, < 3.0) - json (~> 2.1, >= 2.1.0) + json (>= 2.1.0, < 4) json-jwt (~> 1.16, >= 1.16.3) GEM diff --git a/xero-ruby.gemspec b/xero-ruby.gemspec index 2662de90..c6e45ad6 100644 --- a/xero-ruby.gemspec +++ b/xero-ruby.gemspec @@ -27,7 +27,7 @@ Gem::Specification.new do |s| s.required_ruby_version = ">= 2.3" s.add_runtime_dependency 'faraday', '>= 2.0', '< 3.0' - s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0' + s.add_runtime_dependency 'json', '>= 2.1.0', '< 4' s.add_runtime_dependency 'json-jwt', '~> 1.16', '>= 1.16.3' s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'