Skip to content

Commit b1eb209

Browse files
committed
bump the oauth2 gem
1 parent 88fbe09 commit b1eb209

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
RUBY_VERSION: [2.2, 2.3, 2.5, 2.6]
18+
RUBY_VERSION: [2.6, 2.7, 3.3]
1919
steps:
2020
- name: Check out code
2121
uses: actions/checkout@v4

aptible-auth.gemspec

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ Gem::Specification.new do |spec|
2323
spec.add_dependency 'aptible-resource', '~> 1.0'
2424
spec.add_dependency 'gem_config'
2525
spec.add_dependency 'multipart-post', '2.1.1'
26-
spec.add_dependency 'oauth2', '1.4.7'
26+
spec.add_dependency 'oauth2', '2.0.9'
27+
spec.add_dependency 'concurrent-ruby', '1.3.4'
2728

2829
spec.add_development_dependency 'aptible-tasks', '>= 0.6.0'
2930
spec.add_development_dependency 'pry'

spec/oauth2/lib/token_exchange_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
RSpec.describe OAuth2::Strategy::TokenExchange do
55
let(:client) do
66
cli = OAuth2::Client.new('abc', 'def', :site => 'http://api.example.com')
7-
cli.connection.build do |b|
7+
cli.connection.builder.build do |b|
88
b.adapter :test do |stub|
99
stub.post('/oauth/token') do |env|
1010
case @mode
1111
when 'formencoded'
1212
[200, {'Content-Type' => 'application/x-www-form-urlencoded'}, 'expires_in=600&access_token=salmon&refresh_token=trout']
1313
when 'json'
14-
[200, {'Content-Type' => 'application/json'}, '{"expires_in":600,"access_token":"salmon","refresh_token":"trout"}']
14+
[200, {'Content-Type' => 'application/json'}, {"expires_in" => 600, "access_token" => "salmon", "refresh_token" => "trout"}]
1515
end
1616
end
1717
end

0 commit comments

Comments
 (0)