oauth2 1.4.1 → 1.4.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +67 -10
  3. data/CODE_OF_CONDUCT.md +105 -46
  4. data/LICENSE +1 -1
  5. data/README.md +290 -98
  6. data/lib/oauth2/access_token.rb +15 -5
  7. data/lib/oauth2/authenticator.rb +13 -1
  8. data/lib/oauth2/client.rb +133 -51
  9. data/lib/oauth2/error.rb +3 -1
  10. data/lib/oauth2/mac_token.rb +18 -10
  11. data/lib/oauth2/response.rb +7 -3
  12. data/lib/oauth2/strategy/assertion.rb +6 -4
  13. data/lib/oauth2/strategy/auth_code.rb +3 -1
  14. data/lib/oauth2/strategy/base.rb +2 -0
  15. data/lib/oauth2/strategy/client_credentials.rb +3 -1
  16. data/lib/oauth2/strategy/implicit.rb +3 -1
  17. data/lib/oauth2/strategy/password.rb +5 -3
  18. data/lib/oauth2/version.rb +14 -8
  19. data/lib/oauth2.rb +2 -0
  20. data/spec/fixtures/README.md +11 -0
  21. data/spec/fixtures/RS256/jwtRS256.key +51 -0
  22. data/spec/fixtures/RS256/jwtRS256.key.pub +14 -0
  23. data/spec/helper.rb +33 -0
  24. data/spec/oauth2/access_token_spec.rb +218 -0
  25. data/spec/oauth2/authenticator_spec.rb +86 -0
  26. data/spec/oauth2/client_spec.rb +556 -0
  27. data/spec/oauth2/mac_token_spec.rb +122 -0
  28. data/spec/oauth2/response_spec.rb +96 -0
  29. data/spec/oauth2/strategy/assertion_spec.rb +113 -0
  30. data/spec/oauth2/strategy/auth_code_spec.rb +108 -0
  31. data/spec/oauth2/strategy/base_spec.rb +7 -0
  32. data/spec/oauth2/strategy/client_credentials_spec.rb +71 -0
  33. data/spec/oauth2/strategy/implicit_spec.rb +28 -0
  34. data/spec/oauth2/strategy/password_spec.rb +58 -0
  35. data/spec/oauth2/version_spec.rb +23 -0
  36. metadata +86 -77
  37. data/.document +0 -5
  38. data/.gitignore +0 -12
  39. data/.jrubyrc +0 -1
  40. data/.rspec +0 -2
  41. data/.rubocop.yml +0 -80
  42. data/.rubocop_rspec.yml +0 -26
  43. data/.rubocop_todo.yml +0 -15
  44. data/.travis.yml +0 -49
  45. data/CONTRIBUTING.md +0 -18
  46. data/Gemfile +0 -41
  47. data/Rakefile +0 -45
  48. data/gemfiles/jruby_1.7.gemfile +0 -11
  49. data/gemfiles/jruby_1.7.gemfile.lock +0 -81
  50. data/gemfiles/jruby_9.0.gemfile +0 -13
  51. data/gemfiles/jruby_9.1.gemfile +0 -17
  52. data/gemfiles/jruby_9.1.gemfile.lock +0 -112
  53. data/gemfiles/jruby_9.2.gemfile +0 -17
  54. data/gemfiles/jruby_9.2.gemfile.lock +0 -112
  55. data/gemfiles/jruby_head.gemfile +0 -17
  56. data/gemfiles/ruby_1.9.gemfile +0 -16
  57. data/gemfiles/ruby_1.9.gemfile.lock +0 -85
  58. data/gemfiles/ruby_2.0.gemfile +0 -17
  59. data/gemfiles/ruby_2.0.gemfile.lock +0 -90
  60. data/gemfiles/ruby_2.1.gemfile +0 -19
  61. data/gemfiles/ruby_2.1.gemfile.lock +0 -109
  62. data/gemfiles/ruby_2.2.gemfile +0 -17
  63. data/gemfiles/ruby_2.2.gemfile.lock +0 -108
  64. data/gemfiles/ruby_2.3.gemfile +0 -17
  65. data/gemfiles/ruby_2.3.gemfile.lock +0 -108
  66. data/gemfiles/ruby_2.4.gemfile +0 -17
  67. data/gemfiles/ruby_2.4.gemfile.lock +0 -108
  68. data/gemfiles/ruby_2.5.gemfile +0 -17
  69. data/gemfiles/ruby_2.5.gemfile.lock +0 -108
  70. data/gemfiles/ruby_head.gemfile +0 -17
  71. data/gemfiles/ruby_head.gemfile.lock +0 -108
  72. data/oauth2.gemspec +0 -40
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: 1.4.1
4
+ version: 1.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling
8
8
  - Michael Bleigh
