fb_graph2 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/fb_graph2/auth.rb +2 -2
- data/spec/fb_graph2/auth_spec.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 431d6cb04562b1022f10b4040fea986b10e4404b
|
4
|
+
data.tar.gz: d18110c880b7db29ccfe344d75a489bfa341c10b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf83c95e279e359db21b00f997dc97bc9f179b17d6cd221053e12898edfaa709dfd13ae90d7887a2ee59005a58e02f118bec5741c8cb148965818e6e15da892e
|
7
|
+
data.tar.gz: 383aca0fff54f11d75ba24f10f289d2bc92ff379b509a7bf47793e8e9c06be0b8ea91ec9a445dbe66676009d867370c66feb7c5678d1bcfee7186e3622a9723f
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.4
|
data/lib/fb_graph2/auth.rb
CHANGED
@@ -11,8 +11,8 @@ module FbGraph2
|
|
11
11
|
identifier: client_id,
|
12
12
|
secret: client_secret,
|
13
13
|
host: URI.parse(FbGraph2.root_url).host,
|
14
|
-
authorization_endpoint: '/oauth/authorize',
|
15
|
-
token_endpoint: '/oauth/access_token'
|
14
|
+
authorization_endpoint: File.join('/', FbGraph2.api_version, '/oauth/authorize'),
|
15
|
+
token_endpoint: File.join('/', FbGraph2.api_version, '/oauth/access_token')
|
16
16
|
)
|
17
17
|
end
|
18
18
|
|
data/spec/fb_graph2/auth_spec.rb
CHANGED
@@ -12,7 +12,7 @@ describe FbGraph2::Auth do
|
|
12
12
|
grant_type: 'client_credentials',
|
13
13
|
client_id: 'client_id',
|
14
14
|
client_secret: 'client_secret'
|
15
|
-
}
|
15
|
+
}
|
16
16
|
end
|
17
17
|
|
18
18
|
context 'when user_token given' do
|
@@ -62,7 +62,7 @@ describe FbGraph2::Auth do
|
|
62
62
|
context 'when error occured' do
|
63
63
|
it do
|
64
64
|
expect do
|
65
|
-
mock_graph :post, 'oauth/access_token', 'error/400/191', status: [400, 'Bad Request']
|
65
|
+
mock_graph :post, 'oauth/access_token', 'error/400/191', status: [400, 'Bad Request'] do
|
66
66
|
instance.authorization_code = 'auth_code'
|
67
67
|
instance.access_token!
|
68
68
|
end
|
@@ -80,7 +80,7 @@ describe FbGraph2::Auth do
|
|
80
80
|
fb_exchange_token: 'short_lived_access_token',
|
81
81
|
client_id: 'client_id',
|
82
82
|
client_secret: 'client_secret'
|
83
|
-
}
|
83
|
+
} do
|
84
84
|
instance.access_token!
|
85
85
|
end
|
86
86
|
access_token.should be_instance_of Rack::OAuth2::AccessToken::Legacy
|
@@ -99,7 +99,7 @@ describe FbGraph2::Auth do
|
|
99
99
|
code: '8d60d684082d56732671e170.1-579612276|7jdVZz2SK5F6oH-CmEAkYeZnV10',
|
100
100
|
client_id: 'client_id',
|
101
101
|
client_secret: 'client_secret'
|
102
|
-
}
|
102
|
+
} do
|
103
103
|
instance.from_cookie token
|
104
104
|
end
|
105
105
|
signed_request.should be_instance_of FbGraph2::Auth::SignedRequest
|
@@ -119,7 +119,7 @@ describe FbGraph2::Auth do
|
|
119
119
|
code: '8d60d684082d56732671e170.1-579612276|7jdVZz2SK5F6oH-CmEAkYeZnV10',
|
120
120
|
client_id: 'client_id',
|
121
121
|
client_secret: 'client_secret'
|
122
|
-
}
|
122
|
+
} do
|
123
123
|
instance.from_cookie cookie
|
124
124
|
end
|
125
125
|
signed_request.should be_instance_of FbGraph2::Auth::SignedRequest
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fb_graph2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nov matake
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|