fb_graph 1.8.3 → 1.8.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fb_graph (1.8.2)
4
+ fb_graph (1.8.3)
5
5
  httpclient (>= 2.2.0.2)
6
6
  rack-oauth2 (>= 0.8.0)
7
7
 
@@ -16,24 +16,24 @@ GEM
16
16
  httpclient (2.2.0.2)
17
17
  i18n (0.6.0)
18
18
  json (1.5.1)
19
- rack (1.2.2)
20
- rack-oauth2 (0.8.0)
19
+ rack (1.3.0)
20
+ rack-oauth2 (0.8.1)
21
21
  activesupport (>= 2.3)
22
22
  attr_required (>= 0.0.3)
23
23
  httpclient (>= 2.2.0.2)
24
24
  i18n
25
25
  json (>= 1.4.3)
26
26
  rack (>= 1.1)
27
- rake (0.8.7)
27
+ rake (0.9.0)
28
28
  rcov (0.9.9)
29
- rspec (2.5.0)
30
- rspec-core (~> 2.5.0)
31
- rspec-expectations (~> 2.5.0)
32
- rspec-mocks (~> 2.5.0)
33
- rspec-core (2.5.2)
34
- rspec-expectations (2.5.0)
29
+ rspec (2.6.0)
30
+ rspec-core (~> 2.6.0)
31
+ rspec-expectations (~> 2.6.0)
32
+ rspec-mocks (~> 2.6.0)
33
+ rspec-core (2.6.3)
34
+ rspec-expectations (2.6.0)
35
35
  diff-lcs (~> 1.1.2)
36
- rspec-mocks (2.5.0)
36
+ rspec-mocks (2.6.0)
37
37
  webmock (1.6.4)
38
38
  addressable (> 2.2.5, ~> 2.2)
39
39
  crack (>= 0.1.7)
@@ -43,7 +43,7 @@ PLATFORMS
43
43
 
44
44
  DEPENDENCIES
45
45
  fb_graph!
46
- rake (< 0.9, >= 0.8)
46
+ rake (>= 0.8)
47
47
  rcov (>= 0.9)
48
- rspec (< 2.6, >= 2)
48
+ rspec (>= 2)
49
49
  webmock (>= 1.6.2)
data/Rakefile CHANGED
@@ -9,12 +9,4 @@ RSpec::Core::RakeTask.new(:rcov) do |spec|
9
9
  spec.rcov_opts = ['-Ilib -Ispec --exclude spec,gems']
10
10
  end
11
11
 
12
- task :default => :spec
13
-
14
- require 'rake/rdoctask'
15
- Rake::RDocTask.new do |rdoc|
16
- rdoc.rdoc_dir = 'rdoc'
17
- rdoc.title = "fb_graph #{File.read('VERSION')}"
18
- rdoc.rdoc_files.include('README*')
19
- rdoc.rdoc_files.include('lib/**/*.rb')
20
- end
12
+ task :default => :spec
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.8.3
1
+ 1.8.4
data/fb_graph.gemspec CHANGED
@@ -14,8 +14,8 @@ Gem::Specification.new do |s|
14
14
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
15
15
  s.add_runtime_dependency "httpclient", ">= 2.2.0.2"
16
16
  s.add_runtime_dependency "rack-oauth2", ">= 0.8.0"
17
- s.add_development_dependency "rake", ">= 0.8", "< 0.9"
17
+ s.add_development_dependency "rake", ">= 0.8"
18
18
  s.add_development_dependency "rcov", ">= 0.9"
19
- s.add_development_dependency "rspec", ">= 2", "< 2.6"
19
+ s.add_development_dependency "rspec", ">= 2"
20
20
  s.add_development_dependency "webmock", ">= 1.6.2"
21
21
  end
data/lib/fb_graph.rb CHANGED
@@ -64,6 +64,7 @@ require 'fb_graph/comment'
64
64
  require 'fb_graph/event'
65
65
  require 'fb_graph/friend_list'
66
66
  require 'fb_graph/group'
67
+ require 'fb_graph/image'
67
68
  require 'fb_graph/insight'
68
69
  require 'fb_graph/link'