9
9
  - Erik Michaels-Ober
10
- autorequire:
10
+ autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2018-10-13 00:00:00.000000000 Z
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: '0.8'
21
+ version: 0.17.3
22
22
  - - "<"
23
23
  - !ruby/object:Gem::Version
24
- version: 0.16.0
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: '0.8'
31
+ version: 0.17.3
32
32
  - - "<"
33
33
  - !ruby/object:Gem::Version
34
- version: 0.16.0
34
+ version: '3.0'
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: jwt
37
37
  requirement: !ruby/object:Gem::Requirement
@@ -115,97 +115,105 @@ dependencies:
115
115
  - !ruby/object:Gem::Version
116
116
  version: '2.3'
117
117
  - !ruby/object:Gem::Dependency
118
- name: backports
118
+ name: bundler
119
119
  requirement: !ruby/object:Gem::Requirement
120
120
  requirements:
121
- - - "~>"
121
+ - - ">="
122
122
  - !ruby/object:Gem::Version
123
- version: '3.11'
123
+ version: '1.16'
124
124
  type: :development
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
- - - "~>"
128
+ - - ">="
129
129
  - !ruby/object:Gem::Version
130
- version: '3.11'
130
+ version: '1.16'
131
131
  - !ruby/object:Gem::Dependency
132
- name: bundler
132
+ name: rake
133
133
  requirement: !ruby/object:Gem::Requirement
134
134
  requirements:
135
135
  - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: '1.16'
137
+ version: '12.3'
138
138
  type: :development
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: '1.16'
144
+ version: '12.3'
145
145
  - !ruby/object:Gem::Dependency
146
- name: coveralls
146
+ name: rexml
147
147
  requirement: !ruby/object:Gem::Requirement
148
148
  requirements:
149
149
  - - "~>"
150
150
  - !ruby/object:Gem::Version
151
- version: '0.8'
151
+ version: '3.2'
152
152
  type: :development
153
153
  prerelease: false
154
154
  version_requirements: !ruby/object:Gem::Requirement
155
155
  requirements:
156
156
  - - "~>"
157
157
  - !ruby/object:Gem::Version
158
- version: '0.8'
158
+ version: '3.2'
159
159
  - !ruby/object:Gem::Dependency
160
- name: rake
160
+ name: rspec
161
161
  requirement: !ruby/object:Gem::Requirement
162
162
  requirements:
163
163
  - - "~>"
164
164
  - !ruby/object:Gem::Version
165
- version: '12.3'
165
+ version: '3.0'
166
166
  type: :development
167
167
  prerelease: false
168
168
  version_requirements: !ruby/object:Gem::Requirement
169
169
  requirements:
170
170
  - - "~>"
171
171
  - !ruby/object:Gem::Version
172
- version: '12.3'
172
+ version: '3.0'
173
173
  - !ruby/object:Gem::Dependency
174
- name: rdoc
174
+ name: rspec-block_is_expected
175
175
  requirement: !ruby/object:Gem::Requirement
176
176
  requirements:
177
177
  - - ">="
178
178
  - !ruby/object:Gem::Version
179
- version: '5.0'
180
- - - "<"
181
- - !ruby/object:Gem::Version
182
- version: '7'
179
+ version: '0'
183
180
  type: :development
184
181
  prerelease: false
185
182
  version_requirements: !ruby/object:Gem::Requirement
186
183
  requirements:
187
184
  - - ">="
188
185
  - !ruby/object:Gem::Version
189
- version: '5.0'
190
- - - "<"
186
+ version: '0'
187
+ - !ruby/object:Gem::Dependency
188
+ name: rspec-pending_for
189
+ requirement: !ruby/object:Gem::Requirement
190
+ requirements:
191
+ - - ">="
191
192
  - !ruby/object:Gem::Version
192
- version: '7'
193
+ version: '0'
194
+ type: :development
195
+ prerelease: false
196
+ version_requirements: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - ">="
199
+ - !ruby/object:Gem::Version
200
+ version: '0'
193
201
  - !ruby/object:Gem::Dependency
194
- name: rspec
202
+ name: rspec-stubbed_env
195
203
  requirement: !ruby/object:Gem::Requirement
196
204
  requirements:
197
- - - "~>"
205
+ - - ">="
198
206
  - !ruby/object:Gem::Version
199
- version: '3.0'
207
+ version: '0'
200
208
  type: :development
201
209
  prerelease: false
