oauth2 1.4.4 → 1.4.11

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.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +94 -63
  3. data/CODE_OF_CONDUCT.md +105 -46
  4. data/CONTRIBUTING.md +27 -1
  5. data/LICENSE +1 -1
  6. data/README.md +331 -123
  7. data/SECURITY.md +26 -0
  8. data/lib/oauth2/access_token.rb +11 -8
  9. data/lib/oauth2/authenticator.rb +4 -2
  10. data/lib/oauth2/client.rb +131 -50
  11. data/lib/oauth2/error.rb +3 -1
  12. data/lib/oauth2/mac_token.rb +19 -11
  13. data/lib/oauth2/response.rb +7 -3
  14. data/lib/oauth2/strategy/assertion.rb +6 -4
  15. data/lib/oauth2/strategy/auth_code.rb +3 -1
  16. data/lib/oauth2/strategy/base.rb +2 -0
  17. data/lib/oauth2/strategy/client_credentials.rb +3 -1
  18. data/lib/oauth2/strategy/implicit.rb +3 -1
  19. data/lib/oauth2/strategy/password.rb +5 -3
  20. data/lib/oauth2/version.rb +9 -3
  21. data/lib/oauth2.rb +2 -0
  22. metadata +70 -103
  23. data/.document +0 -5
  24. data/.gitignore +0 -19
  25. data/.jrubyrc +0 -1
  26. data/.rspec +0 -2
  27. data/.rubocop.yml +0 -80
  28. data/.rubocop_rspec.yml +0 -26
  29. data/.rubocop_todo.yml +0 -15
  30. data/.ruby-version +0 -1
  31. data/.travis.yml +0 -87
  32. data/Gemfile +0 -40
  33. data/Rakefile +0 -45
  34. data/gemfiles/jruby_1.7.gemfile +0 -11
  35. data/gemfiles/jruby_9.0.gemfile +0 -7
  36. data/gemfiles/jruby_9.1.gemfile +0 -3
  37. data/gemfiles/jruby_9.2.gemfile +0 -3
  38. data/gemfiles/jruby_head.gemfile +0 -3
  39. data/gemfiles/ruby_1.9.gemfile +0 -11
  40. data/gemfiles/ruby_2.0.gemfile +0 -6
  41. data/gemfiles/ruby_2.1.gemfile +0 -6
  42. data/gemfiles/ruby_2.2.gemfile +0 -3
  43. data/gemfiles/ruby_2.3.gemfile +0 -3
  44. data/gemfiles/ruby_2.4.gemfile +0 -3
  45. data/gemfiles/ruby_2.5.gemfile +0 -3
  46. data/gemfiles/ruby_2.6.gemfile +0 -9
  47. data/gemfiles/ruby_2.7.gemfile +0 -9
  48. data/gemfiles/ruby_head.gemfile +0 -9
  49. data/gemfiles/truffleruby.gemfile +0 -3
  50. 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: 1.4.4
4
+ version: 1.4.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling
8
- - Michael Bleigh
9
8
  - Erik Michaels-Ober
10
- autorequire:
9
+ - Michael Bleigh
10
+ autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2020-02-13 00:00:00.000000000 Z
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: '0.8'
21
+ version: 0.17.3
22
22
  - - "<"
23
23
  - !ruby/object:Gem::Version
24
- version: '2.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: '2.0'
34
+ version: '3.0'
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: jwt
37
37
  requirement: !ruby/object:Gem::Requirement
@@ -89,7 +89,7 @@ dependencies:
89
89
  version: '1.2'
90
90
  - - "<"
91
91
  - !ruby/object:Gem::Version
92
- version: '3'
92
+ version: '4'
93
93
  type: :runtime
94
94
  prerelease: false
95
95
  version_requirements: !ruby/object:Gem::Requirement
@@ -99,35 +99,21 @@ dependencies:
99
99
  version: '1.2'
100
100
  - - "<"
101
101
  - !ruby/object:Gem::Version
102
- version: '3'
102
+ version: '4'
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: addressable
105
105
  requirement: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - "~>"
108
- - !ruby/object:Gem::Version
109
- version: '2.3'
110
- type: :development
111
- prerelease: false
112
- version_requirements: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - "~>"
115
- - !ruby/object:Gem::Version
116
- version: '2.3'
117
- - !ruby/object:Gem::Dependency
118
- name: backports
119
- requirement: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - "~>"
107
+ - - ">="
122
108
  - !ruby/object:Gem::Version
