fb_graph 2.7.6 → 2.7.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: 5ddbc9d52318ccd237c600eb21cde8b60025e4b8
4
- data.tar.gz: 7aeab18dd996ee47a46f8ff7b3123aa51995a9a4
3
+ metadata.gz: 9f505d72a4895180923d34b2b619c0043e149b1a
4
+ data.tar.gz: f9cdf4f3b9c07fe992628ad0281a3b39bfb8d685
5
5
  SHA512:
6
- metadata.gz: 66d264f673017f54f114539eedc07783d24f7e3ec5b22dcac5961dd267df8a684d267e2a7d9c403b0f9e095c0e75b30c6b715acedb9542cf6d95b748c99369ba
7
- data.tar.gz: 1e3ba7a44f04ec56022f14facd63b50f0c4ef9dfd5da5a815c3861fe5a6d89be69f777b962191a4275edd3281d9329ad3f841c54feea59c1dd3d9a60b2abd9ce
6
+ metadata.gz: 43dc929049c7d635a7b0c0b7646c532463e61b1e5525d56f534c7a238372847c7b43e91c489d0bf6d95313c46a20df468892f83a56224f973a3a3cd69fad913c
7
+ data.tar.gz: 2742e0b6c9f9564006c3bbe13cb8ee0ded1bf139455cdf9e2ac1805518744a44c0234a652d78c7868a469d49cd24324ef588a5c1040ad73bb322f90d66675b4a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.7.6
1
+ 2.7.7
@@ -7,7 +7,7 @@ module FbGraph
7
7
  include Connections::Tags
8
8
  include Connections::Tags::Taggable
9
9
 
10
- attr_accessor :from, :name, :icon, :source, :height, :width, :images, :link, :created_time, :updated_time, :position
10
+ attr_accessor :from, :name, :icon, :source, :height, :width, :images, :link, :created_time, :updated_time, :place
11
11
 
12
12
  def initialize(identifier, attributes = {})
13
13
  super
@@ -27,7 +27,6 @@ module FbGraph
27
27
  @height = attributes[:height]
28
28
  @width = attributes[:width]
29
29
  @link = attributes[:link]
30
- @position = attributes[:position]
31
30
  @images = []
32
31
  if attributes[:images]
33
32
  attributes[:images].each do |image|
@@ -40,9 +39,12 @@ module FbGraph
40
39
  if attributes[:updated_time]
41
40
  @updated_time = Time.parse(attributes[:updated_time]).utc
42
41
  end
42
+ if attributes[:place]
43
+ @place = Page.new(attributes[:place][:id], :name => attributes[:place][:name], :location => attributes[:place][:location])
44
+ end
43
45
 
44
46
  # cached connection
45
47
  cache_collections attributes, :comments, :likes, :tags
46
48
  end
47
49
  end
48
- end
50
+ end
@@ -38,6 +38,16 @@ describe FbGraph::Photo, '.new' do
38
38
  :width => 75,
39
39
  :source => "https://fbcdn-photos-a.akamaihd.net/hphotos-ak-ash1/168119_10150146071831729_20531316728_7844072_5116892_t.jpg"
40
40
  }],
41
+ :place => {
42
+ :id => "113537565323646",
43
+ :name => "Altavilla Vicentina",
44
+ :location => {
45
+ :street => "",
46
+ :zip => "",
47
+ :latitude => 45.5167,
48
+ :longitude => 11.4667
49
+ }
50
+ },
41
51
  :name => 'photo 1',
42
52
  :picture => 'http://www.facebook.com/matake/picture/album_size',
43
53
  :icon => 'http://static.ak.fbcdn.net/rsrc.php/z2E5Y/hash/8as8iqdm.gif',
@@ -63,6 +73,8 @@ describe FbGraph::Photo, '.new' do
63
73
  :width => 720,
64
74
  :source => "https://fbcdn-sphotos-a.akamaihd.net/hphotos-ak-ash1/168119_10150146071831729_20531316728_7844072_5116892_n.jpg"
65
75
  )
76
+ photo.place.should == FbGraph::Page.new("113537565323646", :name => "Altavilla Vicentina", :location => { :street => "", :zip => "", :latitude => 45.5167, :longitude => 11.4667 })
77
+ photo.place.location.longitude.should == 11.4667
66
78
  photo.picture.should == 'https://graph.facebook.com/12345/picture'
67
79
  photo.icon.should == 'http://static.ak.fbcdn.net/rsrc.php/z2E5Y/hash/8as8iqdm.gif'
68
80
  photo.source.should == 'http://www.facebook.com/matake/picture/original_size'
@@ -82,4 +94,4 @@ describe FbGraph::Photo, '.new' do
82
94
  page_photo.from.should == FbGraph::Page.new('23456', :name => 'Smart.fm', :category => 'Web Site')
83
95
  end
84
96
 
85
- end
97
+ 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.6
4
+ version: 2.7.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-06-28 00:00:00.000000000 Z
11
+ date: 2013-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient