rack-oauth2 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e5c56e1238f42b9c49a7a8073a4333264b828fdf
4
- data.tar.gz: f14226ecedf79f79605a1f5b7b03d58d07596e7f
3
+ metadata.gz: 90fa661cf571c18624c58c6dfe85a3616809075f
4
+ data.tar.gz: db05caa92211bc5ce751fb85ab4ccac4e1838da0
5
5
  SHA512:
6
- metadata.gz: a7d5529c92f47104946401a8011d71e27d51bd1ce5ee36fd245f430d08c6dc2929cf488c7aecb63156d550ea1b8ad598ba7665714c11b644cf192450e293c7b7
7
- data.tar.gz: b852c38d793f4b77f92c46a38868292fb34c9beebfcba3530d8dce4bc37b93c8b474d4c174d789b317e47d372c0d2eb86462dbbe6fcd42a26fb45b1d0cc7f304
6
+ metadata.gz: 50a031423c464511fba404360d87caf811b865996e1d9e569a397ad301fd7aab51c5742022e015264a01db6f1321290feb6c6aa793f0af0bd372241297ea4803
7
+ data.tar.gz: 72be0f93db4b6e023de1ae3a98bf779603b2d3a426bf4c06698f65b15db340364a6a1588c613e49a01eb9a3cded31a26f0fdae376cbf4f98ada02e169dadaf11
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.4
1
+ 1.0.5
@@ -11,8 +11,9 @@ module Rack
11
11
  self.send :"#{key}=", attributes[key]
12
12
  end
13
13
  @token_type = self.class.name.demodulize.underscore.to_sym
14
- @httpclient = Rack::OAuth2.http_client("#{self.class} (#{VERSION})")
15
- @httpclient.request_filter << Authenticator.new(self)
14
+ @httpclient = Rack::OAuth2.http_client("#{self.class} (#{VERSION})") do |config|
15
+ config.request_filter << Authenticator.new(self)
16
+ end
16
17
  attr_missing!
17
18
  end
18
19
 
@@ -56,5 +56,14 @@ describe Rack::OAuth2::AccessToken do
56
56
  token.send method, resource_endpoint
57
57
  end
58
58
  end
59
+
60
+ context 'in debug mode' do
61
+ it do
62
+ Rack::OAuth2.debug do
63
+ token.httpclient.request_filter[-2].should be_a Rack::OAuth2::AccessToken::Authenticator
64
+ token.httpclient.request_filter.last.should be_a Rack::OAuth2::Debugger::RequestFilter
65
+ end
66
+ end
67
+ end
59
68
  end
60
69
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov matake
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-15 00:00:00.000000000 Z
11
+ date: 2013-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack