oauth2 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,17 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'faraday', '0.9.2'
4
+
5
+ group :development do
6
+ gem 'pry'
7
+ end
8
+
9
+ group :test do
10
+ gem 'rake'
11
+ gem 'rspec'
12
+ gem 'rspec-pending_for'
13
+ gem 'rubocop', '~> 0.53.0'
14
+ gem 'rubocop-rspec', '~> 1.24.0'
15
+ end
16
+
17
+ gemspec :path => '../'
@@ -0,0 +1,108 @@
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.5.2)
15
+ public_suffix (>= 2.0.2, < 4.0)
16
+ ast (2.4.0)
17
+ backports (3.11.4)
18
+ coderay (1.1.2)
19
+ coveralls (0.8.22)
20
+ json (>= 1.8, < 3)
21
+ simplecov (~> 0.16.1)
22
+ term-ansicolor (~> 1.3)
23
+ thor (~> 0.19.4)
24
+ tins (~> 1.6)
25
+ diff-lcs (1.3)
26
+ docile (1.3.1)
27
+ faraday (0.9.2)
28
+ multipart-post (>= 1.2, < 3)
29
+ json (2.1.0)
30
+ jwt (2.1.0)
31
+ method_source (0.9.0)
32
+ multi_json (1.13.1)
33
+ multi_xml (0.6.0)
34
+ multipart-post (2.0.0)
35
+ parallel (1.12.1)
36
+ parser (2.5.1.2)
37
+ ast (~> 2.4.0)
38
+ powerpack (0.1.2)
39
+ pry (0.11.3)
40
+ coderay (~> 1.1.0)
41
+ method_source (~> 0.9.0)
42
+ public_suffix (3.0.3)
43
+ rack (2.0.5)
44
+ rainbow (3.0.0)
45
+ rake (12.3.1)
46
+ rdoc (6.0.4)
47
+ rspec (3.8.0)
48
+ rspec-core (~> 3.8.0)
49
+ rspec-expectations (~> 3.8.0)
50
+ rspec-mocks (~> 3.8.0)
51
+ rspec-core (3.8.0)
52
+ rspec-support (~> 3.8.0)
53
+ rspec-expectations (3.8.2)
54
+ diff-lcs (>= 1.2.0, < 2.0)
55
+ rspec-support (~> 3.8.0)
56
+ rspec-mocks (3.8.0)
57
+ diff-lcs (>= 1.2.0, < 2.0)
58
+ rspec-support (~> 3.8.0)
59
+ rspec-pending_for (0.1.13)
60
+ rspec-core
61
+ ruby_engine (~> 1.0)
62
+ ruby_version (~> 1.0)
63
+ rspec-support (3.8.0)
64
+ rubocop (0.53.0)
65
+ parallel (~> 1.10)
66
+ parser (>= 2.5)
67
+ powerpack (~> 0.1)
68
+ rainbow (>= 2.2.2, < 4.0)
69
+ ruby-progressbar (~> 1.7)
70
+ unicode-display_width (~> 1.0, >= 1.0.1)
71
+ rubocop-rspec (1.24.0)
72
+ rubocop (>= 0.53.0)
73
+ ruby-progressbar (1.10.0)
74
+ ruby_engine (1.0.1)
75
+ ruby_version (1.0.1)
76
+ simplecov (0.16.1)
77
+ docile (~> 1.1)
78
+ json (>= 1.8, < 3)
79
+ simplecov-html (~> 0.10.0)
80
+ simplecov-html (0.10.2)
81
+ term-ansicolor (1.6.0)
82
+ tins (~> 1.0)
83
+ thor (0.19.4)
84
+ tins (1.16.3)
85
+ unicode-display_width (1.4.0)
86
+ wwtd (1.3.0)
87
+
88
+ PLATFORMS
89
+ ruby
90
+
91
+ DEPENDENCIES
92
+ addressable (~> 2.3)
93
+ backports (~> 3.11)
94
+ bundler (~> 1.16)
95
+ coveralls (~> 0.8)
96
+ faraday (= 0.9.2)
97
+ oauth2!
98
+ pry
99
+ rake
100
+ rdoc (>= 5.0, < 7)
101
+ rspec
102
+ rspec-pending_for
103
+ rubocop (~> 0.53.0)
104
+ rubocop-rspec (~> 1.24.0)
105
+ wwtd
106
+
107
+ BUNDLED WITH
108
+ 1.16.4
@@ -111,7 +111,7 @@ module OAuth2
111
111
 
112
112
  # No-op since we need the verb and path
113
113
  # and the MAC always goes in a header
114
- def token=(_)
114
+ def token=(_noop)
115
115
  end
116
116
 
117
117
  # Base64.strict_encode64 is not available on Ruby 1.8.7
@@ -1,6 +1,6 @@
1
1
  module OAuth2
2
2
  module Version
3
- module_function
3
+ module_function
4
4
 
5
5
  # The major version
6
6
  #
@@ -20,7 +20,7 @@ module OAuth2
20
20
  #
21
21
  # @return [Integer]
22
22
  def patch
23
- 0
23
+ 1
24
24
  end
25
25
 
26
26
  # The pre-release version, if any
@@ -35,10 +35,10 @@ module OAuth2
35
35
  # @return [Hash]
36
36
  def to_h
37
37
  {
38
- :major => major,
39
- :minor => minor,
40
- :patch => patch,
41
- :pre => pre,
38
+ :major => major,
39
+ :minor => minor,
40
+ :patch => patch,
41
+ :pre => pre,
42
42
  }
43
43
  end
44
44
 
@@ -5,21 +5,36 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
  require 'oauth2/version'
6
6
 
7
7
  Gem::Specification.new do |spec|
8
- spec.add_dependency 'faraday', ['>= 0.8', '< 0.13']
9
- spec.add_dependency 'jwt', '~> 1.0'
8
+ spec.add_dependency 'faraday', ['>= 0.8', '< 0.16.0']
9
+ spec.add_dependency 'jwt', ['>= 1.0', '< 3.0']
10
10
  spec.add_dependency 'multi_json', '~> 1.3'
11
11
  spec.add_dependency 'multi_xml', '~> 0.5'
12
12
  spec.add_dependency 'rack', ['>= 1.2', '< 3']
13
- spec.add_development_dependency 'bundler', '~> 1.0'
14
- spec.authors = ['Michael Bleigh', 'Erik Michaels-Ober']
13
+
14
+ spec.authors = ['Peter Boling', 'Michael Bleigh', 'Erik Michaels-Ober']
15
15
  spec.description = 'A Ruby wrapper for the OAuth 2.0 protocol built with a similar style to the original OAuth spec.'
16
- spec.email = ['michael@intridea.com', 'sferik@gmail.com']
17
- spec.files = %w[.document CONTRIBUTING.md LICENSE.md README.md oauth2.gemspec] + Dir['lib/**/*.rb']
18
- spec.homepage = 'http://github.com/intridea/oauth2'
16
+ spec.email = ['peter.boling@gmail.com']
17
+ spec.homepage = 'https://github.com/oauth-xx/oauth2'
19
18
  spec.licenses = %w[MIT]
20
19
  spec.name = 'oauth2'
21
- spec.require_paths = %w[lib]
20
+ spec.required_ruby_version = '>= 1.9.0'
22
21
  spec.required_rubygems_version = '>= 1.3.5'
23
22
  spec.summary = 'A Ruby wrapper for the OAuth 2.0 protocol.'
24
23
  spec.version = OAuth2::Version
24
+
25
+ spec.require_paths = %w[lib]
26
+ spec.bindir = 'exe'
27
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
29
+ f.match(%r{^(bin|test|spec|features)/})
30
+ end
31
+
32
+ spec.add_development_dependency 'addressable', '~> 2.3'
33
+ spec.add_development_dependency 'backports', '~> 3.11'
34
+ spec.add_development_dependency 'bundler', '~> 1.16'
35
+ spec.add_development_dependency 'coveralls', '~> 0.8'
36
+ spec.add_development_dependency 'rake', '~> 12.3'
37
+ spec.add_development_dependency 'rdoc', ['>= 5.0', '< 7']
38
+ spec.add_development_dependency 'rspec', '~> 3.0'
39
+ spec.add_development_dependency 'wwtd'
25
40
  end
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
+ - Peter Boling
7
8
  - Michael Bleigh
8
9
  - Erik Michaels-Ober
9
10
  autorequire:
10
- bindir: bin
11
+ bindir: exe
11
12
  cert_chain: []
12
- date: 2017-06-09 00:00:00.000000000 Z
13
+ date: 2018-10-13 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: faraday
@@ -20,7 +21,7 @@ dependencies:
20
21
  version: '0.8'
21
22
  - - "<"
22
23
  - !ruby/object:Gem::Version
23
- version: '0.13'
24
+ version: 0.16.0
24
25
  type: :runtime
25
26
  prerelease: false
26
27
  version_requirements: !ruby/object:Gem::Requirement
@@ -30,21 +31,27 @@ dependencies:
30
31
  version: '0.8'
31
32
  - - "<"
32
33
  - !ruby/object:Gem::Version
33
- version: '0.13'
34
+ version: 0.16.0
34
35
  - !ruby/object:Gem::Dependency
35
36
  name: jwt
36
37
  requirement: !ruby/object:Gem::Requirement
37
38
  requirements:
38
- - - "~>"
39
+ - - ">="
39
40
  - !ruby/object:Gem::Version
40
41
  version: '1.0'
42
+ - - "<"
43
+ - !ruby/object:Gem::Version
44
+ version: '3.0'
41
45
  type: :runtime
42
46
  prerelease: false
43
47
  version_requirements: !ruby/object:Gem::Requirement
44
48
  requirements:
45
- - - "~>"
49
+ - - ">="
46
50
  - !ruby/object:Gem::Version
47
51
  version: '1.0'
52
+ - - "<"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
48
55
  - !ruby/object:Gem::Dependency
49
56
  name: multi_json
