rack-oauth2 0.14.5 → 0.14.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +15 -14
- data/VERSION +1 -1
- data/lib/rack/oauth2.rb +1 -1
- data/spec/rack/oauth2/oauth2_spec.rb +14 -0
- metadata +2 -2
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rack-oauth2 (0.14.
|
4
|
+
rack-oauth2 (0.14.5)
|
5
5
|
activesupport (>= 2.3)
|
6
6
|
attr_required (>= 0.0.5)
|
7
7
|
httpclient (>= 2.2.0.2)
|
@@ -15,10 +15,10 @@ GEM
|
|
15
15
|
activesupport (3.2.7)
|
16
16
|
i18n (~> 0.6)
|
17
17
|
multi_json (~> 1.0)
|
18
|
-
addressable (2.2.
|
18
|
+
addressable (2.2.8)
|
19
19
|
attr_required (0.0.5)
|
20
20
|
bouncy-castle-java (1.5.0146.1)
|
21
|
-
configatron (2.9.
|
21
|
+
configatron (2.9.1)
|
22
22
|
yamler (>= 0.1.0)
|
23
23
|
cover_me (1.2.0)
|
24
24
|
configatron
|
@@ -28,22 +28,23 @@ GEM
|
|
28
28
|
hashie (1.2.0)
|
29
29
|
httpclient (2.2.5)
|
30
30
|
i18n (0.6.0)
|
31
|
-
jruby-openssl (0.7.
|
31
|
+
jruby-openssl (0.7.7)
|
32
32
|
bouncy-castle-java (>= 1.5.0146.1)
|
33
33
|
json (1.7.4)
|
34
|
+
json (1.7.4-java)
|
34
35
|
multi_json (1.3.6)
|
35
36
|
rack (1.4.1)
|
36
37
|
rake (0.9.2.2)
|
37
|
-
rspec (2.
|
38
|
-
rspec-core (~> 2.
|
39
|
-
rspec-expectations (~> 2.
|
40
|
-
rspec-mocks (~> 2.
|
41
|
-
rspec-core (2.
|
42
|
-
rspec-expectations (2.
|
43
|
-
diff-lcs (~> 1.1.
|
44
|
-
rspec-mocks (2.
|
45
|
-
webmock (1.8.
|
46
|
-
addressable (
|
38
|
+
rspec (2.11.0)
|
39
|
+
rspec-core (~> 2.11.0)
|
40
|
+
rspec-expectations (~> 2.11.0)
|
41
|
+
rspec-mocks (~> 2.11.0)
|
42
|
+
rspec-core (2.11.1)
|
43
|
+
rspec-expectations (2.11.2)
|
44
|
+
diff-lcs (~> 1.1.3)
|
45
|
+
rspec-mocks (2.11.1)
|
46
|
+
webmock (1.8.8)
|
47
|
+
addressable (~> 2.2.8)
|
47
48
|
crack (>= 0.1.7)
|
48
49
|
yamler (0.1.0)
|
49
50
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.14.
|
1
|
+
0.14.6
|
data/lib/rack/oauth2.rb
CHANGED
@@ -43,8 +43,8 @@ module Rack
|
|
43
43
|
_http_client_ = HTTPClient.new(
|
44
44
|
:agent_name => agent_name
|
45
45
|
)
|
46
|
-
_http_client_.request_filter << Debugger::RequestFilter.new if debugging?
|
47
46
|
http_config.try(:call, _http_client_)
|
47
|
+
_http_client_.request_filter << Debugger::RequestFilter.new if debugging?
|
48
48
|
_http_client_
|
49
49
|
end
|
50
50
|
def self.http_config(&block)
|
@@ -28,4 +28,18 @@ describe Rack::OAuth2 do
|
|
28
28
|
Rack::OAuth2.debugging?.should be_true
|
29
29
|
end
|
30
30
|
end
|
31
|
+
|
32
|
+
describe '.http_config' do
|
33
|
+
context 'when request_filter added' do
|
34
|
+
context 'when "debug!" is called' do
|
35
|
+
it 'should put Debugger::RequestFilter at last' do
|
36
|
+
Rack::OAuth2.debug!
|
37
|
+
Rack::OAuth2.http_config do |config|
|
38
|
+
config.request_filter << Proc.new {}
|
39
|
+
end
|
40
|
+
Rack::OAuth2.http_client.request_filter.last.should be_instance_of Rack::OAuth2::Debugger::RequestFilter
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
31
45
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-oauth2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|