69
70
  require 'fb_graph/message'
@@ -3,6 +3,7 @@ module FbGraph
3
3
  module Tags
4
4
  def tags(options = {})
5
5
  tags = if @_tags_ && options.blank?
6
+ return @_tags_ if @_tags_.first.is_a?(Tag)
6
7
  self.connection(:tags, options.merge(:cached_collection => @_tags_))
7
8
  else
8
9
  self.connection(:tags, options)
@@ -12,6 +13,12 @@ module FbGraph
12
13
  Tag.new(tag)
13
14
  end
14
15
  end
16
+
17
+ module Taggable
18
+ def tag!(options = {})
19
+ post(options.merge(:connection => :tags))
20
+ end
21
+ end
15
22
  end
16
23
  end
17
24
  end
@@ -0,0 +1,11 @@
1
+ module FbGraph
2
+ class Image
3
+ include Comparison
4
+ attr_accessor :source, :height, :width
5
+ def initialize(attributes = {})
6
+ @source = attributes[:source]
7
+ @height = attributes[:height]
8
+ @width = attributes[:width]
9
+ end
10
+ end
11
+ end
@@ -2,8 +2,11 @@ module FbGraph
2
2
  class Photo < Node
3
3
  include Connections::Comments
4
4
  include Connections::Likes
5
+ include Connections::Picture
6
+ include Connections::Tags
7
+ include Connections::Tags::Taggable
5
8
 
6
- attr_accessor :from, :tags, :name, :picture, :icon, :source, :height, :width, :link, :created_time, :updated_time
9
+ attr_accessor :from, :name, :icon, :source, :height, :width, :images, :link, :created_time, :updated_time, :position
7
10
 
8
11
  def initialize(identifier, attributes = {})
9
12
  super
@@ -14,26 +17,22 @@ module FbGraph
14
17
  User.new(from[:id], from)
15
18
  end
16
19
  end
17
- @tags = []
18
- if attributes[:tags]
19
- Collection.new(attributes[:tags]).each do |tag|
20
- @tags << if tag.is_a?(Tag)
21
- tag
22
- else
23
- Tag.new(tag)
24
- end
25
- end
26
- end
27
20
  # NOTE:
28
21
  # for some reason, facebook uses different parameter names.
29
22
  # "name" in GET & "message" in POST
30
- @name = attributes[:name] || attributes[:message]
31
- @picture = attributes[:picture]
32
- @icon = attributes[:icon]
33
- @source = attributes[:source]
34
- @height = attributes[:height]
35
- @width = attributes[:width]
36
- @link = attributes[:link]
23
+ @name = attributes[:name] || attributes[:message]
24
+ @icon = attributes[:icon]
25
+ @source = attributes[:source]
26
+ @height = attributes[:height]
27
+ @width = attributes[:width]
28
+ @link = attributes[:link]
29
+ @position = attributes[:position]
30
+ @images = []
31
+ if attributes[:images]
32
+ attributes[:images].each do |image|
33
+ @images << Image.new(image)
34
+ end
35
+ end
37
36
  if attributes[:created_time]
38
37
  @created_time = Time.parse(attributes[:created_time]).utc
39
38
  end
@@ -42,6 +41,7 @@ module FbGraph
42
41
  end
43
42
 
44
43
  # cached connection
44
+ @_tags_ = Collection.new(attributes[:tags])
45
45
  @_comments_ = Collection.new(attributes[:comments])
46
46
  end
47
47
  end
