oauth2 1.4.3 → 2.0.7
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 +174 -16
- data/CODE_OF_CONDUCT.md +105 -46
- data/CONTRIBUTING.md +27 -1
- data/LICENSE +1 -1
- data/README.md +427 -131
- data/SECURITY.md +20 -0
- data/lib/oauth2/access_token.rb +64 -25
- 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/snaky_hash.rb +8 -0
- 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 +21 -1
- metadata +84 -98
- 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.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Peter Boling
|
|
8
|
-
- Michael Bleigh
|
|
9
8
|
- Erik Michaels-Ober
|
|
9
|
+
- Michael Bleigh
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: exe
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date:
|
|
13
|
+
date: 2022-08-22 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
|
|
@@ -53,159 +53,159 @@ dependencies:
|
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '3.0'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
|
-
name:
|
|
56
|
+
name: multi_xml
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
59
|
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '
|
|
61
|
+
version: '0.5'
|
|
62
62
|
type: :runtime
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '
|
|
68
|
+
version: '0.5'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
|
-
name:
|
|
70
|
+
name: rack
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
|
-
- - "
|
|
73
|
+
- - ">="
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: '
|
|
75
|
+
version: '1.2'
|
|
76
|
+
- - "<"
|
|
77
|
+
- !ruby/object:Gem::Version
|
|
78
|
+
version: '3'
|
|
76
79
|
type: :runtime
|
|
77
80
|
prerelease: false
|
|
78
81
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
82
|
requirements:
|
|
80
|
-
- - "
|
|
83
|
+
- - ">="
|
|
81
84
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: '
|
|
85
|
+
version: '1.2'
|
|
86
|
+
- - "<"
|
|
87
|
+
- !ruby/object:Gem::Version
|
|
88
|
+
version: '3'
|
|
83
89
|
- !ruby/object:Gem::Dependency
|
|
84
|
-
name:
|
|
90
|
+
name: rash_alt
|
|
85
91
|
requirement: !ruby/object:Gem::Requirement
|
|
86
92
|
requirements:
|
|
87
93
|
- - ">="
|
|
88
94
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: '
|
|
95
|
+
version: '0.4'
|
|
90
96
|
- - "<"
|
|
91
97
|
- !ruby/object:Gem::Version
|
|
92
|
-
version: '
|
|
98
|
+
version: '1'
|
|
93
99
|
type: :runtime
|
|
94
100
|
prerelease: false
|
|
95
101
|
version_requirements: !ruby/object:Gem::Requirement
|
|
96
102
|
requirements:
|
|
97
103
|
- - ">="
|
|
98
104
|
- !ruby/object:Gem::Version
|
|
99
|
-
version: '
|
|
105
|
+
version: '0.4'
|
|
100
106
|
- - "<"
|
|
101
107
|
- !ruby/object:Gem::Version
|
|
102
|
-
version: '
|
|
108
|
+
version: '1'
|
|
103
109
|
- !ruby/object:Gem::Dependency
|
|
104
|
-
name:
|
|
110
|
+
name: version_gem
|
|
105
111
|
requirement: !ruby/object:Gem::Requirement
|
|
106
112
|
requirements:
|
|
107
113
|
- - "~>"
|
|
108
114
|
- !ruby/object:Gem::Version
|
|
109
|
-
version: '
|
|
110
|
-
type: :
|
|
115
|
+
version: '1.1'
|
|
116
|
+
type: :runtime
|
|
111
117
|
prerelease: false
|
|
112
118
|
version_requirements: !ruby/object:Gem::Requirement
|
|
113
119
|
requirements:
|
|
114
120
|
- - "~>"
|
|
115
121
|
- !ruby/object:Gem::Version
|
|
116
|
-
version: '
|
|
122
|
+
version: '1.1'
|
|
117
123
|
- !ruby/object:Gem::Dependency
|
|
118
|
-
name:
|
|
124
|
+
name: addressable
|
|
119
125
|
requirement: !ruby/object:Gem::Requirement
|
|
120
126
|
requirements:
|
|
121
|
-
- - "
|
|
127
|
+
- - ">="
|
|
122
128
|
- !ruby/object:Gem::Version
|
|
123
|
-
version: '
|
|
129
|
+
version: '2'
|
|
124
130
|
type: :development
|
|
125
131
|
prerelease: false
|
|
126
132
|
version_requirements: !ruby/object:Gem::Requirement
|
|
127
133
|
requirements:
|
|
128
|
-
- - "
|
|
134
|
+
- - ">="
|
|
129
135
|
- !ruby/object:Gem::Version
|
|
130
|
-
version: '
|
|
136
|
+
version: '2'
|
|
131
137
|
- !ruby/object:Gem::Dependency
|
|
132
|
-
name:
|
|
138
|
+
name: backports
|
|
133
139
|
requirement: !ruby/object:Gem::Requirement
|
|
134
140
|
requirements:
|
|
135
141
|
- - ">="
|
|
136
142
|
- !ruby/object:Gem::Version
|
|
137
|
-
version: '
|
|
143
|
+
version: '3'
|
|
138
144
|
type: :development
|
|
139
145
|
prerelease: false
|
|
140
146
|
version_requirements: !ruby/object:Gem::Requirement
|
|
141
147
|
requirements:
|
|
142
148
|
- - ">="
|
|
143
149
|
- !ruby/object:Gem::Version
|
|
144
|
-
version: '
|
|
150
|
+
version: '3'
|
|
145
151
|
- !ruby/object:Gem::Dependency
|
|
146
|
-
name:
|
|
152
|
+
name: bundler
|
|
147
153
|
requirement: !ruby/object:Gem::Requirement
|
|
148
154
|
requirements:
|
|
149
|
-
- - "
|
|
155
|
+
- - ">="
|
|
150
156
|
- !ruby/object:Gem::Version
|
|
151
|
-
version: '
|
|
157
|
+
version: '2'
|
|
152
158
|
type: :development
|
|
153
159
|
prerelease: false
|
|
154
160
|
version_requirements: !ruby/object:Gem::Requirement
|
|
155
161
|
requirements:
|
|
156
|
-
- - "
|
|
162
|
+
- - ">="
|
|
157
163
|
- !ruby/object:Gem::Version
|
|
158
|
-
version: '
|
|
164
|
+
version: '2'
|
|
159
165
|
- !ruby/object:Gem::Dependency
|
|
160
166
|
name: rake
|
|
161
167
|
requirement: !ruby/object:Gem::Requirement
|
|
162
168
|
requirements:
|
|
163
|
-
- - "
|
|
169
|
+
- - ">="
|
|
164
170
|
- !ruby/object:Gem::Version
|
|
165
|
-
version: '12
|
|
171
|
+
version: '12'
|
|
166
172
|
type: :development
|
|
167
173
|
prerelease: false
|
|
168
174
|
version_requirements: !ruby/object:Gem::Requirement
|
|
169
175
|
requirements:
|
|
170
|
-
- - "
|
|
176
|
+
- - ">="
|
|
171
177
|
- !ruby/object:Gem::Version
|
|
172
|
-
version: '12
|
|
178
|
+
version: '12'
|
|
173
179
|
- !ruby/object:Gem::Dependency
|
|
174
|
-
name:
|
|
180
|
+
name: rexml
|
|
175
181
|
requirement: !ruby/object:Gem::Requirement
|
|
176
182
|
requirements:
|
|
177
183
|
- - ">="
|
|
178
184
|
- !ruby/object:Gem::Version
|
|
179
|
-
version: '
|
|
180
|
-
- - "<"
|
|
181
|
-
- !ruby/object:Gem::Version
|
|
182
|
-
version: '7'
|
|
185
|
+
version: '3'
|
|
183
186
|
type: :development
|
|
184
187
|
prerelease: false
|
|
185
188
|
version_requirements: !ruby/object:Gem::Requirement
|
|
186
189
|
requirements:
|
|
187
190
|
- - ">="
|
|
188
191
|
- !ruby/object:Gem::Version
|
|
189
|
-
version: '
|
|
190
|
-
- - "<"
|
|
191
|
-
- !ruby/object:Gem::Version
|
|
192
|
-
version: '7'
|
|
192
|
+
version: '3'
|
|
193
193
|
- !ruby/object:Gem::Dependency
|
|
194
194
|
name: rspec
|
|
195
195
|
requirement: !ruby/object:Gem::Requirement
|
|
196
196
|
requirements:
|
|
197
|
-
- - "
|
|
197
|
+
- - ">="
|
|
198
198
|
- !ruby/object:Gem::Version
|
|
199
|
-
version: '3
|
|
199
|
+
version: '3'
|
|
200
200
|
type: :development
|
|
201
201
|
prerelease: false
|
|
202
202
|
version_requirements: !ruby/object:Gem::Requirement
|
|
203
203
|
requirements:
|
|
204
|
-
- - "
|
|
204
|
+
- - ">="
|
|
205
205
|
- !ruby/object:Gem::Version
|
|
206
|
-
version: '3
|
|
206
|
+
version: '3'
|
|
207
207
|
- !ruby/object:Gem::Dependency
|
|
208
|
-
name: rspec-
|
|
208
|
+
name: rspec-block_is_expected
|
|
209
209
|
requirement: !ruby/object:Gem::Requirement
|
|
210
210
|
requirements:
|
|
211
211
|
- - ">="
|
|
@@ -233,7 +233,7 @@ dependencies:
|
|
|
233
233
|
- !ruby/object:Gem::Version
|
|
234
234
|
version: '0'
|
|
235
235
|
- !ruby/object:Gem::Dependency
|
|
236
|
-
name: rspec-
|
|
236
|
+
name: rspec-stubbed_env
|
|
237
237
|
requirement: !ruby/object:Gem::Requirement
|
|
238
238
|
requirements:
|
|
239
239
|
- - ">="
|
|
@@ -247,21 +247,21 @@ dependencies:
|
|
|
247
247
|
- !ruby/object:Gem::Version
|
|
248
248
|
version: '0'
|
|
249
249
|
- !ruby/object:Gem::Dependency
|
|
250
|
-
name:
|
|
250
|
+
name: rubocop-lts
|
|
251
251
|
requirement: !ruby/object:Gem::Requirement
|
|
252
252
|
requirements:
|
|
253
|
-
- - "
|
|
253
|
+
- - "~>"
|
|
254
254
|
- !ruby/object:Gem::Version
|
|
255
|
-
version: '0'
|
|
255
|
+
version: '8.0'
|
|
256
256
|
type: :development
|
|
257
257
|
prerelease: false
|
|
258
258
|
version_requirements: !ruby/object:Gem::Requirement
|
|
259
259
|
requirements:
|
|
260
|
-
- - "
|
|
260
|
+
- - "~>"
|
|
261
261
|
- !ruby/object:Gem::Version
|
|
262
|
-
version: '0'
|
|
262
|
+
version: '8.0'
|
|
263
263
|
- !ruby/object:Gem::Dependency
|
|
264
|
-
name:
|
|
264
|
+
name: silent_stream
|
|
265
265
|
requirement: !ruby/object:Gem::Requirement
|
|
266
266
|
requirements:
|
|
267
267
|
- - ">="
|
|
@@ -282,45 +282,19 @@ executables: []
|
|
|
282
282
|
extensions: []
|
|
283
283
|
extra_rdoc_files: []
|
|
284
284
|
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
285
|
- CHANGELOG.md
|
|
295
286
|
- CODE_OF_CONDUCT.md
|
|
296
287
|
- CONTRIBUTING.md
|
|
297
|
-
- Gemfile
|
|
298
288
|
- LICENSE
|
|
299
289
|
- 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
|
|
290
|
+
- SECURITY.md
|
|
317
291
|
- lib/oauth2.rb
|
|
318
292
|
- lib/oauth2/access_token.rb
|
|
319
293
|
- lib/oauth2/authenticator.rb
|
|
320
294
|
- lib/oauth2/client.rb
|
|
321
295
|
- lib/oauth2/error.rb
|
|
322
|
-
- lib/oauth2/mac_token.rb
|
|
323
296
|
- lib/oauth2/response.rb
|
|
297
|
+
- lib/oauth2/snaky_hash.rb
|
|
324
298
|
- lib/oauth2/strategy/assertion.rb
|
|
325
299
|
- lib/oauth2/strategy/auth_code.rb
|
|
326
300
|
- lib/oauth2/strategy/base.rb
|
|
@@ -328,17 +302,29 @@ files:
|
|
|
328
302
|
- lib/oauth2/strategy/implicit.rb
|
|
329
303
|
- lib/oauth2/strategy/password.rb
|
|
330
304
|
- lib/oauth2/version.rb
|
|
331
|
-
- oauth2.gemspec
|
|
332
305
|
homepage: https://github.com/oauth-xx/oauth2
|
|
333
306
|
licenses:
|
|
334
307
|
- MIT
|
|
335
308
|
metadata:
|
|
309
|
+
homepage_uri: https://github.com/oauth-xx/oauth2
|
|
310
|
+
source_code_uri: https://github.com/oauth-xx/oauth2/tree/v2.0.7
|
|
311
|
+
changelog_uri: https://github.com/oauth-xx/oauth2/blob/v2.0.7/CHANGELOG.md
|
|
336
312
|
bug_tracker_uri: https://github.com/oauth-xx/oauth2/issues
|
|
337
|
-
|
|
338
|
-
documentation_uri: https://www.rubydoc.info/gems/oauth2/1.4.3
|
|
339
|
-
source_code_uri: https://github.com/oauth-xx/oauth2/tree/v1.4.3
|
|
313
|
+
documentation_uri: https://www.rubydoc.info/gems/oauth2/2.0.7
|
|
340
314
|
wiki_uri: https://github.com/oauth-xx/oauth2/wiki
|
|
341
|
-
|
|
315
|
+
rubygems_mfa_required: 'true'
|
|
316
|
+
post_install_message: |2+
|
|
317
|
+
|
|
318
|
+
You have installed oauth2 version 2.0.7, congratulations!
|
|
319
|
+
|
|
320
|
+
There are BREAKING changes, but most will not encounter them, and updating your code should be easy!
|
|
321
|
+
|
|
322
|
+
Please see:
|
|
323
|
+
• https://github.com/oauth-xx/oauth2#what-is-new-for-v20
|
|
324
|
+
• https://github.com/oauth-xx/oauth2/blob/master/CHANGELOG.md
|
|
325
|
+
|
|
326
|
+
Please report issues, and support the project! Thanks, |7eter l-|. l3oling
|
|
327
|
+
|
|
342
328
|
rdoc_options: []
|
|
343
329
|
require_paths:
|
|
344
330
|
- lib
|
|
@@ -346,14 +332,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
346
332
|
requirements:
|
|
347
333
|
- - ">="
|
|
348
334
|
- !ruby/object:Gem::Version
|
|
349
|
-
version:
|
|
335
|
+
version: 2.2.0
|
|
350
336
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
351
337
|
requirements:
|
|
352
338
|
- - ">="
|
|
353
339
|
- !ruby/object:Gem::Version
|
|
354
|
-
version:
|
|
340
|
+
version: '0'
|
|
355
341
|
requirements: []
|
|
356
|
-
rubygems_version: 3.
|
|
342
|
+
rubygems_version: 3.3.18
|
|
357
343
|
signing_key:
|
|
358
344
|
specification_version: 4
|
|
359
345
|
summary: A Ruby wrapper for the OAuth 2.0 protocol.
|
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
|