Skip to content

Commit bdf5749

Browse files
authored
chore: Update dependencies and fix test suite (#158)
1 parent c6c9595 commit bdf5749

File tree

5 files changed

+88
-78
lines changed

5 files changed

+88
-78
lines changed

Gemfile

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,25 @@ source 'https://rubygems.org'
22

33
gemspec
44

5-
gem 'gem-release'
6-
gem 'jwt'
7-
gem 'rake'
5+
gem 'gem-release', '~> 2'
6+
gem 'jwt', '~> 2'
7+
gem 'rake', '~> 13'
88

99
group :development do
10-
gem 'dotenv'
11-
gem 'pry'
12-
gem 'rubocop', require: false
13-
gem 'shotgun'
14-
gem 'sinatra'
15-
gem 'thin'
10+
gem 'dotenv', '~> 2'
11+
gem 'pry', '~> 0'
12+
gem 'rubocop', '~> 1', require: false
13+
gem 'shotgun', '~> 0'
14+
gem 'sinatra', '~> 2'
15+
gem 'thin', '~> 1'
1616
end
1717

1818
group :test do
19-
gem 'guard-rspec', require: false
19+
gem 'guard-rspec', '~> 4', require: false
2020
gem 'listen', '~> 3'
21-
gem 'rack-test', '>= 2.0.0'
22-
gem 'rspec', '~> 3.5'
23-
gem 'simplecov-cobertura'
24-
gem 'webmock', '>= 3.12.2'
21+
gem 'rack-test', '~> 2'
22+
gem 'rspec', '~> 3'
23+
gem 'simplecov-cobertura', '~> 2'
24+
gem 'webmock', '~> 3'
25+
gem 'multi_json', '~> 1'
2526
end

Gemfile.lock

Lines changed: 67 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@ PATH
22
remote: .
33
specs:
44
omniauth-auth0 (3.0.0)
5-
omniauth (~> 2.0)
6-
omniauth-oauth2 (~> 1.7)
5+
omniauth (~> 2)
6+
omniauth-oauth2 (~> 1)
77

88
GEM
99
remote: https://rubygems.org/
1010
specs:
11-
addressable (2.8.0)
12-
public_suffix (>= 2.0.2, < 5.0)
11+
addressable (2.8.1)
12+
public_suffix (>= 2.0.2, < 6.0)
1313
ast (2.4.2)
1414
coderay (1.1.3)
1515
crack (0.4.5)
1616
rexml
1717
daemons (1.4.1)
1818
diff-lcs (1.5.0)
1919
docile (1.4.0)
20-
dotenv (2.7.6)
20+
dotenv (2.8.1)
2121
eventmachine (1.2.7)
22-
faraday (2.3.0)
23-
faraday-net_http (~> 2.0)
22+
faraday (2.7.1)
23+
faraday-net_http (>= 2.0, < 3.1)
2424
ruby2_keywords (>= 0.0.4)
25-
faraday-net_http (2.0.3)
25+
faraday-net_http (3.0.2)
2626
ffi (1.15.5)
2727
formatador (1.1.0)
2828
gem-release (2.2.2)
@@ -42,75 +42,78 @@ GEM
4242
rspec (>= 2.99.0, < 4.0)
4343
hashdiff (1.0.1)
4444
hashie (5.0.0)
45-
jwt (2.3.0)
45+
json (2.6.3)
46+
jwt (2.5.0)
4647
listen (3.7.1)
4748
rb-fsevent (~> 0.10, >= 0.10.3)
4849
rb-inotify (~> 0.9, >= 0.9.10)
4950
lumberjack (1.2.8)
5051
method_source (1.0.0)
5152
multi_json (1.15.0)
5253
multi_xml (0.6.0)
53-
mustermann (1.1.1)
54+
mustermann (2.0.2)
5455
ruby2_keywords (~> 0.0.1)
5556
nenv (0.3.0)
5657
notiffany (0.1.3)
5758
nenv (~> 0.1)
5859
shellany (~> 0.0)
59-
oauth2 (1.4.9)
60+
oauth2 (2.0.9)
6061
faraday (>= 0.17.3, < 3.0)
6162
jwt (>= 1.0, < 3.0)
62-
multi_json (~> 1.3)
6363
multi_xml (~> 0.5)
64-
rack (>= 1.2, < 3)
64+
rack (>= 1.2, < 4)
65+
snaky_hash (~> 2.0)
66+
version_gem (~> 1.1)
6567
omniauth (2.1.0)
6668
hashie (>= 3.4.6)
6769
rack (>= 2.2.3)
6870
rack-protection
69-
omniauth-oauth2 (1.7.2)
70-
oauth2 (~> 1.4)
71-
omniauth (>= 1.9, < 3)
71+
omniauth-oauth2 (1.8.0)
72+
oauth2 (>= 1.4, < 3)
73+
omniauth (~> 2.0)
7274
parallel (1.22.1)
73-
parser (3.1.2.0)
75+
parser (3.1.3.0)
7476
ast (~> 2.4.1)
7577
pry (0.14.1)
7678
coderay (~> 1.1)
7779
method_source (~> 1.0)
78-
public_suffix (4.0.7)
79-
rack (2.2.3.1)
80-
rack-protection (2.2.0)
80+
public_suffix (5.0.0)
81+
rack (2.2.4)
82+
rack-protection (2.2.3)
8183
rack
82-
rack-test (1.1.0)
83-
rack (>= 1.0, < 3)
84+
rack-test (2.0.2)
85+
rack (>= 1.3)
8486
rainbow (3.1.1)
8587
rake (13.0.6)
86-
rb-fsevent (0.11.1)
88+
rb-fsevent (0.11.2)
8789
rb-inotify (0.10.1)
8890
ffi (~> 1.0)
89-
regexp_parser (2.5.0)
91+
regexp_parser (2.6.1)
9092
rexml (3.2.5)
91-
rspec (3.11.0)
92-
rspec-core (~> 3.11.0)
93-
rspec-expectations (~> 3.11.0)
94-
rspec-mocks (~> 3.11.0)
95-
rspec-core (3.11.0)
96-
rspec-support (~> 3.11.0)
97-
rspec-expectations (3.11.0)
93+
rspec (3.12.0)
94+
rspec-core (~> 3.12.0)
95+
rspec-expectations (~> 3.12.0)
96+
rspec-mocks (~> 3.12.0)
97+
rspec-core (3.12.0)
98+
rspec-support (~> 3.12.0)
99+
rspec-expectations (3.12.0)
98100
diff-lcs (>= 1.2.0, < 2.0)
99-
rspec-support (~> 3.11.0)
100-
rspec-mocks (3.11.1)
101+
rspec-support (~> 3.12.0)
102+
rspec-mocks (3.12.0)
101103
diff-lcs (>= 1.2.0, < 2.0)
102-
rspec-support (~> 3.11.0)
103-
rspec-support (3.11.0)
104-
rubocop (1.30.0)
104+
rspec-support (~> 3.12.0)
105+
rspec-support (3.12.0)
106+
rubocop (1.39.0)
107+
json (~> 2.3)
105108
parallel (~> 1.10)
106-
parser (>= 3.1.0.0)
109+
parser (>= 3.1.2.1)
107110
rainbow (>= 2.2.2, < 4.0)
108111
regexp_parser (>= 1.8, < 3.0)
109112
rexml (>= 3.2.5, < 4.0)
110-
rubocop-ast (>= 1.18.0, < 2.0)
113+
rubocop-ast (>= 1.23.0, < 2.0)
111114
ruby-progressbar (~> 1.7)
112115
unicode-display_width (>= 1.4.0, < 3.0)
113-
rubocop-ast (1.18.0)
116+
rubocop-ast (1.24.0)
114117
parser (>= 3.1.1.0)
115118
ruby-progressbar (1.11.0)
116119
ruby2_keywords (0.0.5)
@@ -126,19 +129,23 @@ GEM
126129
simplecov (~> 0.19)
127130
simplecov-html (0.12.3)
128131
simplecov_json_formatter (0.1.4)
129-
sinatra (2.2.0)
130-
mustermann (~> 1.0)
132+
sinatra (2.2.3)
133+
mustermann (~> 2.0)
131134
rack (~> 2.2)
132-
rack-protection (= 2.2.0)
135+
rack-protection (= 2.2.3)
133136
tilt (~> 2.0)
137+
snaky_hash (2.0.1)
138+
hashie
139+
version_gem (~> 1.1, >= 1.1.1)
134140
thin (1.8.1)
135141
daemons (~> 1.0, >= 1.0.9)
136142
eventmachine (~> 1.0, >= 1.0.4)
137143
rack (>= 1, < 3)
138144
thor (1.2.1)
139-
tilt (2.0.10)
140-
unicode-display_width (2.1.0)
141-
webmock (3.14.0)
145+
tilt (2.0.11)
146+
unicode-display_width (2.3.0)
147+
version_gem (1.1.1)
148+
webmock (3.18.1)
142149
addressable (>= 2.8.0)
143150
crack (>= 0.3.2)
144151
hashdiff (>= 0.4.0, < 2.0.0)
@@ -151,22 +158,23 @@ PLATFORMS
151158

152159
DEPENDENCIES
153160
bundler
154-
dotenv
155-
gem-release
156-
guard-rspec
157-
jwt
161+
dotenv (~> 2)
162+
gem-release (~> 2)
163+
guard-rspec (~> 4)
164+
jwt (~> 2)
158165
listen (~> 3)
166+
multi_json (~> 1)
159167
omniauth-auth0!
160-
pry
161-
rack-test
162-
rake
163-
rspec (~> 3.5)
164-
rubocop
165-
shotgun
166-
simplecov-cobertura
167-
sinatra
168-
thin
169-
webmock (>= 3.12.2)
168+
pry (~> 0)
169+
rack-test (~> 2)
170+
rake (~> 13)
171+
rspec (~> 3)
172+
rubocop (~> 1)
173+
shotgun (~> 0)
174+
simplecov-cobertura (~> 2)
175+
sinatra (~> 2)
176+
thin (~> 1)
177+
webmock (~> 3)
170178

171179
BUNDLED WITH
172180
2.3.7

omniauth-auth0.gemspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ omniauth-auth0 is the OmniAuth strategy for Auth0.
2121
s.executables = `git ls-files -- bin/*`.split('\n').map{ |f| File.basename(f) }
2222
s.require_paths = ['lib']
2323

24-
s.add_runtime_dependency 'omniauth', '~> 2.0'
25-
s.add_runtime_dependency 'omniauth-oauth2', '~> 1.7'
24+
s.add_runtime_dependency 'omniauth', '~> 2'
25+
s.add_runtime_dependency 'omniauth-oauth2', '~> 1'
2626

2727
s.add_development_dependency 'bundler'
28-
28+
2929
s.license = 'MIT'
3030
end

spec/omniauth/auth0/jwt_validator_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@
357357
message: "Nonce (nonce) claim value mismatch in the ID token; expected (noncey), found (mismatch)"
358358
}))
359359
end
360-
360+
361361
it 'should fail when “aud” is an array of strings and azp claim is not present' do
362362
aud = [
363363
client_id,
@@ -544,7 +544,7 @@
544544
expect do
545545
verified_token = make_jwt_validator(opt_domain: domain).verify(token)
546546
end.to raise_error(an_instance_of(JWT::VerificationError).and having_attributes({
547-
message: "Signature verification raised"
547+
message: "Signature verification failed"
548548
}))
549549
end
550550

spec/omniauth/strategies/auth0_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
require 'spec_helper'
44
require 'jwt'
5+
require 'multi_json'
56

67
OmniAuth.config.allowed_request_methods = [:get, :post]
78

0 commit comments

Comments
 (0)