fb_graph2 0.7.3 → 0.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f7f32136098b368351724d9f6eebef1f874b3993
4
- data.tar.gz: f61f1aaa729b53f4679cfb3af2841455c26a307a
3
+ metadata.gz: 431d6cb04562b1022f10b4040fea986b10e4404b
4
+ data.tar.gz: d18110c880b7db29ccfe344d75a489bfa341c10b
5
5
  SHA512:
6
- metadata.gz: 9c4c4ef7d93a18400c50fb12c4738794fd08cc656e6a9225c05b943bc493d5d69708256b9459166d422950aabd69dfc8550267cd56e11d7e18835da8a812be5a
7
- data.tar.gz: ddac397d67226a515dce09b1955de877ba0cbf4e9d043015e6a75a96ae7fcf255ce5cd5a807110b7142c08ac0548504e37ac581cf27d7c6f118a7bce74af2ed8
6
+ metadata.gz: cf83c95e279e359db21b00f997dc97bc9f179b17d6cd221053e12898edfaa709dfd13ae90d7887a2ee59005a58e02f118bec5741c8cb148965818e6e15da892e
7
+ data.tar.gz: 383aca0fff54f11d75ba24f10f289d2bc92ff379b509a7bf47793e8e9c06be0b8ea91ec9a445dbe66676009d867370c66feb7c5678d1bcfee7186e3622a9723f
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.3
1
+ 0.7.4
@@ -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
 
@@ -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
- }, disable_api_versioning: true
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'], disable_api_versioning: true do
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
- }, disable_api_versioning: true do
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
- }, disable_api_versioning: true do
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
- }, disable_api_versioning: true do
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.3
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-07-22 00:00:00.000000000 Z
11
+ date: 2015-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient