From 50ebb3f26b86c4a167719ad908ed8878dbc718d3 Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Tue, 21 Jun 2022 21:39:25 -0700 Subject: [PATCH] Relax oauth2 dependency oauth2 v2.0 is out now. This gem appears to be fully compatible, so loosen the dependency to allow for 2.0. --- Gemfile.lock | 11 ++++++++--- asana.gemspec | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 9aea7f9..9e57cb2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -5,7 +5,7 @@ PATH faraday (~> 1.0) faraday_middleware (~> 1.0) faraday_middleware-multi_json (~> 0.0) - oauth2 (~> 1.4) + oauth2 (>= 1.4, < 3) GEM remote: https://rubygems.org/ @@ -69,6 +69,7 @@ GEM guard-yard (2.2.1) guard (>= 1.1.0) yard (>= 0.7.0) + hashie (5.0.0) jwt (2.4.1) listen (3.7.1) rb-fsevent (~> 0.10, >= 0.10.3) @@ -82,12 +83,13 @@ GEM notiffany (0.1.3) nenv (~> 0.1) shellany (~> 0.0) - oauth2 (1.4.9) + oauth2 (2.0.0) faraday (>= 0.17.3, < 3.0) jwt (>= 1.0, < 3.0) - multi_json (~> 1.3) multi_xml (~> 0.5) rack (>= 1.2, < 3) + rash_alt (>= 0.4, < 1) + version_gem (~> 1.0) parallel (1.22.1) parser (2.7.2.0) ast (~> 2.4.1) @@ -100,6 +102,8 @@ GEM rack rainbow (3.1.1) rake (13.0.6) + rash_alt (0.4.12) + hashie (>= 3.4) rb-fsevent (0.11.1) rb-inotify (0.10.1) ffi (~> 1.0) @@ -137,6 +141,7 @@ GEM thor (1.2.1) tomparse (0.4.2) unicode-display_width (1.8.0) + version_gem (1.0.0) webrick (1.7.0) yard (0.9.28) webrick (~> 1.7.0) diff --git a/asana.gemspec b/asana.gemspec index 0ee01b1..24d38e0 100644 --- a/asana.gemspec +++ b/asana.gemspec @@ -21,7 +21,7 @@ Gem::Specification.new do |spec| spec.required_ruby_version = '>= 2.5' - spec.add_dependency "oauth2", "~> 1.4" + spec.add_dependency "oauth2", ">= 1.4", '< 3' spec.add_dependency "faraday", "~> 1.0" spec.add_dependency "faraday_middleware", "~> 1.0" spec.add_dependency "faraday_middleware-multi_json", "~> 0.0"