rack-oauth2 0.10.1 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -2,5 +2,4 @@ rvm:
2
2
  - 1.8.7
3
3
  - 1.9.2
4
4
  - 1.9.3
5
- - jruby
6
- - ree
5
+ - jruby
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rack-oauth2 (0.10.0)
4
+ rack-oauth2 (0.10.1)
5
5
  activesupport (>= 2.3)
6
6
  attr_required (>= 0.0.3)
7
7
  httpclient (>= 2.2.0.2)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.10.1
1
+ 0.11.0
@@ -27,8 +27,8 @@ module Rack
27
27
  class Response < Authorize::Token::Response
28
28
  attr_required :code
29
29
 
30
- def redirect_uri_with_credentials
31
- Util.redirect_uri(super, :query, :code => code)
30
+ def protocol_params
31
+ super.merge(:code => code)
32
32
  end
33
33
  end
34
34
  end
@@ -22,7 +22,10 @@ describe Rack::OAuth2::Server::Authorize::Extension::CodeAndToken do
22
22
  end
23
23
  end
24
24
  its(:status) { should == 302 }
25
- its(:location) { should == "#{redirect_uri}?code=#{authorization_code}#access_token=#{access_token}&token_type=bearer" }
25
+ its(:location) { should include "#{redirect_uri}#" }
26
+ its(:location) { should include "code=#{authorization_code}"}
27
+ its(:location) { should include "access_token=#{access_token}"}
28
+ its(:location) { should include 'token_type=bearer' }
26
29
 
27
30
  context 'when refresh_token is given' do
28
31
  let :bearer_token do
@@ -31,7 +34,10 @@ describe Rack::OAuth2::Server::Authorize::Extension::CodeAndToken do
31
34
  :refresh_token => 'refresh'
32
35
  )
33
36
  end
34
- its(:location) { should == "#{redirect_uri}?code=#{authorization_code}#access_token=#{access_token}&token_type=bearer" }
37
+ its(:location) { should include "#{redirect_uri}#" }
38
+ its(:location) { should include "code=#{authorization_code}"}
39
+ its(:location) { should include "access_token=#{access_token}"}
40
+ its(:location) { should include 'token_type=bearer' }
35
41
  end
36
42
  end
37
43
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rack-oauth2
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.10.1
5
+ version: 0.11.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - nov matake
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-09-13 00:00:00 Z
13
+ date: 2011-09-16 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rack