@@ -0,0 +1,30 @@
1
+ require 'spec_helper'
2
+
3
+ describe FbGraph::Connections::Tags do
4
+ let :photo do
5
+ mock_graph :get, 'with_tags', 'photos/with_tags' do
6
+ FbGraph::Photo.fetch('with_tags')
7
+ end
8
+ end
9
+
10
+ describe '#tags' do
11
+ context 'when cached' do
12
+ it 'should not make request' do
13
+ expect { photo.tags }.should_not request_to "#{photo.identifier}/tags"
14
+ end
15
+ it 'should make request when any options are specified' do
16
+ expect { photo.tags(:no_cache => true) }.should request_to "#{photo.identifier}/tags"
17
+ end
18
+ end
19
+ end
20
+
21
+ describe FbGraph::Connections::Tags::Taggable do
22
+ describe '#tag!' do
23
+ it 'should post a tag' do
24
+ expect do
25
+ photo.tag!(:to => 'matake', :x => 50, :y => 50)
26
+ end.should request_to "#{photo.identifier}/tags", :post
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,16 @@
1
+ require 'spec_helper'
2
+
3
+ describe FbGraph::Image, '.new' do
4
+ let :attributes do
5
+ {
6
+ :source => 'https://fbcdn-sphotos-a.akamaihd.net/hphotos-ak-ash1/168119_10150146071831729_20531316728_7844072_5116892_n.jpg',
7
+ :height => 483,
8
+ :width => 720
9
+ }
10
+ end
11
+ subject { FbGraph::Image.new(attributes) }
12
+
13
+ its(:source) { should == attributes[:source] }
14
+ its(:height) { should == attributes[:height] }
15
+ its(:width) { should == attributes[:width] }
16
+ end
@@ -18,6 +18,26 @@ describe FbGraph::Photo, '.new' do
18
18
  :created_time => '2010-01-10T15:37:40+0000'
19
19
  }]
20
20
  },
21
+ :images => [{
22
+ :height => 483,
23
+ :width => 720,
24
+ :source => "https://fbcdn-sphotos-a.akamaihd.net/hphotos-ak-ash1/168119_10150146071831729_20531316728_7844072_5116892_n.jpg"
25
+ },
26
+ {
27
+ :height => 120,
28
+ :width => 180,
29
+ :source => "https://fbcdn-photos-a.akamaihd.net/hphotos-ak-ash1/168119_10150146071831729_20531316728_7844072_5116892_a.jpg"
30
+ },
31
+ {
32
+ :height => 87,
33
+ :width => 130,
34
+ :source => "https://fbcdn-photos-a.akamaihd.net/hphotos-ak-ash1/168119_10150146071831729_20531316728_7844072_5116892_s.jpg"
35
+ },
36
+ {
37
+ :height => 50,
38
+ :width => 75,
39
+ :source => "https://fbcdn-photos-a.akamaihd.net/hphotos-ak-ash1/168119_10150146071831729_20531316728_7844072_5116892_t.jpg"
40
+ }],
21
41
  :name => 'photo 1',
22
42
  :picture => 'http://www.facebook.com/matake/picture/album_size',
23
43
  :icon => 'http://static.ak.fbcdn.net/rsrc.php/z2E5Y/hash/8as8iqdm.gif',
@@ -38,7 +58,12 @@ describe FbGraph::Photo, '.new' do
38
58
  :y => 27.7778,
39
59
  :created_time => '2010-01-10T15:37:40+0000'
40
60
  )]
41
- photo.picture.should == 'http://www.facebook.com/matake/picture/album_size'
61
+ photo.images.first.should == FbGraph::Image.new(
62
+ :height => 483,
63
+ :width => 720,
64
+ :source => "https://fbcdn-sphotos-a.akamaihd.net/hphotos-ak-ash1/168119_10150146071831729_20531316728_7844072_5116892_n.jpg"
65
+ )
66
+ photo.picture.should == 'https://graph.facebook.com/12345/picture'
42
67
  photo.icon.should == 'http://static.ak.fbcdn.net/rsrc.php/z2E5Y/hash/8as8iqdm.gif'
43
68
  photo.source.should == 'http://www.facebook.com/matake/picture/original_size'
44
69
  photo.height.should == 100
