fb_graph 2.7.12 → 2.7.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/VERSION +1 -1
- data/fb_graph.gemspec +1 -1
- data/lib/fb_graph/user.rb +1 -1
- data/spec/fb_graph/user_spec.rb +11 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 489cd8d4924f39bc8f9b12b22dca02cf4c2c98e4
|
4
|
+
data.tar.gz: 82b991866315bd5b8a328ea2626845d8acfdc39c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb07775401d98bc9e862f62f61c70cd5045ae797da52a08b3ae783ed6e4bd352ff3d2b39a8d731d2c1c695565449f9ddd6333b2f263de09249ad7ec0399cb767
|
7
|
+
data.tar.gz: d2e6d6ab8d413053382b3a3a57db1026d8cb7eb5289e9980a89ac46d31a47faa7f2cf0ab262c5acc453f7136685a2873ba9e90e6055335d00cf96ae730d0af32
|
data/.gitignore
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.7.
|
1
|
+
2.7.13
|
data/fb_graph.gemspec
CHANGED
@@ -19,6 +19,6 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.add_development_dependency "rake", ">= 0.8"
|
20
20
|
s.add_development_dependency "simplecov"
|
21
21
|
s.add_development_dependency "rspec", ">= 2"
|
22
|
-
s.add_development_dependency "fb_graph-mock", ">= 1.0.
|
22
|
+
s.add_development_dependency "fb_graph-mock", ">= 1.0.2"
|
23
23
|
s.add_development_dependency "actionpack", ">= 3.0.6"
|
24
24
|
end
|
data/lib/fb_graph/user.rb
CHANGED
@@ -91,7 +91,7 @@ module FbGraph
|
|
91
91
|
@education << Education.new(education)
|
92
92
|
end
|
93
93
|
end
|
94
|
-
if (hometown = attributes[:hometown])
|
94
|
+
if (hometown = attributes[:hometown]) && hometown.is_a?(Hash)
|
95
95
|
@hometown = Page.new(hometown[:id], hometown)
|
96
96
|
end
|
97
97
|
@interested_in = Array(attributes[:interested_in])
|
data/spec/fb_graph/user_spec.rb
CHANGED
@@ -181,5 +181,15 @@ describe FbGraph::User do
|
|
181
181
|
end
|
182
182
|
end
|
183
183
|
end
|
184
|
+
|
185
|
+
|
186
|
+
context 'with different private data' do
|
187
|
+
it 'should get different private profile' do
|
188
|
+
mock_graph :get, 'arjun', 'users/arjun_private2', :access_token => 'access_token' do
|
189
|
+
user = FbGraph::User.fetch('arjun', :access_token => 'access_token')
|
190
|
+
user.raw_attributes['hometown'].should == 'Minnetonka'
|
191
|
+
end
|
192
|
+
end
|
193
|
+
end
|
184
194
|
end
|
185
|
-
end
|
195
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fb_graph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nov matake
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.0.
|
117
|
+
version: 1.0.2
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 1.0.
|
124
|
+
version: 1.0.2
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: actionpack
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -516,7 +516,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
516
516
|
version: '0'
|
517
517
|
requirements: []
|
518
518
|
rubyforge_project:
|
519
|
-
rubygems_version: 2.2.
|
519
|
+
rubygems_version: 2.2.2
|
520
520
|
signing_key:
|
521
521
|
specification_version: 4
|
522
522
|
summary: A full-stack Facebook Graph API wrapper in Ruby.
|