fb_graph2 0.7.8 → 0.7.9
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/edge/test_users.rb +1 -1
- data/spec/fb_graph2/edge/test_users_spec.rb +2 -2
- 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: bbc94dd82bedcedb8cf57c30311b7e75d8be2984
|
4
|
+
data.tar.gz: c9b583b7a230cd880a58e44d0230cca240e27ffe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b4d109193be0b75119121da8bd1e6de60346afd1f3fc861200d41092aca07938ae9422a3e4b1cea22af641c6b0994f43834eed5837c64d135224e1c7ae73524
|
7
|
+
data.tar.gz: d92ff500ceb9e312afbbfa8d8404dfcae2619a3175dd1b100d0f1a1413cdb12ad4260e1e40e189f5806547ee1d3a143b9d30f8d1f2a817312454a9d8fec17a45
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.9
|
@@ -8,7 +8,7 @@ module FbGraph2
|
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
11
|
-
def
|
11
|
+
def test_user!(params = {})
|
12
12
|
user = self.post params, edge: :accounts, edge_scope: :'test-users'
|
13
13
|
params.delete(:access_token) # so as not to keep app token
|
14
14
|
User.new(user[:id], user.merge(params))
|
@@ -18,11 +18,11 @@ describe FbGraph2::Edge::TestUsers do
|
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
|
-
describe '#
|
21
|
+
describe '#test_user!' do
|
22
22
|
it 'should create an Object of FbGraph2::User with test_user token' do
|
23
23
|
permissions = %w[public_profile,email,user_friends].join(',')
|
24
24
|
user = mock_graph :post, 'app/accounts/test-users', 'post/test_users', access_token: 'app_token', permissions: permissions do
|
25
|
-
app.
|
25
|
+
app.test_user!
|
26
26
|
end
|
27
27
|
user.should be_instance_of FbGraph2::User
|
28
28
|
user.access_token.should == 'test_user_token'
|
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.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nov matake
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|