@@ -0,0 +1,270 @@
1
+ {
2
+ "id": "10150146071831729",
3
+ "from": {
4
+ "name": "Facebook",
5
+ "category": "Product\/service",
6
+ "id": "20531316728"
7
+ },
8
+ "name": "Sample",
9
+ "picture": "https:\/\/fbcdn-photos-a.akamaihd.net\/hphotos-ak-ash1\/168119_10150146071831729_20531316728_7844072_5116892_s.jpg",
10
+ "source": "https:\/\/fbcdn-sphotos-a.akamaihd.net\/hphotos-ak-ash1\/168119_10150146071831729_20531316728_7844072_5116892_n.jpg",
11
+ "height": 483,
12
+ "width": 720,
13
+ "images": [{
14
+ "height": 483,
15
+ "width": 720,
16
+ "source": "https:\/\/fbcdn-sphotos-a.akamaihd.net\/hphotos-ak-ash1\/168119_10150146071831729_20531316728_7844072_5116892_n.jpg"
17
+ },
18
+ {
19
+ "height": 120,
20
+ "width": 180,
21
+ "source": "https:\/\/fbcdn-photos-a.akamaihd.net\/hphotos-ak-ash1\/168119_10150146071831729_20531316728_7844072_5116892_a.jpg"
22
+ },
23
+ {
24
+ "height": 87,
25
+ "width": 130,
26
+ "source": "https:\/\/fbcdn-photos-a.akamaihd.net\/hphotos-ak-ash1\/168119_10150146071831729_20531316728_7844072_5116892_s.jpg"
27
+ },
28
+ {
29
+ "height": 50,
30
+ "width": 75,
31
+ "source": "https:\/\/fbcdn-photos-a.akamaihd.net\/hphotos-ak-ash1\/168119_10150146071831729_20531316728_7844072_5116892_t.jpg"
32
+ }],
33
+ "link": "http:\/\/www.facebook.com\/photo.php?pid=7844072&id=20531316728",
34
+ "icon": "https:\/\/s-static.ak.facebook.com\/rsrc.php\/v1\/yz\/r\/StEh3RhPvjk.gif",
35
+ "created_time": "2011-02-02T16:47:46+0000",
36
+ "position": 1,
37
+ "updated_time": "2011-02-02T17:00:50+0000",
38
+ "comments": {
39
+ "data": [{
40
+ "id": "10150146071831729_4949616",
41
+ "from": {
42
+ "name": "Al Aoudati Anoire",
43
+ "id": "100000860242427"
44
+ },
45
+ "message": "i love facebook",
46
+ "created_time": "2011-04-06T09:14:47+0000"
47
+ },
48
+ {
49
+ "id": "10150146071831729_4952756",
50
+ "from": {
51
+ "name": "Alexis Bournavaud",
52
+ "id": "100000844935109"
53
+ },
54
+ "message": ";)",
55
+ "created_time": "2011-04-06T20:03:57+0000"
56
+ },
57
+ {
58
+ "id": "10150146071831729_4955236",
59
+ "from": {
60
+ "name": "LaAh Tamiis Pehoolaa",
61
+ "id": "100001215864326"
62
+ },
63
+ "message": "I LOVE FACEBOOK.. BUT NO A USTEDES..!!! JAJAJA",
64
+ "created_time": "2011-04-07T03:19:33+0000"
65
+ },
66
+ {
67
+ "id": "10150146071831729_4964639",
68
+ "from": {
69
+ "name": "Amir Khatami",
70
+ "id": "100001471943542"
71
+ },
72
+ "message": "I LoVe YoU AlL.",
73
+ "created_time": "2011-04-08T18:52:16+0000"
74
+ },
75
+ {
76
+ "id": "10150146071831729_4985165",
77
+ "from": {
78
+ "name": "Alvaro Serrano Gomez",
79
+ "id": "100000631253060"
80
+ },
81
+ "message": "......iiiiiiiiiiii..bbbbbb",
82
+ "created_time": "2011-04-11T14:39:26+0000"
83
+ },
84
+ {
85
+ "id": "10150146071831729_5000360",
86
+ "from": {
87
+ "name": "Wendy Marisol Villanueva G\u00f3mez",
88
+ "id": "100000081693167"
89
+ },
90
+ "message": "La NASA ah descubierto algo sumamente Aterrador que no quieren que lo sepamos! y para ello, hicieron contrato con google, para eliminar cualquier revelacion del sucesoo! \u00bfQuieres saber que es ?.. Ya bajaron las fotos y la informacion a una web reciente!, aprovecha y entra antes que eliminen el tema!;\nhttp:\/\/sucesos.webcindario.com\/",
91
+ "created_time": "2011-04-13T20:01:42+0000"
92
+ },
93
+ {
94
+ "id": "10150146071831729_5001878",
95
+ "from": {
96
+ "name": "Joseph Nicolas",
97
+ "id": "100002259681492"
98
+ },
99
+ "message": "Groupement d'amiti\u00e9s d'honneur.",
100
+ "created_time": "2011-04-14T00:24:00+0000"
101
+ },
102
+ {
103
+ "id": "10150146071831729_5002645",
104
+ "from": {
105
+ "name": "William Le",
106
+ "id": "100001705924268"
107
+ },
108
+ "message": "100th comment",
109
+ "created_time": "2011-04-14T02:25:47+0000"
110
+ },
111
+ {
112
+ "id": "10150146071831729_5003849",
113
+ "from": {
114
+ "name": "Reneil Esparas",
115
+ "id": "100002244688992"
116
+ },
117
+ "message": "hahahahahahahahahahahaHA",
118
+ "created_time": "2011-04-14T08:42:15+0000"
119
+ },
120
+ {
121
+ "id": "10150146071831729_5004790",
122
+ "from": {
123
+ "name": "Efe Bolat \u00c7elik",
124
+ "id": "100001707086815"
125
+ },
126
+ "message": "hahahahahahahahahashahahahahhahahahahahahhahahahahahhahh",
127
+ "created_time": "2011-04-14T13:44:47+0000"
128
+ },
129
+ {
130
+ "id": "10150146071831729_5010217",
131
+ "from": {
132
+ "name": "Duglimar Villalobos",
133
+ "id": "100002286177562"
134
+ },
135
+ "message": "hablan chino",
136
+ "created_time": "2011-04-15T11:15:25+0000"
137
+ },
138
+ {
139
+ "id": "10150146071831729_5022995",
140
+ "from": {
141
+ "name": "Grace Kayombya",
142
+ "id": "100001555506542"
143
+ },
144
+ "message": "\u003c3",
145
+ "created_time": "2011-04-16T17:19:24+0000",
146
+ "likes": 1
147
+ },
148
+ {
149
+ "id": "10150146071831729_5025110",
150
+ "from": {
151
+ "name": "Kevin Brayan Torres Gonzalez",
152
+ "id": "100001738777550"
153
+ },
154
+ "message": "tabacan las letras chinas",
155
+ "created_time": "2011-04-16T23:49:24+0000"
156
+ },
157
+ {
158
+ "id": "10150146071831729_5033117",
159
+ "from": {
160
+ "name": "Viviana Andrea Hernandez",
161
+ "id": "100000070408045"
162
+ },
163
+ "message": "chancuco cofi",
164
+ "created_time": "2011-04-17T21:21:03+0000"
165
+ },
166
+ {
167
+ "id": "10150146071831729_5059042",
168
+ "from": {
169
+ "name": "Regine Acibron",
170
+ "id": "100000910688937"
171
+ },
172
+ "message": "`w3w puro mga buang!!!",
173
+ "created_time": "2011-04-21T14:05:34+0000"
174
+ },
175
+ {
176
+ "id": "10150146071831729_5075448",
177
+ "from": {
178
+ "name": "Erika Ttattiana Zzapatta Zzapatta",
179
+ "id": "100001728679843"
180
+ },
181
+ "message": "jujuujjuuujjujj a bueniohvft5njy",
182
+ "created_time": "2011-04-22T02:23:30+0000",
183
+ "likes": 1
184
+ },
185
+ {
186
+ "id": "10150146071831729_5099843",
187
+ "from": {
188
+ "name": "Emmanuel Gonzalez",
189
+ "id": "100001805817223"
190
+ },
191
+ "message": "que familia de maricones",
192
+ "created_time": "2011-04-25T04:11:39+0000"
193
+ },
194
+ {
195
+ "id": "10150146071831729_5122192",
196
+ "from": {
197
+ "name": "Jacob Vandenbosch",
198
+ "id": "100000209588618"
199
+ },
200
+ "message": "Facebook I have a hacker name Cherokee Thompson he has hacked others respond",
201
+ "created_time": "2011-04-27T23:56:55+0000"
202
+ },
203
+ {
204
+ "id": "10150146071831729_5124242",
205
+ "from": {
206
+ "name": "Madhu Dixit",
207
+ "id": "100001692030718"
208
+ },
209
+ "message": "this is which place..?",
210
+ "created_time": "2011-04-28T05:42:05+0000"
211
+ },
212
+ {
213
+ "id": "10150146071831729_5126022",
214
+ "from": {
215
+ "name": "Gabriela Pavon Jimenez",
216
+ "id": "100001052729214"
217
+ },
218
+ "message": "io conosco ese restaurante siiii",
219
+ "created_time": "2011-04-28T13:42:17+0000"
220
+ },
221
+ {
222
+ "id": "10150146071831729_5126023",
223
+ "from": {
224
+ "name": "Gabriela Pavon Jimenez",
225
+ "id": "100001052729214"
226
+ },
227
+ "message": "jaja",
228
+ "created_time": "2011-04-28T13:42:19+0000"
229
+ },
230
+ {
231
+ "id": "10150146071831729_5126026",
232
+ "from": {
233
+ "name": "Gabriela Pavon Jimenez",
234
+ "id": "100001052729214"
235
+ },
236
+ "message": "bno eso creo y no se si estan en ese restaurante",
237
+ "created_time": "2011-04-28T13:42:45+0000"
238
+ },
239
+ {
240
+ "id": "10150146071831729_5126027",
241
+ "from": {
242
+ "name": "Gabriela Pavon Jimenez",
243
+ "id": "100001052729214"
244
+ },
245
+ "message": "jja",
246
+ "created_time": "2011-04-28T13:42:45+0000"
247
+ },
248
+ {
249
+ "id": "10150146071831729_5126029",
250
+ "from": {
251
+ "name": "Gabriela Pavon Jimenez",
252
+ "id": "100001052729214"
253
+ },
254
+ "message": "buuuuuuuuuuuuuuuuuu",
255
+ "created_time": "2011-04-28T13:42:50+0000"
256
+ },
257
+ {
258
+ "id": "10150146071831729_5137580",
259
+ "from": {
260
+ "name": "Iclal Mencik",
261
+ "id": "100002348749878"
262
+ },
263
+ "message": "love",
264
+ "created_time": "2011-04-30T08:40:21+0000"
265
+ }],
266
+ "paging": {
267
+ "next": "https:\/\/graph.facebook.com\/?access_token=2227470867|2.AQCrth7d5wMJOI87.3600.1306659600.0-579612276|xqh3XTpsnIiRhZAvSJ_u2rQegtI&limit=25&offset=25"
268
+ }
269
+ }
270
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "id": "10150177635467277",
3
+ "from": {
4
+ "name": "Nov Matake",
5
+ "id": "579612276"
6
+ },
7
+ "tags": {
8
+ "data": [{
9
+ "id": "579612276",
10
+ "name": "Nov Matake",
11
+ "x": 50,
12
+ "y": 50,
13
+ "created_time": "2011-05-28T03:56:35+0000"
14
+ }]
15
+ },
16
+ "name": "FbGraph Test",
17
+ "picture": "https:\/\/fbcdn-photos-a.akamaihd.net\/hphotos-ak-ash4\/216535_10150177635467277_579612276_6476244_4375891_s.jpg",
18
+ "source": "https:\/\/fbcdn-sphotos-a.akamaihd.net\/hphotos-ak-ash4\/216535_10150177635467277_579612276_6476244_4375891_n.jpg",
19
+ "height": 478,
20
+ "width": 478,
21
+ "images": [{
22
+ "height": 478,
23
+ "width": 478,
24
+ "source": "https:\/\/fbcdn-sphotos-a.akamaihd.net\/hphotos-ak-ash4\/216535_10150177635467277_579612276_6476244_4375891_n.jpg"
25
+ },
26
+ {
27
+ "height": 180,
28
+ "width": 180,
29
+ "source": "https:\/\/fbcdn-photos-a.akamaihd.net\/hphotos-ak-ash4\/216535_10150177635467277_579612276_6476244_4375891_a.jpg"
30
+ },
31
+ {
32
+ "height": 130,
33
+ "width": 130,
34
+ "source": "https:\/\/fbcdn-photos-a.akamaihd.net\/hphotos-ak-ash4\/216535_10150177635467277_579612276_6476244_4375891_s.jpg"
35
+ },
36
+ {
37
+ "height": 75,
38
+ "width": 75,
39
+ "source": "https:\/\/fbcdn-photos-a.akamaihd.net\/hphotos-ak-ash4\/216535_10150177635467277_579612276_6476244_4375891_t.jpg"
40
+ }],
41
+ "link": "http:\/\/www.facebook.com\/photo.php?pid=6476244&id=579612276",
42
+ "icon": "https:\/\/s-static.ak.facebook.com\/rsrc.php\/v1\/yz\/r\/StEh3RhPvjk.gif",
43
+ "created_time": "2011-04-13T14:41:38+0000",
44
+ "position": 1,
45
+ "updated_time": "2011-04-13T14:41:39+0000"
46
+ }
metadata CHANGED
@@ -1,8 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fb_graph
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 63
4
5
  prerelease:
