oauth2 1.4.4 → 2.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +242 -64
- data/CODE_OF_CONDUCT.md +105 -46
- data/CONTRIBUTING.md +27 -1
- data/LICENSE +1 -1
- data/README.md +445 -140
- data/SECURITY.md +26 -0
- data/lib/oauth2/access_token.rb +70 -28
- data/lib/oauth2/authenticator.rb +12 -5
- data/lib/oauth2/client.rb +208 -65
- data/lib/oauth2/error.rb +43 -24
- data/lib/oauth2/response.rb +81 -22
- data/lib/oauth2/strategy/assertion.rb +66 -39
- data/lib/oauth2/strategy/auth_code.rb +16 -3
- data/lib/oauth2/strategy/base.rb +2 -0
- data/lib/oauth2/strategy/client_credentials.rb +4 -2
- data/lib/oauth2/strategy/implicit.rb +10 -1
- data/lib/oauth2/strategy/password.rb +5 -3
- data/lib/oauth2/version.rb +3 -55
- data/lib/oauth2.rb +29 -1
- metadata +91 -105
- data/.document +0 -5
- data/.gitignore +0 -19
- data/.jrubyrc +0 -1
- data/.rspec +0 -2
- data/.rubocop.yml +0 -80
- data/.rubocop_rspec.yml +0 -26
- data/.rubocop_todo.yml +0 -15
- data/.ruby-version +0 -1
- data/.travis.yml +0 -87
- data/Gemfile +0 -40
- data/Rakefile +0 -45
- data/gemfiles/jruby_1.7.gemfile +0 -11
- data/gemfiles/jruby_9.0.gemfile +0 -7
- data/gemfiles/jruby_9.1.gemfile +0 -3
- data/gemfiles/jruby_9.2.gemfile +0 -3
- data/gemfiles/jruby_head.gemfile +0 -3
- data/gemfiles/ruby_1.9.gemfile +0 -11
- data/gemfiles/ruby_2.0.gemfile +0 -6
- data/gemfiles/ruby_2.1.gemfile +0 -6
- data/gemfiles/ruby_2.2.gemfile +0 -3
- data/gemfiles/ruby_2.3.gemfile +0 -3
- data/gemfiles/ruby_2.4.gemfile +0 -3
- data/gemfiles/ruby_2.5.gemfile +0 -3
- data/gemfiles/ruby_2.6.gemfile +0 -9
- data/gemfiles/ruby_2.7.gemfile +0 -9
- data/gemfiles/ruby_head.gemfile +0 -9
- data/gemfiles/truffleruby.gemfile +0 -3
- data/lib/oauth2/mac_token.rb +0 -122
- data/oauth2.gemspec +0 -52
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oauth2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Boling
|
8
|
-
- Michael Bleigh
|
9
8
|
- Erik Michaels-Ober
|
10
|
-
|
9
|
+
- Michael Bleigh
|
10
|
+
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2022-09-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: faraday
|
@@ -18,20 +18,20 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 0.17.3
|
22
22
|
- - "<"
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: '
|
24
|
+
version: '3.0'
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
27
|
version_requirements: !ruby/object:Gem::Requirement
|
28
28
|
requirements:
|
29
29
|
- - ">="
|
30
30
|
- !ruby/object:Gem::Version
|
31
|
-
version:
|
31
|
+
version: 0.17.3
|
32
32
|
- - "<"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
34
|
+
version: '3.0'
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: jwt
|
37
37
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - "<"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: multi_json
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '1.3'
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '1.3'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: multi_xml
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -89,7 +75,7 @@ dependencies:
|
|
89
75
|
version: '1.2'
|
90
76
|
- - "<"
|
91
77
|
- !ruby/object:Gem::Version
|
92
|
-
version: '
|
78
|
+
version: '4'
|
93
79
|
type: :runtime
|
94
80
|
prerelease: false
|
95
81
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -99,113 +85,121 @@ dependencies:
|
|
99
85
|
version: '1.2'
|
100
86
|
- - "<"
|
101
87
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
88
|
+
version: '4'
|
103
89
|
- !ruby/object:Gem::Dependency
|
104
|
-
name:
|
90
|
+
name: snaky_hash
|
105
91
|
requirement: !ruby/object:Gem::Requirement
|
106
92
|
requirements:
|
107
93
|
- - "~>"
|
108
94
|
- !ruby/object:Gem::Version
|
109
|
-
version: '2.
|
110
|
-
type: :
|
95
|
+
version: '2.0'
|
96
|
+
type: :runtime
|
111
97
|
prerelease: false
|
112
98
|
version_requirements: !ruby/object:Gem::Requirement
|
113
99
|
requirements:
|
114
100
|
- - "~>"
|
115
101
|
- !ruby/object:Gem::Version
|
116
|
-
version: '2.
|
102
|
+
version: '2.0'
|
117
103
|
- !ruby/object:Gem::Dependency
|
118
|
-
name:
|
104
|
+
name: version_gem
|
119
105
|
requirement: !ruby/object:Gem::Requirement
|
120
106
|
requirements:
|
121
107
|
- - "~>"
|
122
108
|
- !ruby/object:Gem::Version
|
123
|
-
version: '
|
124
|
-
type: :
|
109
|
+
version: '1.1'
|
110
|
+
type: :runtime
|
125
111
|
prerelease: false
|
126
112
|
version_requirements: !ruby/object:Gem::Requirement
|
127
113
|
requirements:
|
128
114
|
- - "~>"
|
129
115
|
- !ruby/object:Gem::Version
|
130
|
-
version: '
|
116
|
+
version: '1.1'
|
131
117
|
- !ruby/object:Gem::Dependency
|
132
|
-
name:
|
118
|
+
name: addressable
|
133
119
|
requirement: !ruby/object:Gem::Requirement
|
134
120
|
requirements:
|
135
121
|
- - ">="
|
136
122
|
- !ruby/object:Gem::Version
|
137
|
-
version: '
|
123
|
+
version: '2'
|
138
124
|
type: :development
|
139
125
|
prerelease: false
|
140
126
|
version_requirements: !ruby/object:Gem::Requirement
|
141
127
|
requirements:
|
142
128
|
- - ">="
|
143
129
|
- !ruby/object:Gem::Version
|
144
|
-
version: '
|
130
|
+
version: '2'
|
145
131
|
- !ruby/object:Gem::Dependency
|
146
|
-
name:
|
132
|
+
name: backports
|
147
133
|
requirement: !ruby/object:Gem::Requirement
|
148
134
|
requirements:
|
149
|
-
- - "
|
135
|
+
- - ">="
|
150
136
|
- !ruby/object:Gem::Version
|
151
|
-
version: '
|
137
|
+
version: '3'
|
152
138
|
type: :development
|
153
139
|
prerelease: false
|
154
140
|
version_requirements: !ruby/object:Gem::Requirement
|
155
141
|
requirements:
|
156
|
-
- - "
|
142
|
+
- - ">="
|
157
143
|
- !ruby/object:Gem::Version
|
158
|
-
version: '
|
144
|
+
version: '3'
|
159
145
|
- !ruby/object:Gem::Dependency
|
160
|
-
name:
|
146
|
+
name: bundler
|
161
147
|
requirement: !ruby/object:Gem::Requirement
|
162
148
|
requirements:
|
163
|
-
- - "
|
149
|
+
- - ">="
|
164
150
|
- !ruby/object:Gem::Version
|
165
|
-
version: '
|
151
|
+
version: '2'
|
166
152
|
type: :development
|
167
153
|
prerelease: false
|
168
154
|
version_requirements: !ruby/object:Gem::Requirement
|
169
155
|
requirements:
|
170
|
-
- - "
|
156
|
+
- - ">="
|
171
157
|
- !ruby/object:Gem::Version
|
172
|
-
version: '
|
158
|
+
version: '2'
|
173
159
|
- !ruby/object:Gem::Dependency
|
174
|
-
name:
|
160
|
+
name: rake
|
175
161
|
requirement: !ruby/object:Gem::Requirement
|
176
162
|
requirements:
|
177
163
|
- - ">="
|
178
164
|
- !ruby/object:Gem::Version
|
179
|
-
version: '
|
180
|
-
- - "<"
|
181
|
-
- !ruby/object:Gem::Version
|
182
|
-
version: '7'
|
165
|
+
version: '12'
|
183
166
|
type: :development
|
184
167
|
prerelease: false
|
185
168
|
version_requirements: !ruby/object:Gem::Requirement
|
186
169
|
requirements:
|
187
170
|
- - ">="
|
188
171
|
- !ruby/object:Gem::Version
|
189
|
-
version: '
|
190
|
-
|
172
|
+
version: '12'
|
173
|
+
- !ruby/object:Gem::Dependency
|
174
|
+
name: rexml
|
175
|
+
requirement: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - ">="
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '3'
|
180
|
+
type: :development
|
181
|
+
prerelease: false
|
182
|
+
version_requirements: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - ">="
|
191
185
|
- !ruby/object:Gem::Version
|
192
|
-
version: '
|
186
|
+
version: '3'
|
193
187
|
- !ruby/object:Gem::Dependency
|
194
188
|
name: rspec
|
195
189
|
requirement: !ruby/object:Gem::Requirement
|
196
190
|
requirements:
|
197
|
-
- - "
|
191
|
+
- - ">="
|
198
192
|
- !ruby/object:Gem::Version
|
199
|
-
version: '3
|
193
|
+
version: '3'
|
200
194
|
type: :development
|
201
195
|
prerelease: false
|
202
196
|
version_requirements: !ruby/object:Gem::Requirement
|
203
197
|
requirements:
|
204
|
-
- - "
|
198
|
+
- - ">="
|
205
199
|
- !ruby/object:Gem::Version
|
206
|
-
version: '3
|
200
|
+
version: '3'
|
207
201
|
- !ruby/object:Gem::Dependency
|
208
|
-
name: rspec-
|
202
|
+
name: rspec-block_is_expected
|
209
203
|
requirement: !ruby/object:Gem::Requirement
|
210
204
|
requirements:
|
211
205
|
- - ">="
|
@@ -233,7 +227,7 @@ dependencies:
|
|
233
227
|
- !ruby/object:Gem::Version
|
234
228
|
version: '0'
|
235
229
|
- !ruby/object:Gem::Dependency
|
236
|
-
name: rspec-
|
230
|
+
name: rspec-stubbed_env
|
237
231
|
requirement: !ruby/object:Gem::Requirement
|
238
232
|
requirements:
|
239
233
|
- - ">="
|
@@ -247,21 +241,21 @@ dependencies:
|
|
247
241
|
- !ruby/object:Gem::Version
|
248
242
|
version: '0'
|
249
243
|
- !ruby/object:Gem::Dependency
|
250
|
-
name:
|
244
|
+
name: rubocop-lts
|
251
245
|
requirement: !ruby/object:Gem::Requirement
|
252
246
|
requirements:
|
253
|
-
- - "
|
247
|
+
- - "~>"
|
254
248
|
- !ruby/object:Gem::Version
|
255
|
-
version: '0'
|
249
|
+
version: '8.0'
|
256
250
|
type: :development
|
257
251
|
prerelease: false
|
258
252
|
version_requirements: !ruby/object:Gem::Requirement
|
259
253
|
requirements:
|
260
|
-
- - "
|
254
|
+
- - "~>"
|
261
255
|
- !ruby/object:Gem::Version
|
262
|
-
version: '0'
|
256
|
+
version: '8.0'
|
263
257
|
- !ruby/object:Gem::Dependency
|
264
|
-
name:
|
258
|
+
name: silent_stream
|
265
259
|
requirement: !ruby/object:Gem::Requirement
|
266
260
|
requirements:
|
267
261
|
- - ">="
|
@@ -282,44 +276,17 @@ executables: []
|
|
282
276
|
extensions: []
|
283
277
|
extra_rdoc_files: []
|
284
278
|
files:
|
285
|
-
- ".document"
|
286
|
-
- ".gitignore"
|
287
|
-
- ".jrubyrc"
|
288
|
-
- ".rspec"
|
289
|
-
- ".rubocop.yml"
|
290
|
-
- ".rubocop_rspec.yml"
|
291
|
-
- ".rubocop_todo.yml"
|
292
|
-
- ".ruby-version"
|
293
|
-
- ".travis.yml"
|
294
279
|
- CHANGELOG.md
|
295
280
|
- CODE_OF_CONDUCT.md
|
296
281
|
- CONTRIBUTING.md
|
297
|
-
- Gemfile
|
298
282
|
- LICENSE
|
299
283
|
- README.md
|
300
|
-
-
|
301
|
-
- gemfiles/jruby_1.7.gemfile
|
302
|
-
- gemfiles/jruby_9.0.gemfile
|
303
|
-
- gemfiles/jruby_9.1.gemfile
|
304
|
-
- gemfiles/jruby_9.2.gemfile
|
305
|
-
- gemfiles/jruby_head.gemfile
|
306
|
-
- gemfiles/ruby_1.9.gemfile
|
307
|
-
- gemfiles/ruby_2.0.gemfile
|
308
|
-
- gemfiles/ruby_2.1.gemfile
|
309
|
-
- gemfiles/ruby_2.2.gemfile
|
310
|
-
- gemfiles/ruby_2.3.gemfile
|
311
|
-
- gemfiles/ruby_2.4.gemfile
|
312
|
-
- gemfiles/ruby_2.5.gemfile
|
313
|
-
- gemfiles/ruby_2.6.gemfile
|
314
|
-
- gemfiles/ruby_2.7.gemfile
|
315
|
-
- gemfiles/ruby_head.gemfile
|
316
|
-
- gemfiles/truffleruby.gemfile
|
284
|
+
- SECURITY.md
|
317
285
|
- lib/oauth2.rb
|
318
286
|
- lib/oauth2/access_token.rb
|
319
287
|
- lib/oauth2/authenticator.rb
|
320
288
|
- lib/oauth2/client.rb
|
321
289
|
- lib/oauth2/error.rb
|
322
|
-
- lib/oauth2/mac_token.rb
|
323
290
|
- lib/oauth2/response.rb
|
324
291
|
- lib/oauth2/strategy/assertion.rb
|
325
292
|
- lib/oauth2/strategy/auth_code.rb
|
@@ -328,17 +295,35 @@ files:
|
|
328
295
|
- lib/oauth2/strategy/implicit.rb
|
329
296
|
- lib/oauth2/strategy/password.rb
|
330
297
|
- lib/oauth2/version.rb
|
331
|
-
-
|
332
|
-
homepage: https://github.com/oauth-xx/oauth2
|
298
|
+
homepage: https://gitlab.com/oauth-xx/oauth2
|
333
299
|
licenses:
|
334
300
|
- MIT
|
335
301
|
metadata:
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
302
|
+
homepage_uri: https://gitlab.com/oauth-xx/oauth2
|
303
|
+
source_code_uri: https://gitlab.com/oauth-xx/oauth2/-/tree/v2.0.9
|
304
|
+
changelog_uri: https://gitlab.com/oauth-xx/oauth2/-/blob/v2.0.9/CHANGELOG.md
|
305
|
+
bug_tracker_uri: https://gitlab.com/oauth-xx/oauth2/-/issues
|
306
|
+
documentation_uri: https://www.rubydoc.info/gems/oauth2/2.0.9
|
307
|
+
wiki_uri: https://gitlab.com/oauth-xx/oauth2/-/wiki
|
308
|
+
funding_uri: https://liberapay.com/pboling
|
309
|
+
rubygems_mfa_required: 'true'
|
310
|
+
post_install_message: |2+
|
311
|
+
|
312
|
+
You have installed oauth2 version 2.0.9, congratulations!
|
313
|
+
|
314
|
+
There are BREAKING changes if you are upgrading from < v2, but most will not encounter them, and updating your code should be easy!
|
315
|
+
|
316
|
+
We have made two other major migrations:
|
317
|
+
1. master branch renamed to main
|
318
|
+
2. Github has been replaced with Gitlab
|
319
|
+
|
320
|
+
Please see:
|
321
|
+
• https://gitlab.com/oauth-xx/oauth2#what-is-new-for-v20
|
322
|
+
• https://gitlab.com/oauth-xx/oauth2/-/blob/main/CHANGELOG.md
|
323
|
+
• https://groups.google.com/g/oauth-ruby/c/QA_dtrXWXaE
|
324
|
+
|
325
|
+
Please report issues, and support the project! Thanks, |7eter l-|. l3oling
|
326
|
+
|
342
327
|
rdoc_options: []
|
343
328
|
require_paths:
|
344
329
|
- lib
|
@@ -346,15 +331,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
346
331
|
requirements:
|
347
332
|
- - ">="
|
348
333
|
- !ruby/object:Gem::Version
|
349
|
-
version:
|
334
|
+
version: 2.2.0
|
350
335
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
351
336
|
requirements:
|
352
337
|
- - ">="
|
353
338
|
- !ruby/object:Gem::Version
|
354
|
-
version:
|
339
|
+
version: '0'
|
355
340
|
requirements: []
|
356
|
-
rubygems_version: 3.
|
357
|
-
signing_key:
|
341
|
+
rubygems_version: 3.3.21
|
342
|
+
signing_key:
|
358
343
|
specification_version: 4
|
359
344
|
summary: A Ruby wrapper for the OAuth 2.0 protocol.
|
360
345
|
test_files: []
|
346
|
+
...
|
data/.document
DELETED
data/.gitignore
DELETED
data/.jrubyrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
debug.fullTrace=true
|
data/.rspec
DELETED
data/.rubocop.yml
DELETED
@@ -1,80 +0,0 @@
|
|
1
|
-
require: rubocop-rspec
|
2
|
-
inherit_from:
|
3
|
-
- .rubocop_todo.yml
|
4
|
-
- .rubocop_rspec.yml
|
5
|
-
AllCops:
|
6
|
-
DisplayCopNames: true # Display the name of the failing cops
|
7
|
-
TargetRubyVersion: 2.1
|
8
|
-
Exclude:
|
9
|
-
- 'gemfiles/vendor/**/*'
|
10
|
-
- 'vendor/**/*'
|
11
|
-
- '**/.irbrc'
|
12
|
-
|
13
|
-
Gemspec/RequiredRubyVersion:
|
14
|
-
Enabled: false
|
15
|
-
|
16
|
-
Metrics/BlockLength:
|
17
|
-
Enabled: false
|
18
|
-
|
19
|
-
Metrics/BlockNesting:
|
20
|
-
Max: 2
|
21
|
-
|
22
|
-
Metrics/LineLength:
|
23
|
-
Enabled: false
|
24
|
-
|
25
|
-
Metrics/MethodLength:
|
26
|
-
Max: 15
|
27
|
-
|
28
|
-
Metrics/ParameterLists:
|
29
|
-
Max: 4
|
30
|
-
|
31
|
-
Layout/AccessModifierIndentation:
|
32
|
-
EnforcedStyle: outdent
|
33
|
-
|
34
|
-
Layout/DotPosition:
|
35
|
-
EnforcedStyle: trailing
|
36
|
-
|
37
|
-
Layout/SpaceInsideHashLiteralBraces:
|
38
|
-
EnforcedStyle: no_space
|
39
|
-
|
40
|
-
Lint/UnusedBlockArgument:
|
41
|
-
Exclude:
|
42
|
-
- 'spec/**/*.rb'
|
43
|
-
- 'gemfiles/vendor/**/*'
|
44
|
-
- 'vendor/**/*'
|
45
|
-
- '**/.irbrc'
|
46
|
-
|
47
|
-
RSpec/DescribeClass:
|
48
|
-
Exclude:
|
49
|
-
- 'spec/examples/*'
|
50
|
-
|
51
|
-
RSpec/NestedGroups:
|
52
|
-
Enabled: false
|
53
|
-
|
54
|
-
Style/ClassVars:
|
55
|
-
Enabled: false
|
56
|
-
|
57
|
-
Style/CollectionMethods:
|
58
|
-
PreferredMethods:
|
59
|
-
map: 'collect'
|
60
|
-
reduce: 'inject'
|
61
|
-
find: 'detect'
|
62
|
-
find_all: 'select'
|
63
|
-
|
64
|
-
Style/Documentation:
|
65
|
-
Enabled: false
|
66
|
-
|
67
|
-
Style/DoubleNegation:
|
68
|
-
Enabled: false
|
69
|
-
|
70
|
-
Style/EmptyMethod:
|
71
|
-
EnforcedStyle: expanded
|
72
|
-
|
73
|
-
Style/Encoding:
|
74
|
-
Enabled: false
|
75
|
-
|
76
|
-
Style/TrailingCommaInArrayLiteral:
|
77
|
-
EnforcedStyleForMultiline: comma
|
78
|
-
|
79
|
-
Style/TrailingCommaInHashLiteral:
|
80
|
-
EnforcedStyleForMultiline: comma
|
data/.rubocop_rspec.yml
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
RSpec/FilePath:
|
2
|
-
Enabled: false
|
3
|
-
|
4
|
-
RSpec/MultipleExpectations:
|
5
|
-
Enabled: false
|
6
|
-
|
7
|
-
RSpec/NamedSubject:
|
8
|
-
Enabled: false
|
9
|
-
|
10
|
-
RSpec/ExampleLength:
|
11
|
-
Enabled: false
|
12
|
-
|
13
|
-
RSpec/VerifiedDoubles:
|
14
|
-
Enabled: false
|
15
|
-
|
16
|
-
RSpec/MessageSpies:
|
17
|
-
Enabled: false
|
18
|
-
|
19
|
-
RSpec/InstanceVariable:
|
20
|
-
Enabled: false
|
21
|
-
|
22
|
-
RSpec/NestedGroups:
|
23
|
-
Enabled: false
|
24
|
-
|
25
|
-
RSpec/ExpectInHook:
|
26
|
-
Enabled: false
|
data/.rubocop_todo.yml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
Style/HashSyntax:
|
2
|
-
EnforcedStyle: hash_rockets
|
3
|
-
|
4
|
-
Style/Lambda:
|
5
|
-
Enabled: false
|
6
|
-
|
7
|
-
Style/SymbolArray:
|
8
|
-
Enabled: false
|
9
|
-
|
10
|
-
Style/EachWithObject:
|
11
|
-
Enabled: false
|
12
|
-
|
13
|
-
# Once we drop Rubies that lack support for __dir__ we can turn this on.
|
14
|
-
Style/ExpandPathArguments:
|
15
|
-
Enabled: false
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.7.0
|
data/.travis.yml
DELETED
@@ -1,87 +0,0 @@
|
|
1
|
-
before_install:
|
2
|
-
# rubygems 2.7.8 and greater include bundler
|
3
|
-
# - Ruby 2.2, and under, get RubyGems ~> 2.7.10, (includes bundler 1.17.3)
|
4
|
-
# - Anything else, including Ruby 2.3, and above, gets RubyGems ~> 3, and update bundler to latest
|
5
|
-
# - NOTE ON JRUBY: identifies as RUBY_VERSION ~> 1.9, 2.0, 2.3, or 2.5.
|
6
|
-
# - NOTE ON TRUFFLERUBY: identifies as RUBY_VERSION ~> 2.6
|
7
|
-
- |
|
8
|
-
rv="$(ruby -e 'STDOUT.write RUBY_VERSION')"
|
9
|
-
echo "Discovered Ruby Version of =====> $rv"
|
10
|
-
if [ "$rv" \< "2.3" ]; then
|
11
|
-
gem update --system 2.7.10
|
12
|
-
elif [ "$rv" \< "2.4" ]; then
|
13
|
-
gem update --system 2.7.10 --no-document
|
14
|
-
elif [ "$rv" = "2.5.3" ]; then
|
15
|
-
# JRUBY 9.2 Identifies as 2.5.3, and it fails to update rubygems
|
16
|
-
gem install --no-document bundler "bundler:>=2.0"
|
17
|
-
else
|
18
|
-
gem update --system --no-document --conservative
|
19
|
-
gem install --no-document bundler "bundler:>=2.0"
|
20
|
-
fi
|
21
|
-
|
22
|
-
before_script:
|
23
|
-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
24
|
-
- chmod +x ./cc-test-reporter
|
25
|
-
- ./cc-test-reporter before-build
|
26
|
-
|
27
|
-
after_script:
|
28
|
-
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
29
|
-
|
30
|
-
bundler_args: --no-deployment --jobs 3 --retry 3
|
31
|
-
|
32
|
-
cache: bundler
|
33
|
-
|
34
|
-
env:
|
35
|
-
global:
|
36
|
-
- JRUBY_OPTS="$JRUBY_OPTS -Xcli.debug=true --debug"
|
37
|
-
- CC_TEST_REPORTER_ID=29caf9cf27d27ae609c088feb9d4ba34460f7a39251f2e8615c9a16f3075530e
|
38
|
-
|
39
|
-
language: ruby
|
40
|
-
|
41
|
-
matrix:
|
42
|
-
allow_failures:
|
43
|
-
- rvm: jruby-head
|
44
|
-
- rvm: ruby-head
|
45
|
-
- rvm: truffleruby
|
46
|
-
- rvm: jruby-9.0
|
47
|
-
- rvm: jruby-9.1 # jruby-9.1 often fails to download, thus failing the build.
|
48
|
-
- rvm: jruby-9.2 # jruby-9.2 often fails to download, thus failing the build.
|
49
|
-
fast_finish: true
|
50
|
-
include:
|
51
|
-
# - rvm: jruby-1.7 # targets MRI v1.9
|
52
|
-
# gemfile: gemfiles/jruby_1.7.gemfile
|
53
|
-
- rvm: 1.9
|
54
|
-
gemfile: gemfiles/ruby_1.9.gemfile
|
55
|
-
- rvm: 2.0
|
56
|
-
gemfile: gemfiles/ruby_2.0.gemfile
|
57
|
-
- rvm: jruby-9.0 # targets MRI v2.0
|
58
|
-
gemfile: gemfiles/jruby_9.0.gemfile
|
59
|
-
- rvm: 2.1
|
60
|
-
gemfile: gemfiles/ruby_2.1.gemfile
|
61
|
-
# DEPRECATION WARNING
|
62
|
-
# oauth2 1.x series releases are the last to support Ruby versions above
|
63
|
-
# oauth2 2.x series releases will support Ruby versions below, and not above
|
64
|
-
- rvm: jruby-9.1 # targets MRI v2.3
|
65
|
-
gemfile: gemfiles/jruby_9.1.gemfile
|
66
|
-
- rvm: 2.2
|
67
|
-
gemfile: gemfiles/ruby_2.2.gemfile
|
68
|
-
- rvm: 2.3
|
69
|
-
gemfile: gemfiles/ruby_2.3.gemfile
|
70
|
-
- rvm: 2.4
|
71
|
-
gemfile: gemfiles/ruby_2.4.gemfile
|
72
|
-
- rvm: jruby-9.2 # targets MRI v2.5
|
73
|
-
gemfile: gemfiles/jruby_9.2.gemfile
|
74
|
-
- rvm: 2.5
|
75
|
-
gemfile: gemfiles/ruby_2.5.gemfile
|
76
|
-
- rvm: 2.6
|
77
|
-
gemfile: gemfiles/ruby_2.6.gemfile
|
78
|
-
- rvm: 2.7
|
79
|
-
gemfile: gemfiles/ruby_2.7.gemfile
|
80
|
-
- rvm: jruby-head
|
81
|
-
gemfile: gemfiles/jruby_head.gemfile
|
82
|
-
- rvm: ruby-head
|
83
|
-
gemfile: gemfiles/ruby_head.gemfile
|
84
|
-
- rvm: truffleruby
|
85
|
-
gemfile: gemfiles/truffleruby.gemfile
|
86
|
-
|
87
|
-
sudo: false
|
data/Gemfile
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
4
|
-
|
5
|
-
gem 'faraday', ['>= 0.8', '< 2.0'], :platforms => [:jruby_18, :ruby_18]
|
6
|
-
gem 'jwt', '< 1.5.2', :platforms => [:jruby_18, :ruby_18]
|
7
|
-
gem 'rake', '< 11.0'
|
8
|
-
gem 'rdoc', '~> 4.2.2'
|
9
|
-
|
10
|
-
group :test do
|
11
|
-
ruby_version = Gem::Version.new(RUBY_VERSION)
|
12
|
-
if ruby_version >= Gem::Version.new('2.1')
|
13
|
-
# TODO: Upgrade to >= 0.59 when we drop Rubies below 2.2
|
14
|
-
# Error: Unsupported Ruby version 2.1 found in `TargetRubyVersion` parameter (in .rubocop.yml). 2.1-compatible analysis was dropped after version 0.58.
|
15
|
-
# Supported versions: 2.2, 2.3, 2.4, 2.5
|
16
|
-
gem 'rubocop', '~> 0.57.0'
|
17
|
-
gem 'rubocop-rspec', '~> 1.27.0' # last version that can use rubocop < 0.58
|
18
|
-
end
|
19
|
-
gem 'pry', '~> 0.11' if ruby_version >= Gem::Version.new('2.0')
|
20
|
-
|
21
|
-
gem 'addressable', '~> 2.3.8'
|
22
|
-
gem 'backports'
|
23
|
-
gem 'coveralls'
|
24
|
-
gem 'rack', '~> 1.2', :platforms => [:jruby_18, :jruby_19, :ruby_18, :ruby_19, :ruby_20, :ruby_21]
|
25
|
-
gem 'rspec', '>= 3'
|
26
|
-
gem 'simplecov', '>= 0.9'
|
27
|
-
|
28
|
-
platforms :jruby_18, :ruby_18 do
|
29
|
-
gem 'mime-types', '~> 1.25'
|
30
|
-
gem 'rest-client', '~> 1.6.0'
|
31
|
-
end
|
32
|
-
|
33
|
-
platforms :ruby_18, :ruby_19 do
|
34
|
-
gem 'json', '< 2.0'
|
35
|
-
gem 'term-ansicolor', '< 1.4.0'
|
36
|
-
gem 'tins', '< 1.7'
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
gemspec
|