fb_graph 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fb_graph (2.0.0.beta)
4
+ fb_graph (2.0.0)
5
5
  httpclient (>= 2.2.0.2)
6
6
  rack-oauth2 (>= 0.8.0)
7
7
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0
1
+ 2.0.1
data/lib/fb_graph/auth.rb CHANGED
@@ -10,7 +10,8 @@ module FbGraph
10
10
  :secret => client_secret,
11
11
  :host => URI.parse(ROOT_URL).host,
12
12
  :authorization_endpoint => '/oauth/authorize',
13
- :token_endpoint => '/oauth/access_token'
13
+ :token_endpoint => '/oauth/access_token',
14
+ :redirect_uri => options[:redirect_uri]
14
15
  )
15
16
  if options[:cookie]
16
17
  from_cookie options[:cookie]
@@ -10,8 +10,12 @@ describe FbGraph::Auth do
10
10
  its(:client) { should be_a(Rack::OAuth2::Client) }
11
11
  describe 'client' do
12
12
  subject { auth.client }
13
+ let :optional_attributes do
14
+ {:redirect_uri => 'https://client.example.com/callback'}
15
+ end
13
16
  its(:identifier) { should == 'client_id' }
14
17
  its(:secret) { should == 'client_secret' }
18
+ its(:redirect_uri) { should == 'https://client.example.com/callback' }
15
19
  end
16
20
 
17
21
  context 'when invalid cookie given' do
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: fb_graph
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.0.0
5
+ version: 2.0.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - nov matake