5
- version: 1.8.3
6
+ segments:
7
+ - 1
8
+ - 8
9
+ - 4
10
+ version: 1.8.4
6
11
  platform: ruby
7
12
  authors:
8
13
  - nov matake
@@ -10,7 +15,7 @@ autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
17
 
13
- date: 2011-05-23 00:00:00 Z
18
+ date: 2011-05-29 00:00:00 Z
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: httpclient
@@ -20,6 +25,12 @@ dependencies:
20
25
  requirements:
21
26
  - - ">="
22
27
  - !ruby/object:Gem::Version
28
+ hash: 123
29
+ segments:
30
+ - 2
31
+ - 2
32
+ - 0
33
+ - 2
23
34
  version: 2.2.0.2
24
35
  type: :runtime
25
36
  version_requirements: *id001
@@ -31,6 +42,11 @@ dependencies:
31
42
  requirements:
32
43
  - - ">="
33
44
  - !ruby/object:Gem::Version
45
+ hash: 63
46
+ segments:
47
+ - 0
48
+ - 8
49
+ - 0
34
50
  version: 0.8.0
35
51
  type: :runtime
36
52
  version_requirements: *id002
@@ -42,10 +58,11 @@ dependencies:
42
58
  requirements:
43
59
  - - ">="
44
60
  - !ruby/object:Gem::Version
