rack-oauth2 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/rack/oauth2/client.rb +4 -4
- data/rack-oauth2.gemspec +1 -0
- data/spec/rack/oauth2/{server/util_spec.rb → util_spec.rb} +2 -2
- metadata +32 -17
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.1
|
data/lib/rack/oauth2/client.rb
CHANGED
@@ -39,10 +39,10 @@ module Rack
|
|
39
39
|
)
|
40
40
|
end
|
41
41
|
|
42
|
-
def resource_owner_credentials=(
|
43
|
-
@grant = Grant::
|
44
|
-
:username =>
|
45
|
-
:password =>
|
42
|
+
def resource_owner_credentials=(credentials)
|
43
|
+
@grant = Grant::Password.new(
|
44
|
+
:username => credentials.first,
|
45
|
+
:password => credentials.last
|
46
46
|
)
|
47
47
|
end
|
48
48
|
|
data/rack-oauth2.gemspec
CHANGED
@@ -15,6 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
16
16
|
s.add_runtime_dependency "rack", ">= 1.1"
|
17
17
|
s.add_runtime_dependency "json", ">= 1.4.3"
|
18
|
+
s.add_runtime_dependency "rest-client", "1.6"
|
18
19
|
s.add_runtime_dependency "activesupport", ">= 2.3"
|
19
20
|
s.add_runtime_dependency "i18n"
|
20
21
|
s.add_runtime_dependency "attr_required", ">= 0.0.3"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-oauth2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 1
|
10
|
+
version: 0.4.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- nov matake
|
@@ -50,9 +50,24 @@ dependencies:
|
|
50
50
|
type: :runtime
|
51
51
|
version_requirements: *id002
|
52
52
|
- !ruby/object:Gem::Dependency
|
53
|
-
name:
|
53
|
+
name: rest-client
|
54
54
|
prerelease: false
|
55
55
|
requirement: &id003 !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
57
|
+
requirements:
|
58
|
+
- - "="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
hash: 3
|
61
|
+
segments:
|
62
|
+
- 1
|
63
|
+
- 6
|
64
|
+
version: "1.6"
|
65
|
+
type: :runtime
|
66
|
+
version_requirements: *id003
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: activesupport
|
69
|
+
prerelease: false
|
70
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
56
71
|
none: false
|
57
72
|
requirements:
|
58
73
|
- - ">="
|
@@ -63,11 +78,11 @@ dependencies:
|
|
63
78
|
- 3
|
64
79
|
version: "2.3"
|
65
80
|
type: :runtime
|
66
|
-
version_requirements: *
|
81
|
+
version_requirements: *id004
|
67
82
|
- !ruby/object:Gem::Dependency
|
68
83
|
name: i18n
|
69
84
|
prerelease: false
|
70
|
-
requirement: &
|
85
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
71
86
|
none: false
|
72
87
|
requirements:
|
73
88
|
- - ">="
|
@@ -77,11 +92,11 @@ dependencies:
|
|
77
92
|
- 0
|
78
93
|
version: "0"
|
79
94
|
type: :runtime
|
80
|
-
version_requirements: *
|
95
|
+
version_requirements: *id005
|
81
96
|
- !ruby/object:Gem::Dependency
|
82
97
|
name: attr_required
|
83
98
|
prerelease: false
|
84
|
-
requirement: &
|
99
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
85
100
|
none: false
|
86
101
|
requirements:
|
87
102
|
- - ">="
|
@@ -93,11 +108,11 @@ dependencies:
|
|
93
108
|
- 3
|
94
109
|
version: 0.0.3
|
95
110
|
type: :runtime
|
96
|
-
version_requirements: *
|
111
|
+
version_requirements: *id006
|
97
112
|
- !ruby/object:Gem::Dependency
|
98
113
|
name: rake
|
99
114
|
prerelease: false
|
100
|
-
requirement: &
|
115
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
101
116
|
none: false
|
102
117
|
requirements:
|
103
118
|
- - ">="
|
@@ -108,11 +123,11 @@ dependencies:
|
|
108
123
|
- 8
|
109
124
|
version: "0.8"
|
110
125
|
type: :development
|
111
|
-
version_requirements: *
|
126
|
+
version_requirements: *id007
|
112
127
|
- !ruby/object:Gem::Dependency
|
113
128
|
name: rcov
|
114
129
|
prerelease: false
|
115
|
-
requirement: &
|
130
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
116
131
|
none: false
|
117
132
|
requirements:
|
118
133
|
- - ">="
|
@@ -123,11 +138,11 @@ dependencies:
|
|
123
138
|
- 9
|
124
139
|
version: "0.9"
|
125
140
|
type: :development
|
126
|
-
version_requirements: *
|
141
|
+
version_requirements: *id008
|
127
142
|
- !ruby/object:Gem::Dependency
|
128
143
|
name: rspec
|
129
144
|
prerelease: false
|
130
|
-
requirement: &
|
145
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
131
146
|
none: false
|
132
147
|
requirements:
|
133
148
|
- - ">="
|
@@ -137,7 +152,7 @@ dependencies:
|
|
137
152
|
- 2
|
138
153
|
version: "2"
|
139
154
|
type: :development
|
140
|
-
version_requirements: *
|
155
|
+
version_requirements: *id009
|
141
156
|
description: Rack Middleware for OAuth2 server
|
142
157
|
email: nov@matake.jp
|
143
158
|
executables: []
|
@@ -194,7 +209,7 @@ files:
|
|
194
209
|
- spec/rack/oauth2/server/token/password_spec.rb
|
195
210
|
- spec/rack/oauth2/server/token/refresh_token_spec.rb
|
196
211
|
- spec/rack/oauth2/server/token_spec.rb
|
197
|
-
- spec/rack/oauth2/
|
212
|
+
- spec/rack/oauth2/util_spec.rb
|
198
213
|
- spec/spec_helper.rb
|
199
214
|
has_rdoc: true
|
200
215
|
homepage: http://github.com/nov/rack-oauth2
|
@@ -245,5 +260,5 @@ test_files:
|
|
245
260
|
- spec/rack/oauth2/server/token/password_spec.rb
|
246
261
|
- spec/rack/oauth2/server/token/refresh_token_spec.rb
|
247
262
|
- spec/rack/oauth2/server/token_spec.rb
|
248
|
-
- spec/rack/oauth2/
|
263
|
+
- spec/rack/oauth2/util_spec.rb
|
249
264
|
- spec/spec_helper.rb
|