50
57
  requirement: !ruby/object:Gem::Requirement
@@ -93,33 +100,171 @@ dependencies:
93
100
  - - "<"
94
101
  - !ruby/object:Gem::Version
95
102
  version: '3'
103
+ - !ruby/object:Gem::Dependency
104
+ name: addressable
105
+ requirement: !ruby/object:Gem::Requirement
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
+ - - "~>"
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'
96
131
  - !ruby/object:Gem::Dependency
97
132
  name: bundler
98
133
  requirement: !ruby/object:Gem::Requirement
99
134
  requirements:
100
135
  - - "~>"
101
136
  - !ruby/object:Gem::Version
102
- version: '1.0'
137
+ version: '1.16'
103
138
  type: :development
104
139
  prerelease: false
105
140
  version_requirements: !ruby/object:Gem::Requirement
106
141
  requirements:
107
142
  - - "~>"
108
143
  - !ruby/object:Gem::Version
109
- version: '1.0'
144
+ 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
+ - !ruby/object:Gem::Dependency
160
+ name: rake
161
+ requirement: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - "~>"
164
+ - !ruby/object:Gem::Version
165
+ version: '12.3'
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - "~>"
171
+ - !ruby/object:Gem::Version
172
+ version: '12.3'
173
+ - !ruby/object:Gem::Dependency
174
+ name: rdoc
175
+ requirement: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - ">="
178
+ - !ruby/object:Gem::Version
179
+ version: '5.0'
180
+ - - "<"
181
+ - !ruby/object:Gem::Version
182
+ version: '7'
183
+ type: :development
184
+ prerelease: false
185
+ version_requirements: !ruby/object:Gem::Requirement
186
+ requirements:
187
+ - - ">="
188
+ - !ruby/object:Gem::Version
189
+ version: '5.0'
190
+ - - "<"
191
+ - !ruby/object:Gem::Version
192
+ version: '7'
193
+ - !ruby/object:Gem::Dependency
194
+ name: rspec
195
+ requirement: !ruby/object:Gem::Requirement
196
+ requirements:
197
+ - - "~>"
198
+ - !ruby/object:Gem::Version
199
+ version: '3.0'
200
+ type: :development
201
+ prerelease: false
202
+ version_requirements: !ruby/object:Gem::Requirement
203
+ requirements:
204
+ - - "~>"
205
+ - !ruby/object:Gem::Version
206
+ version: '3.0'
207
+ - !ruby/object:Gem::Dependency
208
+ name: wwtd
209
+ requirement: !ruby/object:Gem::Requirement
210
+ requirements:
211
+ - - ">="
212
+ - !ruby/object:Gem::Version
213
+ version: '0'
214
+ type: :development
215
+ prerelease: false
216
+ version_requirements: !ruby/object:Gem::Requirement
217
+ requirements:
218
+ - - ">="
219
+ - !ruby/object:Gem::Version
220
+ version: '0'
110
221
  description: A Ruby wrapper for the OAuth 2.0 protocol built with a similar style
111
222
  to the original OAuth spec.
112
223
  email:
113
- - michael@intridea.com
114
- - sferik@gmail.com
224
+ - peter.boling@gmail.com
115
225
  executables: []
116
226
  extensions: []
117
227
  extra_rdoc_files: []
118
228
  files:
119
229
  - ".document"
230
+ - ".gitignore"
231
+ - ".jrubyrc"
232
+ - ".rspec"
233
+ - ".rubocop.yml"
234
+ - ".rubocop_rspec.yml"
235
+ - ".rubocop_todo.yml"
236
+ - ".travis.yml"
237
+ - CHANGELOG.md
238
+ - CODE_OF_CONDUCT.md
120
239
  - CONTRIBUTING.md
121
- - LICENSE.md
240
+ - Gemfile
241
+ - LICENSE
122
242
  - 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
123
268
  - lib/oauth2.rb
124
269
  - lib/oauth2/access_token.rb
125
270
  - lib/oauth2/authenticator.rb
@@ -135,7 +280,7 @@ files:
135
280
  - lib/oauth2/strategy/password.rb
136
281
  - lib/oauth2/version.rb
137
282
  - oauth2.gemspec
138
- homepage: http://github.com/intridea/oauth2
283
+ homepage: https://github.com/oauth-xx/oauth2
139
284
  licenses:
140
285
  - MIT
141
286
  metadata: {}
@@ -147,7 +292,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
147
292
  requirements:
148
293
  - - ">="
149
294
  - !ruby/object:Gem::Version
150
- version: '0'
295
+ version: 1.9.0
151
296
  required_rubygems_version: !ruby/object:Gem::Requirement
152
297
  requirements:
153
298
  - - ">="
@@ -155,7 +300,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
300
  version: 1.3.5
156
301
  requirements: []
157
302
  rubyforge_project:
158
- rubygems_version: 2.6.11
303
+ rubygems_version: 2.7.7
159
304
  signing_key:
160
305
  specification_version: 4
161
306
  summary: A Ruby wrapper for the OAuth 2.0 protocol.