fb_graph 2.6.6 → 2.6.7

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: 2d25e482ccd162b6e293bfdff5a68a23293962f2
4
- data.tar.gz: daaec6f7dfa21093e597c22e27b69dda2d388e0b
3
+ metadata.gz: 4d66e94bc49609d2e10e39465a627ea9fa9a61f6
4
+ data.tar.gz: 60cdc06d8082429e3bbaa3496eeee43c3878fe8f
5
5
  SHA512:
6
- metadata.gz: 90eba5d0226f3e8cc159ddd7e502ad88cd4c9ffa95964b43560e796ca10d52f6512dcfc5114cc7c6b5e361a3932bdf36c5f3b861b6a8b98524da41d9a4ef7bf9
7
- data.tar.gz: 17639a7856e3ea4c1b76617b97a1af784bcec2e6767ceeaf51151c4a2183f7da9782a2b3d2dfead950547ca2d6a34ae8f7d8c9c275dbb732ac964000e6238c4c
6
+ metadata.gz: 11166460e8328cb51da1f8dfdf4b8c66390bde7e92272924d4567e7eebbfb5cd8ed3a9a124004ab13f9cda99f4dc3790416dfa6a2bc820760d279d539273ff08
7
+ data.tar.gz: 51628c26304a0132d387f6692ee570ecc88f6a14c3647ce493bc3bfe5211757ae58b77dac2f195cc56bd15354c36f890a61c70d1cf847c541146a2ff86f42a59
data/README.rdoc CHANGED
@@ -3,7 +3,6 @@
3
3
  A full-stack Facebook Graph API wrapper in Ruby.
4
4
 
5
5
  {<img src="https://secure.travis-ci.org/nov/fb_graph.png" />}[http://travis-ci.org/nov/fb_graph]
6
- {<img src="http://www.pledgie.com/campaigns/19043.png?skin_name=chrome" />}[http://www.pledgie.com/campaigns/19043]
7
6
 
8
7
  == Installation
9
8
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.6.6
1
+ 2.6.7
data/fb_graph.gemspec CHANGED
@@ -23,6 +23,6 @@ Gem::Specification.new do |s|
23
23
  s.add_development_dependency "rcov", ">= 0.9"
24
24
  end
25
25
  s.add_development_dependency "rspec", ">= 2"
26
- s.add_development_dependency "fb_graph-mock", ">= 0.1.2"
26
+ s.add_development_dependency "fb_graph-mock", ">= 0.1.3"
27
27
  s.add_development_dependency "actionpack", ">= 3.0.6"
28
28
  end
@@ -22,7 +22,6 @@ module FbGraph
22
22
  :hometown,
23
23
  :influences,
24
24
  :is_community_page,
25
- :location,
26
25
  :mission,
27
26
  :mpg,
28
27
  :personal_info,
@@ -106,8 +105,11 @@ module FbGraph
106
105
  @hours[date][index][mode] = time
107
106
  end
108
107
  end
109
- if attributes[:location]
110
- @location = Venue.new(attributes[:location])
108
+ @location = case attributes[:location]
109
+ when Hash
110
+ Venue.new(attributes[:location])
111
+ when String
112
+ # ignore such non-structured data
111
113
  end
112
114
  end
113
115
  end
@@ -211,6 +211,19 @@ describe FbGraph::Post, '#fetch' do
211
211
  location.longitude.should == 139.7
212
212
  end
213
213
  end
214
+
215
+ context 'when "location" in "place" is non-structured' do
216
+ it 'should ignore location' do
217
+ mock_graph :get, 'post_id', 'posts/with_place_with_non_structured_location', :access_token => 'access_token' do
218
+ post = FbGraph::Post.fetch('post_id', :access_token => 'access_token')
219
+ place = post.place
220
+ place.should be_instance_of FbGraph::Place
221
+ place.identifier.should == '100563866688613'
222
+ place.name.should == 'Kawasaki-shi, Kanagawa, Japan'
223
+ place.location.should be_nil
224
+ end
225
+ end
226
+ end
214
227
  end
215
228
  end
216
229
 
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.6.6
4
+ version: 2.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov matake
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-20 00:00:00.000000000 Z
11
+ date: 2013-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: 0.1.2
117
+ version: 0.1.3
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: 0.1.2
124
+ version: 0.1.3
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: actionpack
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -509,7 +509,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
509
509
  version: '0'
510
510
  requirements: []
511
511
  rubyforge_project:
512
- rubygems_version: 2.0.0
512
+ rubygems_version: 2.0.3
513
513
  signing_key:
514
514
  specification_version: 4
515
515
  summary: A full-stack Facebook Graph API wrapper in Ruby.