rack-oauth2 0.8.6 → 0.8.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -2
- data/VERSION +1 -1
- data/lib/rack/oauth2/client/grant.rb +0 -2
- data/spec/rack/oauth2/client/grant/authorization_code_spec.rb +5 -4
- metadata +2 -58
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rack-oauth2 (0.8.
|
4
|
+
rack-oauth2 (0.8.6)
|
5
5
|
activesupport (>= 2.3)
|
6
6
|
attr_required (>= 0.0.3)
|
7
7
|
httpclient (>= 2.2.0.2)
|
@@ -23,7 +23,6 @@ GEM
|
|
23
23
|
jruby-openssl (0.7.4)
|
24
24
|
bouncy-castle-java
|
25
25
|
json (1.5.3)
|
26
|
-
json (1.5.3-java)
|
27
26
|
rack (1.3.2)
|
28
27
|
rake (0.9.2)
|
29
28
|
rcov (0.9.10)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.7
|
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'spec_helper.rb'
|
2
2
|
|
3
3
|
describe Rack::OAuth2::Client::Grant::AuthorizationCode do
|
4
|
+
let(:redirect_uri) { 'https://client.example.com/callback' }
|
4
5
|
let(:grant) { Rack::OAuth2::Client::Grant::AuthorizationCode }
|
5
6
|
|
6
7
|
context 'when code is given' do
|
@@ -10,12 +11,12 @@ describe Rack::OAuth2::Client::Grant::AuthorizationCode do
|
|
10
11
|
|
11
12
|
context 'when redirect_uri is given' do
|
12
13
|
let :attributes do
|
13
|
-
{:code => 'code', :redirect_uri =>
|
14
|
+
{:code => 'code', :redirect_uri => redirect_uri}
|
14
15
|
end
|
15
16
|
subject { grant.new attributes }
|
16
|
-
its(:redirect_uri) { should ==
|
17
|
+
its(:redirect_uri) { should == redirect_uri }
|
17
18
|
its(:to_hash) do
|
18
|
-
should == {:grant_type => :authorization_code, :code => 'code', :redirect_uri =>
|
19
|
+
should == {:grant_type => :authorization_code, :code => 'code', :redirect_uri => redirect_uri}
|
19
20
|
end
|
20
21
|
end
|
21
22
|
|
@@ -23,7 +24,7 @@ describe Rack::OAuth2::Client::Grant::AuthorizationCode do
|
|
23
24
|
subject { grant.new attributes }
|
24
25
|
its(:redirect_uri) { should be_nil }
|
25
26
|
its(:to_hash) do
|
26
|
-
should == {:grant_type => :authorization_code, :code => 'code'}
|
27
|
+
should == {:grant_type => :authorization_code, :code => 'code', :redirect_uri => nil}
|
27
28
|
end
|
28
29
|
end
|
29
30
|
end
|
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-oauth2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 51
|
5
4
|
prerelease:
|
6
|
-
|
7
|
-
- 0
|
8
|
-
- 8
|
9
|
-
- 6
|
10
|
-
version: 0.8.6
|
5
|
+
version: 0.8.7
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- nov matake
|
@@ -15,7 +10,7 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date: 2011-08-
|
13
|
+
date: 2011-08-10 00:00:00 Z
|
19
14
|
dependencies:
|
20
15
|
- !ruby/object:Gem::Dependency
|
21
16
|
name: rack
|
@@ -25,10 +20,6 @@ dependencies:
|
|
25
20
|
requirements:
|
26
21
|
- - ">="
|
27
22
|
- !ruby/object:Gem::Version
|
28
|
-
hash: 13
|
29
|
-
segments:
|
30
|
-
- 1
|
31
|
-
- 1
|
32
23
|
version: "1.1"
|
33
24
|
type: :runtime
|
34
25
|
version_requirements: *id001
|
@@ -40,11 +31,6 @@ dependencies:
|
|
40
31
|
requirements:
|
41
32
|
- - ">="
|
42
33
|
- !ruby/object:Gem::Version
|
43
|
-
hash: 1
|
44
|
-
segments:
|
45
|
-
- 1
|
46
|
-
- 4
|
47
|
-
- 3
|
48
34
|
version: 1.4.3
|
49
35
|
type: :runtime
|
50
36
|
version_requirements: *id002
|
@@ -56,12 +42,6 @@ dependencies:
|
|
56
42
|
requirements:
|
57
43
|
- - ">="
|
58
44
|
- !ruby/object:Gem::Version
|
59
|
-
hash: 123
|
60
|
-
segments:
|
61
|
-
- 2
|
62
|
-
- 2
|
63
|
-
- 0
|
64
|
-
- 2
|
65
45
|
version: 2.2.0.2
|
66
46
|
type: :runtime
|
67
47
|
version_requirements: *id003
|
@@ -73,10 +53,6 @@ dependencies:
|
|
73
53
|
requirements:
|
74
54
|
- - ">="
|
75
55
|
- !ruby/object:Gem::Version
|
76
|
-
hash: 5
|
77
|
-
segments:
|
78
|
-
- 2
|
79
|
-
- 3
|
80
56
|
version: "2.3"
|
81
57
|
type: :runtime
|
82
58
|
version_requirements: *id004
|
@@ -88,9 +64,6 @@ dependencies:
|
|
88
64
|
requirements:
|
89
65
|
- - ">="
|
90
66
|
- !ruby/object:Gem::Version
|
91
|
-
hash: 3
|
92
|
-
segments:
|
93
|
-
- 0
|
94
67
|
version: "0"
|
95
68
|
type: :runtime
|
96
69
|
version_requirements: *id005
|
@@ -102,11 +75,6 @@ dependencies:
|
|
102
75
|
requirements:
|
103
76
|
- - ">="
|
104
77
|
- !ruby/object:Gem::Version
|
105
|
-
hash: 25
|
106
|
-
segments:
|
107
|
-
- 0
|
108
|
-
- 0
|
109
|
-
- 3
|
110
78
|
version: 0.0.3
|
111
79
|
type: :runtime
|
112
80
|
version_requirements: *id006
|
@@ -118,10 +86,6 @@ dependencies:
|
|
118
86
|
requirements:
|
119
87
|
- - ">="
|
120
88
|
- !ruby/object:Gem::Version
|
121
|
-
hash: 27
|
122
|
-
segments:
|
123
|
-
- 0
|
124
|
-
- 8
|
125
89
|
version: "0.8"
|
126
90
|
type: :development
|
127
91
|
version_requirements: *id007
|
@@ -133,10 +97,6 @@ dependencies:
|
|
133
97
|
requirements:
|
134
98
|
- - ">="
|
135
99
|
- !ruby/object:Gem::Version
|
136
|
-
hash: 25
|
137
|
-
segments:
|
138
|
-
- 0
|
139
|
-
- 9
|
140
100
|
version: "0.9"
|
141
101
|
type: :development
|
142
102
|
version_requirements: *id008
|
@@ -148,9 +108,6 @@ dependencies:
|
|
148
108
|
requirements:
|
149
109
|
- - ">="
|
150
110
|
- !ruby/object:Gem::Version
|
151
|
-
hash: 7
|
152
|
-
segments:
|
153
|
-
- 2
|
154
111
|
version: "2"
|
155
112
|
type: :development
|
156
113
|
version_requirements: *id009
|
@@ -162,11 +119,6 @@ dependencies:
|
|
162
119
|
requirements:
|
163
120
|
- - ">="
|
164
121
|
- !ruby/object:Gem::Version
|
165
|
-
hash: 11
|
166
|
-
segments:
|
167
|
-
- 1
|
168
|
-
- 6
|
169
|
-
- 2
|
170
122
|
version: 1.6.2
|
171
123
|
type: :development
|
172
124
|
version_requirements: *id010
|
@@ -285,20 +237,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
285
237
|
requirements:
|
286
238
|
- - ">="
|
287
239
|
- !ruby/object:Gem::Version
|
288
|
-
hash: 3
|
289
|
-
segments:
|
290
|
-
- 0
|
291
240
|
version: "0"
|
292
241
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
293
242
|
none: false
|
294
243
|
requirements:
|
295
244
|
- - ">="
|
296
245
|
- !ruby/object:Gem::Version
|
297
|
-
hash: 23
|
298
|
-
segments:
|
299
|
-
- 1
|
300
|
-
- 3
|
301
|
-
- 6
|
302
246
|
version: 1.3.6
|
303
247
|
requirements: []
|
304
248
|
|