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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7b3801d7ed0cb7e2f787f43b3034bb679f009d9
4
- data.tar.gz: a91827d9f0f849a266ad56a4dced9aacd89a5c24
3
+ metadata.gz: 489cd8d4924f39bc8f9b12b22dca02cf4c2c98e4
4
+ data.tar.gz: 82b991866315bd5b8a328ea2626845d8acfdc39c
5
5
  SHA512:
6
- metadata.gz: 408fdf0ba242e24032bc1867c6601841e1d36e240af67e0376cc489fcb4e8c9d62ee52bff6ff7c9382e78d811eb72596e06faf7da73951f5560636b2c3268b6d
7
- data.tar.gz: 687f00030098daac44bf893b95012d8091862b6180aa057e50feba7f7ef5ca03024d2ca59c2176a4c5b153f6152fc9d4b40ab8fc5848918678e705404bfc9744
6
+ metadata.gz: fb07775401d98bc9e862f62f61c70cd5045ae797da52a08b3ae783ed6e4bd352ff3d2b39a8d731d2c1c695565449f9ddd6333b2f263de09249ad7ec0399cb767
7
+ data.tar.gz: d2e6d6ab8d413053382b3a3a57db1026d8cb7eb5289e9980a89ac46d31a47faa7f2cf0ab262c5acc453f7136685a2873ba9e90e6055335d00cf96ae730d0af32
data/.gitignore CHANGED
@@ -16,6 +16,9 @@ tmtags
16
16
  ## RVM
17
17
  .rvmrc
18
18
 
19
+ ## Bundler
20
+ .bundle
21
+
19
22
  ## PROJECT::GENERAL
20
23
  coverage*
21
24
  rdoc
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.7.12
1
+ 2.7.13
@@ -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.1"
22
+ s.add_development_dependency "fb_graph-mock", ">= 1.0.2"
23
23
  s.add_development_dependency "actionpack", ">= 3.0.6"
24
24
  end
@@ -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])
@@ -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.12
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-05 00:00:00.000000000 Z
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.1
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.1
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.1
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.