202
210
  version_requirements: !ruby/object:Gem::Requirement
203
211
  requirements:
204
- - - "~>"
212
+ - - ">="
205
213
  - !ruby/object:Gem::Version
206
- version: '3.0'
214
+ version: '0'
207
215
  - !ruby/object:Gem::Dependency
208
- name: wwtd
216
+ name: silent_stream
209
217
  requirement: !ruby/object:Gem::Requirement
210
218
  requirements:
211
219
  - - ">="
@@ -226,45 +234,10 @@ executables: []
226
234
  extensions: []
227
235
  extra_rdoc_files: []
228
236
  files:
229
- - ".document"
230
- - ".gitignore"
231
- - ".jrubyrc"
232
- - ".rspec"
233
- - ".rubocop.yml"
234
- - ".rubocop_rspec.yml"
235
- - ".rubocop_todo.yml"
236
- - ".travis.yml"
237
237
  - CHANGELOG.md
238
238
  - CODE_OF_CONDUCT.md
239
- - CONTRIBUTING.md
240
- - Gemfile
241
239
  - LICENSE
242
240
  - README.md
243
- - Rakefile
244
- - gemfiles/jruby_1.7.gemfile
245
- - gemfiles/jruby_1.7.gemfile.lock
246
- - gemfiles/jruby_9.0.gemfile
247
- - gemfiles/jruby_9.1.gemfile
248
- - gemfiles/jruby_9.1.gemfile.lock
249
- - gemfiles/jruby_9.2.gemfile
250
- - gemfiles/jruby_9.2.gemfile.lock
251
- - gemfiles/jruby_head.gemfile
252
- - gemfiles/ruby_1.9.gemfile
253
- - gemfiles/ruby_1.9.gemfile.lock
254
- - gemfiles/ruby_2.0.gemfile
255
- - gemfiles/ruby_2.0.gemfile.lock
256
- - gemfiles/ruby_2.1.gemfile
257
- - gemfiles/ruby_2.1.gemfile.lock
258
- - gemfiles/ruby_2.2.gemfile
259
- - gemfiles/ruby_2.2.gemfile.lock
260
- - gemfiles/ruby_2.3.gemfile
261
- - gemfiles/ruby_2.3.gemfile.lock
262
- - gemfiles/ruby_2.4.gemfile
263
- - gemfiles/ruby_2.4.gemfile.lock
264
- - gemfiles/ruby_2.5.gemfile
265
- - gemfiles/ruby_2.5.gemfile.lock
266
- - gemfiles/ruby_head.gemfile
267
- - gemfiles/ruby_head.gemfile.lock
268
241
  - lib/oauth2.rb
269
242
  - lib/oauth2/access_token.rb
270
243
  - lib/oauth2/authenticator.rb
@@ -279,12 +252,33 @@ files:
279
252
  - lib/oauth2/strategy/implicit.rb
280
253
  - lib/oauth2/strategy/password.rb
281
254
  - lib/oauth2/version.rb
282
- - oauth2.gemspec
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
283
271
  homepage: https://github.com/oauth-xx/oauth2
284
272
  licenses:
285
273
  - MIT
286
- metadata: {}
287
- post_install_message:
274
+ metadata:
275
+ bug_tracker_uri: https://github.com/oauth-xx/oauth2/issues
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
279
+ wiki_uri: https://github.com/oauth-xx/oauth2/wiki
280
+ rubygems_mfa_required: 'true'
281
+ post_install_message:
288
282
  rdoc_options: []
289
283
  require_paths:
290
284
  - lib
@@ -299,9 +293,24 @@ required_rubygems_version: !ruby/object:Gem::Requirement
299
293
  - !ruby/object:Gem::Version
300
294
  version: 1.3.5
301
295
  requirements: []
302
- rubyforge_project:
303
- rubygems_version: 2.7.7
304
- signing_key:
296
+ rubygems_version: 3.3.7
297
+ signing_key:
305
298
  specification_version: 4
306
299
  summary: A Ruby wrapper for the OAuth 2.0 protocol.
307
- 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
@@ -1,5 +0,0 @@
1
- README.rdoc
2
- lib/**/*.rb
3
- bin/*
4
- features/**/*.feature
5
- LICENSE
data/.gitignore DELETED
@@ -1,12 +0,0 @@
1
- *.gem
2
- *~
3
- .bundle
4
- .rvmrc
5
- Gemfile.lock
6
- coverage/*
7
- log/*
8
- measurement/*
9
- pkg/*
10
- rdoc/*
11
-
12
- .rspec_status
data/.jrubyrc DELETED
@@ -1 +0,0 @@
1
- debug.fullTrace=true
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --color
2
- --order random
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/.travis.yml DELETED
@@ -1,49 +0,0 @@
1
- before_install:
2
- - gem update --system
3
- - gem install bundler
4
-
5
- bundler_args: --no-deployment --jobs 3 --retry 3
6
-
7
- cache: bundler
8
-
9
- language: ruby
10
-
11
- matrix:
12
- allow_failures:
13
- - rvm: jruby-head
14
- - rvm: ruby-head
15
- - rvm: rbx-3
16
- fast_finish: true
17
- include:
18
- - rvm: jruby-1.7.27 # targets MRI v1.9
19
- gemfile: gemfiles/jruby_1.7.gemfile
20
- - rvm: 1.9.3-p551
21
- gemfile: gemfiles/ruby_1.9.gemfile
22
- - rvm: 2.0.0-p648
23
- gemfile: gemfiles/ruby_2.0.gemfile
24
- - rvm: 2.1.10
25
- gemfile: gemfiles/ruby_2.1.gemfile
26
- - rvm: jruby-9.0.5.0 # targets MRI v2.0
27
- gemfile: gemfiles/jruby_9.0.gemfile
28
- # DEPRECATION WARNING
29
- # oauth2 1.x series releases are the last to support Ruby versions above
30
- # oauth2 2.x series releases will support Ruby versions below, and not above
31
- - rvm: jruby-9.1.9.0 # targets MRI v2.3
32
- gemfile: gemfiles/jruby_9.1.gemfile
33
- - rvm: 2.2.10
34
- gemfile: gemfiles/ruby_2.2.gemfile
35
- - rvm: 2.3.7
36
- gemfile: gemfiles/ruby_2.3.gemfile
37
- - rvm: 2.4.4
38
- gemfile: gemfiles/ruby_2.4.gemfile
39
- - rvm: jruby-9.2.0.0 # targets MRI v2.5
40
- gemfile: gemfiles/jruby_9.2.gemfile
41
- - rvm: 2.5.1
42
- gemfile: gemfiles/ruby_2.5.gemfile
43
- - rvm: jruby-head
44
- gemfile: gemfiles/jruby_head.gemfile
45
- - rvm: ruby-head
46
- gemfile: gemfiles/ruby_head.gemfile
47
- - rvm: rbx-3
48
-
49
- sudo: false
data/CONTRIBUTING.md DELETED
@@ -1,18 +0,0 @@
1
- ## Submitting a Pull Request
2
- 1. [Fork the repository.][fork]
3
- 2. [Create a topic branch.][branch]
4
- 3. Add specs for your unimplemented feature or bug fix.
5
- 4. Run `bundle exec rake spec`. If your specs pass, return to step 3.
6
- 5. Implement your feature or bug fix.
7
- 6. Run `bundle exec rake`. If your specs fail, return to step 5.
8
- 7. Run `open coverage/index.html`. If your changes are not completely covered
9
- by your tests, return to step 3.
10
- 8. Add documentation for your feature or bug fix.
11
- 9. Run `bundle exec rake verify_measurements`. If your changes are not 100%
12
- documented, go back to step 8.
13
- 10. Commit and push your changes.
14
- 11. [Submit a pull request.][pr]
15
-
16
- [fork]: http://help.github.com/fork-a-repo/
17
- [branch]: http://learn.github.com/p/branching.html
18
- [pr]: http://help.github.com/send-pull-requests/
data/Gemfile DELETED
@@ -1,41 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
-
5
- gem 'faraday', '~> 0.9.2', :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
- gem 'rspec-pending_for'
21
-
22
- gem 'addressable', '~> 2.3.8'
23
- gem 'backports'
24
- gem 'coveralls'
25
- gem 'rack', '~> 1.2', :platforms => [:jruby_18, :jruby_19, :ruby_18, :ruby_19, :ruby_20, :ruby_21]
26
- gem 'rspec', '>= 3'
27
- gem 'simplecov', '>= 0.9'
28
-
29
- platforms :jruby_18, :ruby_18 do
30
- gem 'mime-types', '~> 1.25'
31
- gem 'rest-client', '~> 1.6.0'
32
- end
33
-
34
- platforms :ruby_18, :ruby_19 do
35
- gem 'json', '< 2.0'
36
- gem 'term-ansicolor', '< 1.4.0'
37
- gem 'tins', '< 1.7'
38
- end
39
- end
40
-
41
- gemspec
data/Rakefile DELETED
@@ -1,45 +0,0 @@
1
- # encoding: utf-8
2
-
3
- # !/usr/bin/env rake
4
-
5
- require 'bundler/gem_tasks'
6
-
7
- begin
8
- require 'wwtd/tasks'
9
- rescue LoadError
10
- puts 'failed to load wwtd'
11
- end
12
-
13
- begin
14
- require 'rspec/core/rake_task'
15
- RSpec::Core::RakeTask.new(:spec)
16
- rescue LoadError
17
- task :spec do
18
- warn 'rspec is disabled'
19
- end
20
- end
21
- task :test => :spec
22
-
23
- begin
24
- require 'rubocop/rake_task'
25
- RuboCop::RakeTask.new do |task|
26
- task.options = ['-D'] # Display the name of the failing cops
27
- end
28
- rescue LoadError
29
- task :rubocop do
30
- warn 'RuboCop is disabled'
31
- end
32
- end
33
-
34
- namespace :doc do
35
- require 'rdoc/task'
36
- require File.expand_path('../lib/oauth2/version', __FILE__)
37
- RDoc::Task.new do |rdoc|
38
- rdoc.rdoc_dir = 'rdoc'
39
- rdoc.title = "oauth2 #{OAuth2::Version}"
40
- rdoc.main = 'README.md'
41
- rdoc.rdoc_files.include('README.md', 'LICENSE.md', 'lib/**/*.rb')
42
- end
43
- end
44
-
45
- task :default => [:test, :rubocop]
@@ -1,11 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'faraday', '0.9.2'
4
-
5
- group :test do
6
- gem 'rake'
7
- gem 'rspec'
8
- gem 'rspec-pending_for'
9
- end
10
-
11
- gemspec :path => '../'
@@ -1,81 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- oauth2 (1.4.0)
5
- faraday (>= 0.8, < 0.16.0)
6
- jwt (>= 1.0, < 3.0)
7
- multi_json (~> 1.3)
8
- multi_xml (~> 0.5)
9
- rack (>= 1.2, < 3)
10
-
11
- GEM
12
- remote: https://rubygems.org/
13
- specs:
14
- addressable (2.4.0)
15
- backports (3.11.4)
16
- coveralls (0.8.22)
17
- json (>= 1.8, < 3)
18
- simplecov (~> 0.16.1)
19
- term-ansicolor (~> 1.3)
20
- thor (~> 0.19.4)
21
- tins (~> 1.6)
22
- diff-lcs (1.3)
23
- docile (1.3.1)
24
- faraday (0.9.2)
25
- multipart-post (>= 1.2, < 3)
26
- json (2.1.0-java)
27
- jwt (1.5.6)
28
- multi_json (1.13.1)
29
- multi_xml (0.6.0)
30
- multipart-post (2.0.0)
31
- rack (1.6.10)
32
- rake (12.2.1)
33
- rdoc (5.1.0)
34
- rspec (3.8.0)
35
- rspec-core (~> 3.8.0)
36
- rspec-expectations (~> 3.8.0)
37
- rspec-mocks (~> 3.8.0)
38
- rspec-core (3.8.0)
39
- rspec-support (~> 3.8.0)
40
- rspec-expectations (3.8.2)
41
- diff-lcs (>= 1.2.0, < 2.0)
42
- rspec-support (~> 3.8.0)
43
- rspec-mocks (3.8.0)
44
- diff-lcs (>= 1.2.0, < 2.0)
45
- rspec-support (~> 3.8.0)
46
- rspec-pending_for (0.1.13)
47
- rspec-core
48
- ruby_engine (~> 1.0)
49
- ruby_version (~> 1.0)
50
- rspec-support (3.8.0)
51
- ruby_engine (1.0.1)
52
- ruby_version (1.0.1)
53
- simplecov (0.16.1)
54
- docile (~> 1.1)
55
- json (>= 1.8, < 3)
56
- simplecov-html (~> 0.10.0)
57
- simplecov-html (0.10.2)
58
- term-ansicolor (1.3.2)
59
- tins (~> 1.0)
60
- thor (0.19.4)
61
- tins (1.6.0)
62
- wwtd (1.3.0)
63
-
64
- PLATFORMS
65
- java
66
-
67
- DEPENDENCIES
68
- addressable (~> 2.3)
69
- backports (~> 3.11)
70
- bundler (~> 1.16)
71
- coveralls (~> 0.8)
72
- faraday (= 0.9.2)
73
- oauth2!
74
- rake
75
- rdoc (>= 5.0, < 7)
76
- rspec
77
- rspec-pending_for
78
- wwtd
79
-
80
- BUNDLED WITH
81
- 1.16.6