61
+ hash: 27
62
+ segments:
63
+ - 0
64
+ - 8
45
65
  version: "0.8"
46
- - - <
47
- - !ruby/object:Gem::Version
48
- version: "0.9"
49
66
  type: :development
50
67
  version_requirements: *id003
51
68
  - !ruby/object:Gem::Dependency
@@ -56,6 +73,10 @@ dependencies:
56
73
  requirements:
57
74
  - - ">="
58
75
  - !ruby/object:Gem::Version
76
+ hash: 25
77
+ segments:
78
+ - 0
79
+ - 9
59
80
  version: "0.9"
60
81
  type: :development
61
82
  version_requirements: *id004
@@ -67,10 +88,10 @@ dependencies:
67
88
  requirements:
68
89
  - - ">="
69
90
  - !ruby/object:Gem::Version
91
+ hash: 7
92
+ segments:
93
+ - 2
70
94
  version: "2"
71
- - - <
72
- - !ruby/object:Gem::Version
73
- version: "2.6"
74
95
  type: :development
75
96
  version_requirements: *id005
76
97
  - !ruby/object:Gem::Dependency
@@ -81,6 +102,11 @@ dependencies:
81
102
  requirements:
82
103
  - - ">="
83
104
  - !ruby/object:Gem::Version
105
+ hash: 11
106
+ segments:
107
+ - 1
108
+ - 6
109
+ - 2
84
110
  version: 1.6.2