123
- version: '3.11'
109
+ version: '2'
124
110
  type: :development
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: '3.11'
116
+ version: '2'
131
117
  - !ruby/object:Gem::Dependency
132
118
  name: bundler
133
119
  requirement: !ruby/object:Gem::Requirement
@@ -142,70 +128,50 @@ 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
162
134
  requirements:
163
- - - "~>"
135
+ - - ">="
164
136
  - !ruby/object:Gem::Version
165
- version: '12.3'
137
+ version: '12'
166
138
  type: :development
167
139
  prerelease: false
168
140
  version_requirements: !ruby/object:Gem::Requirement
169
141
  requirements:
170
- - - "~>"
142
+ - - ">="
171
143
  - !ruby/object:Gem::Version
172
- version: '12.3'
144
+ version: '12'
173
145
  - !ruby/object:Gem::Dependency
174
- name: rdoc
146
+ name: rexml
175
147
  requirement: !ruby/object:Gem::Requirement
176
148
  requirements:
177
149
  - - ">="
178
150
  - !ruby/object:Gem::Version
179
- version: '5.0'
180
- - - "<"
181
- - !ruby/object:Gem::Version
182
- version: '7'
151
+ version: '3'
183
152
  type: :development
184
153
  prerelease: false
185
154
  version_requirements: !ruby/object:Gem::Requirement
186
155
  requirements:
187
156
  - - ">="
188
157
  - !ruby/object:Gem::Version
189
- version: '5.0'
190
- - - "<"
191
- - !ruby/object:Gem::Version
192
- version: '7'
158
+ version: '3'
193
159
  - !ruby/object:Gem::Dependency
194
160
  name: rspec
195
161
  requirement: !ruby/object:Gem::Requirement
196
162
  requirements:
197
- - - "~>"
163
+ - - ">="
198
164
  - !ruby/object:Gem::Version
199
- version: '3.0'
165
+ version: '3'
200
166
  type: :development
201
167
  prerelease: false
202
168
  version_requirements: !ruby/object:Gem::Requirement
203
169
  requirements:
204
- - - "~>"
170
+ - - ">="
205
171
  - !ruby/object:Gem::Version
206
- version: '3.0'
172
+ version: '3'
207
173
  - !ruby/object:Gem::Dependency
208
- name: rspec-stubbed_env
174
+ name: rspec-block_is_expected
209
175
  requirement: !ruby/object:Gem::Requirement
210
176
  requirements:
211
177
  - - ">="
@@ -233,7 +199,7 @@ dependencies:
233
199
  - !ruby/object:Gem::Version
234
200
  version: '0'
235
201
  - !ruby/object:Gem::Dependency
236
- name: rspec-block_is_expected
202
+ name: rspec-stubbed_env
237
203
  requirement: !ruby/object:Gem::Requirement
238
204
  requirements:
239
205
  - - ">="
@@ -247,21 +213,27 @@ dependencies:
247
213
  - !ruby/object:Gem::Version
248
214
  version: '0'
249
215
  - !ruby/object:Gem::Dependency
250
- name: silent_stream
216
+ name: rubocop-lts
251
217
  requirement: !ruby/object:Gem::Requirement
252
218
  requirements:
253
219
  - - ">="
254
220
  - !ruby/object:Gem::Version
255
- version: '0'
221
+ version: 2.0.3
222
+ - - "~>"
223
+ - !ruby/object:Gem::Version
224
+ version: '2.0'
256
225
  type: :development
257
226
  prerelease: false
258
227
  version_requirements: !ruby/object:Gem::Requirement
259
228
  requirements:
260
229
  - - ">="
261
230
  - !ruby/object:Gem::Version
262
- version: '0'
231
+ version: 2.0.3
232
+ - - "~>"
233
+ - !ruby/object:Gem::Version
234
+ version: '2.0'
263
235
  - !ruby/object:Gem::Dependency
264
- name: wwtd
236
+ name: silent_stream
265
237
  requirement: !ruby/object:Gem::Requirement
266
238
  requirements:
267
239
  - - ">="
@@ -282,38 +254,12 @@ executables: []
282
254
  extensions: []
283
255
  extra_rdoc_files: []
284
256
  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
257
  - CHANGELOG.md
295
258
  - CODE_OF_CONDUCT.md
296
259
  - CONTRIBUTING.md
297
- - Gemfile
298
260
  - LICENSE
299
261
  - README.md
300
- - Rakefile
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
262
+ - SECURITY.md
317
263
  - lib/oauth2.rb
