oauth2 1.4.5 → 1.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +37 -1
- data/LICENSE +1 -1
- data/README.md +276 -111
- data/lib/oauth2/access_token.rb +7 -7
- data/lib/oauth2/authenticator.rb +3 -1
- data/lib/oauth2/client.rb +105 -70
- data/lib/oauth2/error.rb +3 -1
- data/lib/oauth2/mac_token.rb +18 -18
- data/lib/oauth2/response.rb +2 -0
- data/lib/oauth2/strategy/assertion.rb +3 -1
- data/lib/oauth2/strategy/auth_code.rb +3 -1
- data/lib/oauth2/strategy/base.rb +2 -0
- data/lib/oauth2/strategy/client_credentials.rb +3 -1
- data/lib/oauth2/strategy/implicit.rb +3 -1
- data/lib/oauth2/strategy/password.rb +3 -1
- data/lib/oauth2/version.rb +8 -3
- data/lib/oauth2.rb +2 -0
- data/spec/fixtures/README.md +11 -0
- data/spec/fixtures/RS256/jwtRS256.key +51 -0
- data/spec/fixtures/RS256/jwtRS256.key.pub +14 -0
- data/spec/helper.rb +33 -0
- data/spec/oauth2/access_token_spec.rb +218 -0
- data/spec/oauth2/authenticator_spec.rb +86 -0
- data/spec/oauth2/client_spec.rb +556 -0
- data/spec/oauth2/mac_token_spec.rb +122 -0
- data/spec/oauth2/response_spec.rb +96 -0
- data/spec/oauth2/strategy/assertion_spec.rb +113 -0
- data/spec/oauth2/strategy/auth_code_spec.rb +108 -0
- data/spec/oauth2/strategy/base_spec.rb +7 -0
- data/spec/oauth2/strategy/client_credentials_spec.rb +71 -0
- data/spec/oauth2/strategy/implicit_spec.rb +28 -0
- data/spec/oauth2/strategy/password_spec.rb +58 -0
- data/spec/oauth2/version_spec.rb +23 -0
- metadata +49 -90
- data/.document +0 -5
- data/.github/dependabot.yml +0 -8
- data/.github/workflows/style.yml +0 -37
- data/.github/workflows/test.yml +0 -58
- data/.gitignore +0 -19
- data/.jrubyrc +0 -1
- data/.rspec +0 -4
- data/.rubocop.yml +0 -112
- data/.rubocop_rspec.yml +0 -26
- data/.rubocop_todo.yml +0 -113
- data/.ruby-version +0 -1
- data/.travis.yml +0 -75
- data/CONTRIBUTING.md +0 -18
- data/Gemfile +0 -61
- 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_head.gemfile +0 -9
- data/gemfiles/truffleruby.gemfile +0 -3
- data/maintenance-branch +0 -1
- data/oauth2.gemspec +0 -52
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oauth2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Boling
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2022-02-20 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
|
@@ -114,20 +114,6 @@ dependencies:
|
|
114
114
|
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '2.3'
|
117
|
-
- !ruby/object:Gem::Dependency
|
118
|
-
name: backports
|
119
|
-
requirement: !ruby/object:Gem::Requirement
|
120
|
-
requirements:
|
121
|
-
- - "~>"
|
122
|
-
- !ruby/object:Gem::Version
|
123
|
-
version: '3.11'
|
124
|
-
type: :development
|
125
|
-
prerelease: false
|
126
|
-
version_requirements: !ruby/object:Gem::Requirement
|
127
|
-
requirements:
|
128
|
-
- - "~>"
|
129
|
-
- !ruby/object:Gem::Version
|
130
|
-
version: '3.11'
|
131
117
|
- !ruby/object:Gem::Dependency
|
132
118
|
name: bundler
|
133
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,20 +128,6 @@ dependencies:
|
|
142
128
|
- - ">="
|
143
129
|
- !ruby/object:Gem::Version
|
144
130
|
version: '1.16'
|
145
|
-
- !ruby/object:Gem::Dependency
|
146
|
-
name: coveralls
|
147
|
-
requirement: !ruby/object:Gem::Requirement
|
148
|
-
requirements:
|
149
|
-
- - "~>"
|
150
|
-
- !ruby/object:Gem::Version
|
151
|
-
version: '0.8'
|
152
|
-
type: :development
|
153
|
-
prerelease: false
|
154
|
-
version_requirements: !ruby/object:Gem::Requirement
|
155
|
-
requirements:
|
156
|
-
- - "~>"
|
157
|
-
- !ruby/object:Gem::Version
|
158
|
-
version: '0.8'
|
159
131
|
- !ruby/object:Gem::Dependency
|
160
132
|
name: rake
|
161
133
|
requirement: !ruby/object:Gem::Requirement
|
@@ -171,25 +143,19 @@ dependencies:
|
|
171
143
|
- !ruby/object:Gem::Version
|
172
144
|
version: '12.3'
|
173
145
|
- !ruby/object:Gem::Dependency
|
174
|
-
name:
|
146
|
+
name: rexml
|
175
147
|
requirement: !ruby/object:Gem::Requirement
|
176
148
|
requirements:
|
177
|
-
- - "
|
178
|
-
- !ruby/object:Gem::Version
|
179
|
-
version: '5.0'
|
180
|
-
- - "<"
|
149
|
+
- - "~>"
|
181
150
|
- !ruby/object:Gem::Version
|
182
|
-
version: '
|
151
|
+
version: '3.2'
|
183
152
|
type: :development
|
184
153
|
prerelease: false
|
185
154
|
version_requirements: !ruby/object:Gem::Requirement
|
186
155
|
requirements:
|
187
|
-
- - "
|
188
|
-
- !ruby/object:Gem::Version
|
189
|
-
version: '5.0'
|
190
|
-
- - "<"
|
156
|
+
- - "~>"
|
191
157
|
- !ruby/object:Gem::Version
|
192
|
-
version: '
|
158
|
+
version: '3.2'
|
193
159
|
- !ruby/object:Gem::Dependency
|
194
160
|
name: rspec
|
195
161
|
requirement: !ruby/object:Gem::Requirement
|
@@ -260,20 +226,6 @@ dependencies:
|
|
260
226
|
- - ">="
|
261
227
|
- !ruby/object:Gem::Version
|
262
228
|
version: '0'
|
263
|
-
- !ruby/object:Gem::Dependency
|
264
|
-
name: wwtd
|
265
|
-
requirement: !ruby/object:Gem::Requirement
|
266
|
-
requirements:
|
267
|
-
- - ">="
|
268
|
-
- !ruby/object:Gem::Version
|
269
|
-
version: '0'
|
270
|
-
type: :development
|
271
|
-
prerelease: false
|
272
|
-
version_requirements: !ruby/object:Gem::Requirement
|
273
|
-
requirements:
|
274
|
-
- - ">="
|
275
|
-
- !ruby/object:Gem::Version
|
276
|
-
version: '0'
|
277
229
|
description: A Ruby wrapper for the OAuth 2.0 protocol built with a similar style
|
278
230
|
to the original OAuth spec.
|
279
231
|
email:
|
@@ -282,34 +234,10 @@ executables: []
|
|
282
234
|
extensions: []
|
283
235
|
extra_rdoc_files: []
|
284
236
|
files:
|
285
|
-
- ".document"
|
286
|
-
- ".github/dependabot.yml"
|
287
|
-
- ".github/workflows/style.yml"
|
288
|
-
- ".github/workflows/test.yml"
|
289
|
-
- ".gitignore"
|
290
|
-
- ".jrubyrc"
|
291
|
-
- ".rspec"
|
292
|
-
- ".rubocop.yml"
|
293
|
-
- ".rubocop_rspec.yml"
|
294
|
-
- ".rubocop_todo.yml"
|
295
|
-
- ".ruby-version"
|
296
|
-
- ".travis.yml"
|
297
237
|
- CHANGELOG.md
|
298
238
|
- CODE_OF_CONDUCT.md
|
299
|
-
- CONTRIBUTING.md
|
300
|
-
- Gemfile
|
301
239
|
- LICENSE
|
302
240
|
- README.md
|
303
|
-
- Rakefile
|
304
|
-
- gemfiles/jruby_1.7.gemfile
|
305
|
-
- gemfiles/jruby_9.0.gemfile
|
306
|
-
- gemfiles/jruby_9.1.gemfile
|
307
|
-
- gemfiles/jruby_9.2.gemfile
|
308
|
-
- gemfiles/jruby_head.gemfile
|
309
|
-
- gemfiles/ruby_1.9.gemfile
|
310
|
-
- gemfiles/ruby_2.0.gemfile
|
311
|
-
- gemfiles/ruby_head.gemfile
|
312
|
-
- gemfiles/truffleruby.gemfile
|
313
241
|
- lib/oauth2.rb
|
314
242
|
- lib/oauth2/access_token.rb
|
315
243
|
- lib/oauth2/authenticator.rb
|
@@ -324,17 +252,32 @@ files:
|
|
324
252
|
- lib/oauth2/strategy/implicit.rb
|
325
253
|
- lib/oauth2/strategy/password.rb
|
326
254
|
- lib/oauth2/version.rb
|
327
|
-
-
|
328
|
-
-
|
255
|
+
- spec/fixtures/README.md
|
256
|
+
- spec/fixtures/RS256/jwtRS256.key
|
257
|
+
- spec/fixtures/RS256/jwtRS256.key.pub
|
258
|
+
- spec/helper.rb
|
259
|
+
- spec/oauth2/access_token_spec.rb
|
260
|
+
- spec/oauth2/authenticator_spec.rb
|
261
|
+
- spec/oauth2/client_spec.rb
|
262
|
+
- spec/oauth2/mac_token_spec.rb
|
263
|
+
- spec/oauth2/response_spec.rb
|
264
|
+
- spec/oauth2/strategy/assertion_spec.rb
|
265
|
+
- spec/oauth2/strategy/auth_code_spec.rb
|
266
|
+
- spec/oauth2/strategy/base_spec.rb
|
267
|
+
- spec/oauth2/strategy/client_credentials_spec.rb
|
268
|
+
- spec/oauth2/strategy/implicit_spec.rb
|
269
|
+
- spec/oauth2/strategy/password_spec.rb
|
270
|
+
- spec/oauth2/version_spec.rb
|
329
271
|
homepage: https://github.com/oauth-xx/oauth2
|
330
272
|
licenses:
|
331
273
|
- MIT
|
332
274
|
metadata:
|
333
275
|
bug_tracker_uri: https://github.com/oauth-xx/oauth2/issues
|
334
|
-
changelog_uri: https://github.com/oauth-xx/oauth2/blob/v1.4.
|
335
|
-
documentation_uri: https://www.rubydoc.info/gems/oauth2/1.4.
|
336
|
-
source_code_uri: https://github.com/oauth-xx/oauth2/tree/v1.4.
|
276
|
+
changelog_uri: https://github.com/oauth-xx/oauth2/blob/v1.4.9/CHANGELOG.md
|
277
|
+
documentation_uri: https://www.rubydoc.info/gems/oauth2/1.4.9
|
278
|
+
source_code_uri: https://github.com/oauth-xx/oauth2/tree/v1.4.9
|
337
279
|
wiki_uri: https://github.com/oauth-xx/oauth2/wiki
|
280
|
+
rubygems_mfa_required: 'true'
|
338
281
|
post_install_message:
|
339
282
|
rdoc_options: []
|
340
283
|
require_paths:
|
@@ -350,8 +293,24 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
350
293
|
- !ruby/object:Gem::Version
|
351
294
|
version: 1.3.5
|
352
295
|
requirements: []
|
353
|
-
rubygems_version: 3.
|
296
|
+
rubygems_version: 3.3.7
|
354
297
|
signing_key:
|
355
298
|
specification_version: 4
|
356
299
|
summary: A Ruby wrapper for the OAuth 2.0 protocol.
|
357
|
-
test_files:
|
300
|
+
test_files:
|
301
|
+
- spec/fixtures/README.md
|
302
|
+
- spec/fixtures/RS256/jwtRS256.key
|
303
|
+
- spec/fixtures/RS256/jwtRS256.key.pub
|
304
|
+
- spec/helper.rb
|
305
|
+
- spec/oauth2/access_token_spec.rb
|
306
|
+
- spec/oauth2/authenticator_spec.rb
|
307
|
+
- spec/oauth2/client_spec.rb
|
308
|
+
- spec/oauth2/mac_token_spec.rb
|
309
|
+
- spec/oauth2/response_spec.rb
|
310
|
+
- spec/oauth2/strategy/assertion_spec.rb
|
311
|
+
- spec/oauth2/strategy/auth_code_spec.rb
|
312
|
+
- spec/oauth2/strategy/base_spec.rb
|
313
|
+
- spec/oauth2/strategy/client_credentials_spec.rb
|
314
|
+
- spec/oauth2/strategy/implicit_spec.rb
|
315
|
+
- spec/oauth2/strategy/password_spec.rb
|
316
|
+
- spec/oauth2/version_spec.rb
|
data/.document
DELETED
data/.github/dependabot.yml
DELETED
data/.github/workflows/style.yml
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
name: Code Style Checks
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
branches:
|
6
|
-
- 'main'
|
7
|
-
- 'master'
|
8
|
-
- '*-maintenance'
|
9
|
-
- '*-dev'
|
10
|
-
tags:
|
11
|
-
- '!*' # Do not execute on tags
|
12
|
-
pull_request:
|
13
|
-
branches:
|
14
|
-
- '*'
|
15
|
-
|
16
|
-
jobs:
|
17
|
-
rubocop:
|
18
|
-
name: Rubocop
|
19
|
-
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
|
20
|
-
strategy:
|
21
|
-
fail-fast: false
|
22
|
-
matrix:
|
23
|
-
ruby:
|
24
|
-
- 2.7
|
25
|
-
runs-on: ubuntu-20.04
|
26
|
-
steps:
|
27
|
-
- name: Checkout
|
28
|
-
uses: actions/checkout@v2
|
29
|
-
- name: Setup Ruby
|
30
|
-
uses: ruby/setup-ruby@v1
|
31
|
-
with:
|
32
|
-
ruby-version: ${{ matrix.ruby }}
|
33
|
-
bundler-cache: true
|
34
|
-
- name: Install dependencies
|
35
|
-
run: bundle install --jobs 3 --retry 3
|
36
|
-
- name: Run Rubocop
|
37
|
-
run: bundle exec rubocop -DESP
|
data/.github/workflows/test.yml
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
name: Unit Tests
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
branches:
|
6
|
-
- 'main'
|
7
|
-
- 'master'
|
8
|
-
- '*-maintenance'
|
9
|
-
- '*-dev'
|
10
|
-
tags:
|
11
|
-
- '!*' # Do not execute on tags
|
12
|
-
pull_request:
|
13
|
-
branches:
|
14
|
-
- '*'
|
15
|
-
|
16
|
-
jobs:
|
17
|
-
test:
|
18
|
-
name: Specs - Ruby ${{ matrix.ruby }} ${{ matrix.name_extra || '' }}
|
19
|
-
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
|
20
|
-
strategy:
|
21
|
-
fail-fast: false
|
22
|
-
matrix:
|
23
|
-
ruby:
|
24
|
-
- 3.0.0
|
25
|
-
- 2.7
|
26
|
-
- 2.6
|
27
|
-
- 2.5
|
28
|
-
- 2.4
|
29
|
-
- 2.3
|
30
|
-
- 2.2
|
31
|
-
- 2.1
|
32
|
-
runs-on: ubuntu-20.04
|
33
|
-
continue-on-error: ${{ matrix.allow_failure || endsWith(matrix.ruby, 'head') }}
|
34
|
-
steps:
|
35
|
-
- uses: amancevice/setup-code-climate@v0
|
36
|
-
name: CodeClimate Install
|
37
|
-
if: matrix.ruby == '2.7' && github.event_name != 'pull_request'
|
38
|
-
with:
|
39
|
-
cc_test_reporter_id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
40
|
-
- uses: actions/checkout@v2
|
41
|
-
- name: Setup Ruby
|
42
|
-
uses: ruby/setup-ruby@v1
|
43
|
-
with:
|
44
|
-
bundler: ${{ matrix.bundler || 2 }}
|
45
|
-
bundler-cache: true
|
46
|
-
ruby-version: ${{ matrix.ruby }}
|
47
|
-
- name: Install dependencies
|
48
|
-
run: bundle install --jobs 3 --retry 3 --binstubs --standalone
|
49
|
-
- name: CodeClimate Pre-build Notification
|
50
|
-
run: cc-test-reporter before-build
|
51
|
-
if: matrix.ruby == '2.7' && github.event_name != 'pull_request'
|
52
|
-
continue-on-error: ${{ matrix.allow_failures != 'false' }}
|
53
|
-
- name: Run tests
|
54
|
-
run: bundle exec rake test
|
55
|
-
- name: CodeClimate Post-build Notification
|
56
|
-
run: cc-test-reporter after-build
|
57
|
-
if: matrix.ruby == '2.7' && github.event_name != 'pull_request' && always()
|
58
|
-
continue-on-error: ${{ matrix.allow_failures != 'false' }}
|
data/.gitignore
DELETED
data/.jrubyrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
debug.fullTrace=true
|
data/.rspec
DELETED
data/.rubocop.yml
DELETED
@@ -1,112 +0,0 @@
|
|
1
|
-
inherit_from:
|
2
|
-
- .rubocop_todo.yml
|
3
|
-
- .rubocop_rspec.yml
|
4
|
-
|
5
|
-
require:
|
6
|
-
- 'rubocop-md'
|
7
|
-
- 'rubocop-packaging'
|
8
|
-
- 'rubocop-performance'
|
9
|
-
- 'rubocop-rake'
|
10
|
-
- 'rubocop-rspec'
|
11
|
-
|
12
|
-
AllCops:
|
13
|
-
NewCops: enable
|
14
|
-
DisplayCopNames: true # Display the name of the failing cops
|
15
|
-
Exclude:
|
16
|
-
- 'gemfiles/vendor/**/*'
|
17
|
-
- 'vendor/**/*'
|
18
|
-
- '**/.irbrc'
|
19
|
-
|
20
|
-
Metrics/BlockLength:
|
21
|
-
IgnoredMethods:
|
22
|
-
- context
|
23
|
-
- describe
|
24
|
-
- it
|
25
|
-
- shared_context
|
26
|
-
- shared_examples
|
27
|
-
- shared_examples_for
|
28
|
-
- namespace
|
29
|
-
- draw
|
30
|
-
|
31
|
-
Gemspec/RequiredRubyVersion:
|
32
|
-
Enabled: false
|
33
|
-
|
34
|
-
Metrics/BlockNesting:
|
35
|
-
Max: 2
|
36
|
-
|
37
|
-
Layout/LineLength:
|
38
|
-
Enabled: false
|
39
|
-
|
40
|
-
Metrics/ParameterLists:
|
41
|
-
Max: 4
|
42
|
-
|
43
|
-
Layout/AccessModifierIndentation:
|
44
|
-
EnforcedStyle: outdent
|
45
|
-
|
46
|
-
Layout/DotPosition:
|
47
|
-
EnforcedStyle: trailing
|
48
|
-
|
49
|
-
Layout/SpaceInsideHashLiteralBraces:
|
50
|
-
EnforcedStyle: no_space
|
51
|
-
|
52
|
-
Lint/UnusedBlockArgument:
|
53
|
-
Exclude:
|
54
|
-
- 'spec/**/*.rb'
|
55
|
-
- 'gemfiles/vendor/**/*'
|
56
|
-
- 'vendor/**/*'
|
57
|
-
- '**/.irbrc'
|
58
|
-
|
59
|
-
RSpec/DescribeClass:
|
60
|
-
Exclude:
|
61
|
-
- 'spec/examples/*'
|
62
|
-
|
63
|
-
RSpec/NestedGroups:
|
64
|
-
Enabled: false
|
65
|
-
|
66
|
-
Style/ClassVars:
|
67
|
-
Enabled: false
|
68
|
-
|
69
|
-
Style/CollectionMethods:
|
70
|
-
PreferredMethods:
|
71
|
-
map: 'collect'
|
72
|
-
reduce: 'inject'
|
73
|
-
find: 'detect'
|
74
|
-
find_all: 'select'
|
75
|
-
|
76
|
-
Style/Documentation:
|
77
|
-
Enabled: false
|
78
|
-
|
79
|
-
Style/DoubleNegation:
|
80
|
-
Enabled: false
|
81
|
-
|
82
|
-
Style/EmptyMethod:
|
83
|
-
EnforcedStyle: expanded
|
84
|
-
|
85
|
-
Style/Encoding:
|
86
|
-
Enabled: false
|
87
|
-
|
88
|
-
Style/TrailingCommaInArrayLiteral:
|
89
|
-
EnforcedStyleForMultiline: comma
|
90
|
-
|
91
|
-
Style/TrailingCommaInHashLiteral:
|
92
|
-
EnforcedStyleForMultiline: comma
|
93
|
-
|
94
|
-
Style/HashSyntax:
|
95
|
-
EnforcedStyle: hash_rockets
|
96
|
-
|
97
|
-
Style/Lambda:
|
98
|
-
Enabled: false
|
99
|
-
|
100
|
-
Style/SymbolArray:
|
101
|
-
Enabled: false
|
102
|
-
|
103
|
-
Style/EachWithObject:
|
104
|
-
Enabled: false
|
105
|
-
|
106
|
-
# Once we drop Rubies that lack support for __dir__ we can turn this on.
|
107
|
-
Style/ExpandPathArguments:
|
108
|
-
Enabled: false
|
109
|
-
|
110
|
-
# On Ruby 1.9 array.to_h isn't available, needs to be Hash[array]
|
111
|
-
Style/HashConversion:
|
112
|
-
Enabled: false
|
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,113 +0,0 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
# on 2021-03-18 18:59:52 UTC using RuboCop version 1.11.0.
|
4
|
-
# The point is for the user to remove these configuration records
|
5
|
-
# one by one as the offenses are removed from the code base.
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
8
|
-
|
9
|
-
# Offense count: 1
|
10
|
-
# Configuration parameters: AllowedMethods.
|
11
|
-
# AllowedMethods: enums
|
12
|
-
Lint/ConstantDefinitionInBlock:
|
13
|
-
Exclude:
|
14
|
-
- 'spec/oauth2/client_spec.rb'
|
15
|
-
|
16
|
-
# Offense count: 1
|
17
|
-
Lint/UselessAssignment:
|
18
|
-
Exclude:
|
19
|
-
- '**/*.md'
|
20
|
-
- '**/*.markdown'
|
21
|
-
- 'spec/oauth2/client_spec.rb'
|
22
|
-
|
23
|
-
# Offense count: 1
|
24
|
-
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
25
|
-
# IgnoredMethods: refine
|
26
|
-
Metrics/BlockLength:
|
27
|
-
Max: 27
|
28
|
-
|
29
|
-
# Offense count: 4
|
30
|
-
# Configuration parameters: IgnoredMethods.
|
31
|
-
Metrics/CyclomaticComplexity:
|
32
|
-
Max: 11
|
33
|
-
|
34
|
-
# Offense count: 1
|
35
|
-
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
36
|
-
Metrics/MethodLength:
|
37
|
-
Max: 18
|
38
|
-
|
39
|
-
# Offense count: 3
|
40
|
-
# Configuration parameters: IgnoredMethods.
|
41
|
-
Metrics/PerceivedComplexity:
|
42
|
-
Max: 11
|
43
|
-
|
44
|
-
# Offense count: 14
|
45
|
-
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers.
|
46
|
-
# SupportedStyles: snake_case, normalcase, non_integer
|
47
|
-
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339
|
48
|
-
Naming/VariableNumber:
|
49
|
-
Exclude:
|
50
|
-
- 'Gemfile'
|
51
|
-
|
52
|
-
# Offense count: 1
|
53
|
-
Packaging/GemspecGit:
|
54
|
-
Exclude:
|
55
|
-
- 'oauth2.gemspec'
|
56
|
-
|
57
|
-
# Offense count: 2
|
58
|
-
# Configuration parameters: MinSize.
|
59
|
-
Performance/CollectionLiteralInLoop:
|
60
|
-
Exclude:
|
61
|
-
- 'spec/oauth2/strategy/auth_code_spec.rb'
|
62
|
-
- 'spec/oauth2/strategy/client_credentials_spec.rb'
|
63
|
-
|
64
|
-
# Offense count: 7
|
65
|
-
# Configuration parameters: Prefixes.
|
66
|
-
# Prefixes: when, with, without
|
67
|
-
RSpec/ContextWording:
|
68
|
-
Exclude:
|
69
|
-
- 'spec/oauth2/access_token_spec.rb'
|
70
|
-
- 'spec/oauth2/authenticator_spec.rb'
|
71
|
-
- 'spec/oauth2/client_spec.rb'
|
72
|
-
|
73
|
-
# Offense count: 1
|
74
|
-
RSpec/LeakyConstantDeclaration:
|
75
|
-
Exclude:
|
76
|
-
- 'spec/oauth2/client_spec.rb'
|
77
|
-
|
78
|
-
# Offense count: 8
|
79
|
-
# Configuration parameters: AllowSubject.
|
80
|
-
RSpec/MultipleMemoizedHelpers:
|
81
|
-
Max: 6
|
82
|
-
|
83
|
-
# Offense count: 1
|
84
|
-
Rake/Desc:
|
85
|
-
Exclude:
|
86
|
-
- 'Rakefile'
|
87
|
-
|
88
|
-
# Offense count: 40
|
89
|
-
# Cop supports --auto-correct.
|
90
|
-
# Configuration parameters: EnforcedStyle.
|
91
|
-
# SupportedStyles: always, always_true, never
|
92
|
-
Style/FrozenStringLiteralComment:
|
93
|
-
Enabled: false
|
94
|
-
|
95
|
-
# Offense count: 1
|
96
|
-
Style/MixinUsage:
|
97
|
-
Exclude:
|
98
|
-
- 'spec/helper.rb'
|
99
|
-
|
100
|
-
# Offense count: 1
|
101
|
-
# Cop supports --auto-correct.
|
102
|
-
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
|
103
|
-
# AllowedMethods: present?, blank?, presence, try, try!
|
104
|
-
Style/SafeNavigation:
|
105
|
-
Exclude:
|
106
|
-
- 'lib/oauth2/error.rb'
|
107
|
-
|
108
|
-
# Offense count: 3
|
109
|
-
# Cop supports --auto-correct.
|
110
|
-
Style/StringConcatenation:
|
111
|
-
Exclude:
|
112
|
-
- 'lib/oauth2/authenticator.rb'
|
113
|
-
- 'spec/oauth2/authenticator_spec.rb'
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.7.0
|