85
111
  type: :development
86
112
  version_requirements: *id006
@@ -169,6 +195,7 @@ files:
169
195
  - lib/fb_graph/event.rb
170
196
  - lib/fb_graph/friend_list.rb
171
197
  - lib/fb_graph/group.rb
198
+ - lib/fb_graph/image.rb
172
199
  - lib/fb_graph/insight.rb
173
200
  - lib/fb_graph/klass.rb
174
201
  - lib/fb_graph/link.rb
@@ -248,6 +275,7 @@ files:
248
275
  - spec/fb_graph/connections/statuses_spec.rb
249
276
  - spec/fb_graph/connections/subscriptions_spec.rb
250
277
  - spec/fb_graph/connections/tagged_spec.rb
278
+ - spec/fb_graph/connections/tags_spec.rb
251
279
  - spec/fb_graph/connections/television_spec.rb
252
280
  - spec/fb_graph/connections/test_users_spec.rb
253
281
  - spec/fb_graph/connections/videos_spec.rb
@@ -256,6 +284,7 @@ files:
256
284
  - spec/fb_graph/exception_spec.rb
257
285
  - spec/fb_graph/friend_list_spec.rb
258
286
  - spec/fb_graph/group_spec.rb
287
+ - spec/fb_graph/image_spec.rb
259
288
  - spec/fb_graph/insight_spec.rb