318
264
  - lib/oauth2/access_token.rb
319
265
  - lib/oauth2/authenticator.rb
@@ -328,17 +274,37 @@ files:
328
274
  - lib/oauth2/strategy/implicit.rb
329
275
  - lib/oauth2/strategy/password.rb
330
276
  - lib/oauth2/version.rb
331
- - oauth2.gemspec
332
- homepage: https://github.com/oauth-xx/oauth2
277
+ homepage: https://gitlab.com/oauth-xx/oauth2
333
278
  licenses:
334
279
  - MIT
335
280
  metadata:
336
- bug_tracker_uri: https://github.com/oauth-xx/oauth2/issues
337
- changelog_uri: https://github.com/oauth-xx/oauth2/blob/v1.4.4/CHANGELOG.md
338
- documentation_uri: https://www.rubydoc.info/gems/oauth2/1.4.4
339
- source_code_uri: https://github.com/oauth-xx/oauth2/tree/v1.4.4
340
- wiki_uri: https://github.com/oauth-xx/oauth2/wiki
341
- post_install_message:
281
+ homepage_uri: https://gitlab.com/oauth-xx/oauth2
282
+ source_code_uri: https://gitlab.com/oauth-xx/oauth2/-/tree/v1.4.11
283
+ changelog_uri: https://gitlab.com/oauth-xx/oauth2/-/blob/v1.4.11/CHANGELOG.md
284
+ bug_tracker_uri: https://gitlab.com/oauth-xx/oauth2/-/issues
285
+ documentation_uri: https://www.rubydoc.info/gems/oauth2/1.4.11
286
+ wiki_uri: https://gitlab.com/oauth-xx/oauth2/-/wiki
287
+ funding_uri: https://liberapay.com/pboling
288
+ rubygems_mfa_required: 'true'
289
+ post_install_message: |2+
290
+
291
+ You have installed oauth2 version 1.4.11, which is EOL.
292
+ No further support is anticipated for the 1.4.x series.
293
+
294
+ OAuth2 version 2 is released.
295
+ There are BREAKING changes, but most will not encounter them, and upgrading should be easy!
296
+
297
+ We have made two other major migrations:
298
+ 1. master branch renamed to main
299
+ 2. Github has been replaced with Gitlab
300
+
301
+ Please see:
302
+ • https://gitlab.com/oauth-xx/oauth2#what-is-new-for-v20
303
+ • https://gitlab.com/oauth-xx/oauth2/-/blob/main/CHANGELOG.md
304
+ • https://groups.google.com/g/oauth-ruby/c/QA_dtrXWXaE
305
+
306
+ Please upgrade, report issues, and support the project! Thanks, |7eter l-|. l3oling
307
+
342
308
  rdoc_options: []
343
309
  require_paths:
344
310
  - lib
@@ -351,10 +317,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
351
317
  requirements:
352
318
  - - ">="
353
319
  - !ruby/object:Gem::Version
354
- version: 1.3.5
320
+ version: '0'
355
321
  requirements: []
356
- rubygems_version: 3.1.2
357
- signing_key:
322
+ rubygems_version: 3.3.21
323
+ signing_key:
358
324
  specification_version: 4
359
325
  summary: A Ruby wrapper for the OAuth 2.0 protocol.
360
326
  test_files: []
327
+ ...
data/.document DELETED
@@ -1,5 +0,0 @@
1
- README.rdoc
2
- lib/**/*.rb
3
- bin/*
4
- features/**/*.feature
5
- LICENSE
data/.gitignore DELETED
@@ -1,19 +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 failure tracking
13
- .rspec_status
14
-
15
- # gemfiles for CI
16
- /gemfiles/*.gemfile.lock
17
-
18
- # CI bundle
19
- /gemfiles/vendor/
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/.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
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.15.4'
4
-
5
- gem 'json', '< 2.0'
6
- gem 'rack', '~> 1.2'
7
- gem 'rake', [">= 10.0", "< 12"]
8
- gem 'term-ansicolor', '< 1.4.0'
9
- gem 'tins', '< 1.7'
10
-
11
- gemspec :path => '../'
@@ -1,7 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'faraday', '~> 0.15.4'
4
-
5
- gem 'rake', [">= 10.0", "< 12"]
6
-
7
- gemspec :path => '../'
@@ -1,3 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec :path => '../'
@@ -1,3 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec :path => '../'
@@ -1,3 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec :path => '../'