From 552b7d4f37fdebc0fedea1e11852a2cac31bb141 Mon Sep 17 00:00:00 2001 From: Phil Allcock Date: Mon, 18 Jul 2022 15:05:54 +0100 Subject: [PATCH 1/4] Upgrade to ruby 3.1. and update dependencies # Conflicts: # .ruby-version --- .ruby-version | 2 +- candy_check.gemspec | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.ruby-version b/.ruby-version index eca690e..ff365e0 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.0.5 +3.1.3 diff --git a/candy_check.gemspec b/candy_check.gemspec index 7942741..c866a47 100644 --- a/candy_check.gemspec +++ b/candy_check.gemspec @@ -20,9 +20,9 @@ Gem::Specification.new do |spec| spec.required_ruby_version = Gem::Requirement.new(">= 2.6") - spec.add_dependency "google-apis-androidpublisher_v3", "~> 0.2.0" - spec.add_dependency "googleauth", "~> 0.16" - spec.add_dependency "multi_json", "~> 1.10" + spec.add_dependency "google-apis-androidpublisher_v3", "~> 0.25.0" + spec.add_dependency "googleauth", "~> 1.2.0" + spec.add_dependency "multi_json", "~> 1.15" spec.add_dependency "thor", "< 2.0" spec.add_development_dependency "bundler", "~> 2.0" From cef7b9bd6a510b49822d4fbe0af4c224c203c0ff Mon Sep 17 00:00:00 2001 From: Jonas Thiel Date: Thu, 23 Feb 2023 17:49:53 +0100 Subject: [PATCH 2/4] Test on Ruby 3.1 --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 562f460..30aeb71 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,7 @@ jobs: - "2.6" - "2.7" - "3.0" + - "3.1" - "jruby-9.3.10.0" steps: - uses: actions/checkout@v3 From 6e2eade84a501cf7fe1fa3d92ae6ba8c7ed9699e Mon Sep 17 00:00:00 2001 From: Jonas Thiel Date: Thu, 23 Feb 2023 17:50:44 +0100 Subject: [PATCH 3/4] Resolve Fixnum deprecation warning --- spec/app_store/receipt_collection_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/app_store/receipt_collection_spec.rb b/spec/app_store/receipt_collection_spec.rb index b96d696..624a3ea 100644 --- a/spec/app_store/receipt_collection_spec.rb +++ b/spec/app_store/receipt_collection_spec.rb @@ -28,7 +28,7 @@ it 'has positive overdue days' do overdue = subject.overdue_days - _(overdue).must_be_instance_of Fixnum + _(overdue).must_be_instance_of Integer assert overdue > 0 end From 2883cec6a3d62396f06991cd07522cd30b2629a8 Mon Sep 17 00:00:00 2001 From: Jonas Thiel Date: Thu, 23 Feb 2023 17:55:43 +0100 Subject: [PATCH 4/4] Also run tests on JRuby 9.4.1.0 --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 30aeb71..c67b2c5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,6 +11,7 @@ jobs: - "3.0" - "3.1" - "jruby-9.3.10.0" + - "jruby-9.4.1.0" steps: - uses: actions/checkout@v3 - uses: ruby/setup-ruby@v1