260
289
  - spec/fb_graph/link_spec.rb
261
290
  - spec/fb_graph/location_spec.rb
@@ -322,6 +351,8 @@ files:
322
351
  - spec/mock_json/pages/search_google.json
323
352
  - spec/mock_json/pages/statuses/platform_private.json
324
353
  - spec/mock_json/pages/statuses/platform_public.json
354
+ - spec/mock_json/photos/sample.json
355
+ - spec/mock_json/photos/with_tags.json
325
356
  - spec/mock_json/posts/comments/post_with_invalid_access_token.json
326
357
  - spec/mock_json/posts/comments/post_with_valid_access_token.json
327
358
  - spec/mock_json/posts/comments/post_without_access_token.json
@@ -418,12 +449,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
418
449
  requirements:
419
450
  - - ">="
420
451
  - !ruby/object:Gem::Version
452
+ hash: 3
453
+ segments:
454
+ - 0
421
455
  version: "0"
422
456
  required_rubygems_version: !ruby/object:Gem::Requirement
423
457
  none: false
424
458
  requirements:
425
459
  - - ">="
426
460
  - !ruby/object:Gem::Version
461
+ hash: 3
462
+ segments:
463
+ - 0
427
464
  version: "0"
428
465
  requirements: []
429
466
 
@@ -483,6 +520,7 @@ test_files:
483
520
  - spec/fb_graph/connections/statuses_spec.rb
484
521
  - spec/fb_graph/connections/subscriptions_spec.rb
485
522
  - spec/fb_graph/connections/tagged_spec.rb
523
+ - spec/fb_graph/connections/tags_spec.rb
486
524
  - spec/fb_graph/connections/television_spec.rb
487
525
  - spec/fb_graph/connections/test_users_spec.rb
488
526
  - spec/fb_graph/connections/videos_spec.rb
@@ -491,6 +529,7 @@ test_files:
491
529
  - spec/fb_graph/exception_spec.rb
492
530
  - spec/fb_graph/friend_list_spec.rb
493
531
  - spec/fb_graph/group_spec.rb
532
+ - spec/fb_graph/image_spec.rb
494
533
  - spec/fb_graph/insight_spec.rb
495
534
  - spec/fb_graph/link_spec.rb
496
535
  - spec/fb_graph/location_spec.rb
@@ -557,6 +596,8 @@ test_files:
557
596
  - spec/mock_json/pages/search_google.json
558
597
  - spec/mock_json/pages/statuses/platform_private.json
559
598
  - spec/mock_json/pages/statuses/platform_public.json
599
+ - spec/mock_json/photos/sample.json
600
+ - spec/mock_json/photos/with_tags.json
560
601
  - spec/mock_json/posts/comments/post_with_invalid_access_token.json
561
602
  - spec/mock_json/posts/comments/post_with_valid_access_token.json
562
603
  - spec/mock_json/posts/comments/post_without_access_token.json