fb_graph2 0.7.9 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -4
- data/VERSION +1 -1
- data/lib/fb_graph2/album.rb +1 -1
- data/lib/fb_graph2/attribute_assigner.rb +6 -0
- data/lib/fb_graph2/photo.rb +1 -1
- data/lib/fb_graph2/place_tag.rb +1 -1
- data/lib/fb_graph2/post.rb +1 -1
- data/spec/fb_graph2/edge/feed_spec.rb +10 -0
- data/spec/fb_graph2/edge/tagged_places_spec.rb +21 -0
- data/spec/mock_json/user/tagged_places.json +375 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28b6480eafadc1846be4de8ffe3ed1c4299a6929
|
4
|
+
data.tar.gz: 62ff4a6ce2dd2c5e336b18bbab0c5eb8118ee565
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f36cfc2701649224932e5ebb83eae92697cc976631d7ddd7c443cf704aadcf8eaa080b0bc39726a7c9cbda1db463a094a02945286117c1ff9f750915c65df46
|
7
|
+
data.tar.gz: 80c27427cf16a29b1e6e3b153a634a242f3cdb5057cec55b8d2c2a6899ba7aafbf4d1870b092890436426b1d73b8dba4915d0809c5e2e93b847318e2c947e664
|
data/.travis.yml
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.8.0
|
data/lib/fb_graph2/album.rb
CHANGED
data/lib/fb_graph2/photo.rb
CHANGED
data/lib/fb_graph2/place_tag.rb
CHANGED
data/lib/fb_graph2/post.rb
CHANGED
@@ -26,6 +26,16 @@ describe FbGraph2::Edge::Feed do
|
|
26
26
|
post.id.should == 'created_object_id'
|
27
27
|
post.message.should == 'hello'
|
28
28
|
end
|
29
|
+
|
30
|
+
context 'with location' do
|
31
|
+
it 'should convert place_id to Place object' do
|
32
|
+
post = mock_graph :post, 'me/feed', 'success_with_id', access_token: 'token' do
|
33
|
+
me.feed! place: 'place_id'
|
34
|
+
end
|
35
|
+
post.place.should be_instance_of FbGraph2::Place
|
36
|
+
post.place.id.should == 'place_id'
|
37
|
+
end
|
38
|
+
end
|
29
39
|
end
|
30
40
|
end
|
31
41
|
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe FbGraph2::Edge::TaggedPlaces do
|
4
|
+
context 'included in User' do
|
5
|
+
describe '#tagged_places' do
|
6
|
+
let(:me) { FbGraph2::User.me('token') }
|
7
|
+
it 'should return an Array of FbGraph2::PlaceTag' do
|
8
|
+
tags = mock_graph :get, 'me/tagged_places', 'user/tagged_places', access_token: 'token' do
|
9
|
+
me.tagged_places
|
10
|
+
end
|
11
|
+
tags.should be_instance_of FbGraph2::Edge
|
12
|
+
tags.should_not be_blank
|
13
|
+
tags.each do |tag|
|
14
|
+
tag.should be_instance_of FbGraph2::PlaceTag
|
15
|
+
tag.place.should be_instance_of FbGraph2::Place
|
16
|
+
tag.place.location.should be_instance_of FbGraph2::Struct::Location
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,375 @@
|
|
1
|
+
{
|
2
|
+
"data": [{
|
3
|
+
"id": "10154435331737277",
|
4
|
+
"created_time": "2016-08-16T08:24:53+0000",
|
5
|
+
"place": {
|
6
|
+
"id": "131821956863606",
|
7
|
+
"location": {
|
8
|
+
"city": "Chiyoda-ku",
|
9
|
+
"country": "Japan",
|
10
|
+
"latitude": 35.681075526371,
|
11
|
+
"longitude": 139.76741588095,
|
12
|
+
"state": "Tokyo",
|
13
|
+
"zip": "100-0005"
|
14
|
+
},
|
15
|
+
"name": "東京駅 (Tokyo Station)"
|
16
|
+
}
|
17
|
+
}, {
|
18
|
+
"id": "10154426636262277",
|
19
|
+
"created_time": "2016-08-13T09:39:01+0000",
|
20
|
+
"place": {
|
21
|
+
"id": "451101184918695",
|
22
|
+
"location": {
|
23
|
+
"latitude": 34.855232444856,
|
24
|
+
"longitude": 135.84911517625
|
25
|
+
},
|
26
|
+
"name": "宇治田原"
|
27
|
+
}
|
28
|
+
}, {
|
29
|
+
"id": "10154426337972277",
|
30
|
+
"created_time": "2016-08-13T06:40:02+0000",
|
31
|
+
"place": {
|
32
|
+
"id": "137680342928499",
|
33
|
+
"location": {
|
34
|
+
"city": "Inabe-shi",
|
35
|
+
"country": "Japan",
|
36
|
+
"latitude": 34.98555556,
|
37
|
+
"longitude": 135.75777778,
|
38
|
+
"state": "Mie",
|
39
|
+
"zip": "600-8216"
|
40
|
+
},
|
41
|
+
"name": "Kyōto Station"
|
42
|
+
}
|
43
|
+
}, {
|
44
|
+
"id": "10154160152517277",
|
45
|
+
"created_time": "2016-05-05T02:53:14+0000",
|
46
|
+
"place": {
|
47
|
+
"id": "117951684932168",
|
48
|
+
"location": {
|
49
|
+
"city": "Minato-ku",
|
50
|
+
"country": "Japan",
|
51
|
+
"latitude": 35.627544444444,
|
52
|
+
"longitude": 139.74165194444,
|
53
|
+
"state": "Tokyo"
|
54
|
+
},
|
55
|
+
"name": "ガスト 品川インターシティ店"
|
56
|
+
}
|
57
|
+
}, {
|
58
|
+
"id": "10154126987817277",
|
59
|
+
"created_time": "2016-04-20T11:33:02+0000",
|
60
|
+
"place": {
|
61
|
+
"id": "131821956863606",
|
62
|
+
"location": {
|
63
|
+
"city": "Chiyoda-ku",
|
64
|
+
"country": "Japan",
|
65
|
+
"latitude": 35.681075526371,
|
66
|
+
"longitude": 139.76741588095,
|
67
|
+
"state": "Tokyo",
|
68
|
+
"zip": "100-0005"
|
69
|
+
},
|
70
|
+
"name": "東京駅 (Tokyo Station)"
|
71
|
+
}
|
72
|
+
}, {
|
73
|
+
"id": "10154126631512277",
|
74
|
+
"created_time": "2016-04-20T07:20:46+0000",
|
75
|
+
"place": {
|
76
|
+
"id": "133752529998670",
|
77
|
+
"location": {
|
78
|
+
"city": "Atsugi-shi",
|
79
|
+
"country": "Japan",
|
80
|
+
"latitude": 35.452777777778,
|
81
|
+
"longitude": 139.39083333333,
|
82
|
+
"state": "Kanagawa",
|
83
|
+
"street": "上郷570",
|
84
|
+
"zip": "243-0434"
|
85
|
+
},
|
86
|
+
"name": "Ebina Station"
|
87
|
+
}
|
88
|
+
}, {
|
89
|
+
"id": "10154020232737277",
|
90
|
+
"created_time": "2016-03-18T11:27:49+0000",
|
91
|
+
"place": {
|
92
|
+
"id": "214085901982335",
|
93
|
+
"location": {
|
94
|
+
"street": "港南 2-16-3 品川グランドセントラルタワー",
|
95
|
+
"zip": "108-0075"
|
96
|
+
},
|
97
|
+
"name": "Microsoft"
|
98
|
+
}
|
99
|
+
}, {
|
100
|
+
"id": "10153874992907277",
|
101
|
+
"created_time": "2016-01-19T12:56:15+0000",
|
102
|
+
"place": {
|
103
|
+
"id": "172216339510916",
|
104
|
+
"location": {
|
105
|
+
"city": "Chiyoda-ku",
|
106
|
+
"country": "Japan",
|
107
|
+
"latitude": 35.687241109167,
|
108
|
+
"longitude": 139.76537605222,
|
109
|
+
"state": "Tokyo"
|
110
|
+
},
|
111
|
+
"name": "ての字 大手町店"
|
112
|
+
}
|
113
|
+
}, {
|
114
|
+
"id": "10153858538627277",
|
115
|
+
"created_time": "2016-01-12T10:22:29+0000",
|
116
|
+
"place": {
|
117
|
+
"id": "456786567830420",
|
118
|
+
"location": {
|
119
|
+
"city": "Shibuya-ku",
|
120
|
+
"country": "Japan",
|
121
|
+
"latitude": 35.65795387,
|
122
|
+
"longitude": 139.69928259333,
|
123
|
+
"state": "Tokyo",
|
124
|
+
"street": "道玄坂1-5-5 藤木ビル3F",
|
125
|
+
"zip": "150-0043"
|
126
|
+
},
|
127
|
+
"name": "旬魚と個室 和食りん 渋谷店"
|
128
|
+
}
|
129
|
+
}, {
|
130
|
+
"id": "10153721558647277",
|
131
|
+
"created_time": "2015-11-06T14:08:12+0000",
|
132
|
+
"place": {
|
133
|
+
"id": "226876317426732",
|
134
|
+
"location": {
|
135
|
+
"city": "Yokohama",
|
136
|
+
"country": "Japan",
|
137
|
+
"latitude": 35.462620092738,
|
138
|
+
"longitude": 139.62273062169,
|
139
|
+
"state": "Kanagawa",
|
140
|
+
"street": "横浜市西区高島2-7-1 ファーストプレイス横浜2F",
|
141
|
+
"zip": "220-0011"
|
142
|
+
},
|
143
|
+
"name": "コトブキヤ酒店 厨 -Kuriya-"
|
144
|
+
}
|
145
|
+
}, {
|
146
|
+
"id": "10153715405947277",
|
147
|
+
"created_time": "2015-11-03T05:08:18+0000",
|
148
|
+
"place": {
|
149
|
+
"id": "132469806788540",
|
150
|
+
"location": {
|
151
|
+
"city": "Kawasaki-shi",
|
152
|
+
"country": "Japan",
|
153
|
+
"latitude": 35.45833333,
|
154
|
+
"longitude": 139.63638889,
|
155
|
+
"state": "Kanagawa",
|
156
|
+
"street": "西区みなとみらい1-1-1",
|
157
|
+
"zip": "220-0012"
|
158
|
+
},
|
159
|
+
"name": "Pacifico Yokohama"
|
160
|
+
}
|
161
|
+
}, {
|
162
|
+
"id": "10153702352642277",
|
163
|
+
"created_time": "2015-10-27T15:30:22+0000",
|
164
|
+
"place": {
|
165
|
+
"id": "132738745815",
|
166
|
+
"location": {
|
167
|
+
"city": "Mountain View",
|
168
|
+
"country": "United States",
|
169
|
+
"latitude": 37.41443,
|
170
|
+
"longitude": -122.07698,
|
171
|
+
"state": "CA",
|
172
|
+
"street": "1401 N Shoreline Blvd",
|
173
|
+
"zip": "94043"
|
174
|
+
},
|
175
|
+
"name": "Computer History Museum"
|
176
|
+
}
|
177
|
+
}, {
|
178
|
+
"id": "10153698349707277",
|
179
|
+
"created_time": "2015-10-25T13:25:29+0000",
|
180
|
+
"place": {
|
181
|
+
"id": "416746601679596",
|
182
|
+
"location": {
|
183
|
+
"city": "Ota-ku",
|
184
|
+
"country": "Japan",
|
185
|
+
"latitude": 35.545251831522,
|
186
|
+
"longitude": 139.76890325546,
|
187
|
+
"state": "Tokyo",
|
188
|
+
"street": "羽田空港2-6-5",
|
189
|
+
"zip": "144-0041"
|
190
|
+
},
|
191
|
+
"name": "羽田空港国際線旅客ターミナル/Haneda Airport International Terminal"
|
192
|
+
}
|
193
|
+
}, {
|
194
|
+
"id": "10153674122512277",
|
195
|
+
"created_time": "2015-10-12T04:04:54+0000",
|
196
|
+
"place": {
|
197
|
+
"id": "222682241075946",
|
198
|
+
"location": {
|
199
|
+
"city": "Osaka",
|
200
|
+
"country": "Japan",
|
201
|
+
"latitude": 34.703301720498,
|
202
|
+
"located_in": "170585066333688",
|
203
|
+
"longitude": 135.49474634082,
|
204
|
+
"state": "Osaka",
|
205
|
+
"zip": "530-0001"
|
206
|
+
},
|
207
|
+
"name": "ノースゲートビルディング"
|
208
|
+
}
|
209
|
+
}, {
|
210
|
+
"id": "10153670747232277",
|
211
|
+
"created_time": "2015-10-10T07:12:07+0000",
|
212
|
+
"place": {
|
213
|
+
"id": "343597862365508",
|
214
|
+
"location": {
|
215
|
+
"city": "Ota-ku",
|
216
|
+
"country": "Japan",
|
217
|
+
"latitude": 35.549476646857,
|
218
|
+
"longitude": 139.78258462691,
|
219
|
+
"state": "Tokyo"
|
220
|
+
},
|
221
|
+
"name": "羽田空港 JAL機内"
|
222
|
+
}
|
223
|
+
}, {
|
224
|
+
"id": "10153668818022277",
|
225
|
+
"created_time": "2015-10-09T10:09:21+0000",
|
226
|
+
"place": {
|
227
|
+
"id": "162385363835177",
|
228
|
+
"location": {
|
229
|
+
"latitude": 34.6973395,
|
230
|
+
"longitude": 135.49717196667
|
231
|
+
},
|
232
|
+
"name": "北新地本通"
|
233
|
+
}
|
234
|
+
}, {
|
235
|
+
"id": "10153668472702277",
|
236
|
+
"created_time": "2015-10-09T04:33:50+0000",
|
237
|
+
"place": {
|
238
|
+
"id": "210150309036138",
|
239
|
+
"location": {
|
240
|
+
"city": "Osaka",
|
241
|
+
"country": "Japan",
|
242
|
+
"latitude": 34.70345435,
|
243
|
+
"longitude": 135.49566151667,
|
244
|
+
"state": "Osaka"
|
245
|
+
},
|
246
|
+
"name": "大阪ステーション ノースゲートビル"
|
247
|
+
}
|
248
|
+
}, {
|
249
|
+
"id": "10153668454662277",
|
250
|
+
"created_time": "2015-10-09T04:10:40+0000",
|
251
|
+
"place": {
|
252
|
+
"id": "125028760881939",
|
253
|
+
"location": {
|
254
|
+
"city": "Osaka",
|
255
|
+
"country": "Japan",
|
256
|
+
"latitude": 34.7050581,
|
257
|
+
"longitude": 135.4975292,
|
258
|
+
"state": "Osaka",
|
259
|
+
"street": "北区芝田1-1-35",
|
260
|
+
"zip": "530-8310"
|
261
|
+
},
|
262
|
+
"name": "大阪新阪急ホテル"
|
263
|
+
}
|
264
|
+
}, {
|
265
|
+
"id": "10153668416907277",
|
266
|
+
"created_time": "2015-10-09T03:36:47+0000",
|
267
|
+
"place": {
|
268
|
+
"id": "152613091493393",
|
269
|
+
"location": {
|
270
|
+
"city": "Toyonaka-shi",
|
271
|
+
"country": "Japan",
|
272
|
+
"latitude": 34.790694423106,
|
273
|
+
"longitude": 135.44123660175,
|
274
|
+
"state": "Osaka",
|
275
|
+
"zip": "560-0036"
|
276
|
+
},
|
277
|
+
"name": "大阪国際空港(伊丹) / Osaka International Airport (ITM)"
|
278
|
+
}
|
279
|
+
}, {
|
280
|
+
"id": "10153668284402277",
|
281
|
+
"created_time": "2015-10-09T01:28:44+0000",
|
282
|
+
"place": {
|
283
|
+
"id": "378804022256093",
|
284
|
+
"location": {
|
285
|
+
"city": "Ota-ku",
|
286
|
+
"country": "Japan",
|
287
|
+
"latitude": 35.5489776,
|
288
|
+
"longitude": 139.7844181,
|
289
|
+
"state": "Tokyo"
|
290
|
+
},
|
291
|
+
"name": "東京羽田空港第一ターミナル"
|
292
|
+
}
|
293
|
+
}, {
|
294
|
+
"id": "10153555064607277",
|
295
|
+
"created_time": "2015-08-20T04:51:28+0000",
|
296
|
+
"place": {
|
297
|
+
"id": "418930924819831",
|
298
|
+
"location": {
|
299
|
+
"city": "Minato-ku",
|
300
|
+
"country": "Japan",
|
301
|
+
"latitude": 35.660949194309,
|
302
|
+
"longitude": 139.72455134918,
|
303
|
+
"state": "Tokyo",
|
304
|
+
"street": "西麻布1-10-6 NISHIAZABU1106ビル1F",
|
305
|
+
"zip": "106-0031"
|
306
|
+
},
|
307
|
+
"name": "京都 瓢喜 西麻布店 (ひょうき)"
|
308
|
+
}
|
309
|
+
}, {
|
310
|
+
"id": "10153528448307277",
|
311
|
+
"created_time": "2015-08-10T13:21:24+0000",
|
312
|
+
"place": {
|
313
|
+
"id": "567625066686031",
|
314
|
+
"location": {
|
315
|
+
"city": "Minato-ku",
|
316
|
+
"country": "Japan",
|
317
|
+
"latitude": 35.66445084003,
|
318
|
+
"longitude": 139.73060878186,
|
319
|
+
"state": "Tokyo"
|
320
|
+
},
|
321
|
+
"name": "Hackers Bar Tokyo"
|
322
|
+
}
|
323
|
+
}, {
|
324
|
+
"id": "10153525555637277",
|
325
|
+
"created_time": "2015-08-09T07:14:09+0000",
|
326
|
+
"place": {
|
327
|
+
"id": "366288036835289",
|
328
|
+
"location": {
|
329
|
+
"city": "Kyoto-shi",
|
330
|
+
"country": "Japan",
|
331
|
+
"latitude": 34.985555555556,
|
332
|
+
"located_in": "206861819341319",
|
333
|
+
"longitude": 135.75888888889,
|
334
|
+
"state": "Kyoto"
|
335
|
+
},
|
336
|
+
"name": "Shinkansen Kyoto Station"
|
337
|
+
}
|
338
|
+
}, {
|
339
|
+
"id": "10153525515587277",
|
340
|
+
"created_time": "2015-08-09T06:22:27+0000",
|
341
|
+
"place": {
|
342
|
+
"id": "137064116331977",
|
343
|
+
"location": {
|
344
|
+
"city": "京都府京都市",
|
345
|
+
"latitude": 35.010294,
|
346
|
+
"longitude": 135.768281,
|
347
|
+
"zip": "604-8091"
|
348
|
+
},
|
349
|
+
"name": "Honnō-ji"
|
350
|
+
}
|
351
|
+
}, {
|
352
|
+
"id": "10153525323407277",
|
353
|
+
"created_time": "2015-08-09T04:23:26+0000",
|
354
|
+
"place": {
|
355
|
+
"id": "128150170728666",
|
356
|
+
"location": {
|
357
|
+
"city": "Kyoto-shi",
|
358
|
+
"country": "Japan",
|
359
|
+
"latitude": 35.033686400818,
|
360
|
+
"longitude": 135.76625289757,
|
361
|
+
"state": "Kyoto",
|
362
|
+
"street": "京都市上京区鶴山町14",
|
363
|
+
"zip": "602-0802"
|
364
|
+
},
|
365
|
+
"name": "阿弥陀寺"
|
366
|
+
}
|
367
|
+
}],
|
368
|
+
"paging": {
|
369
|
+
"cursors": {
|
370
|
+
"before": "MTAxNTQ0MzUzMzE3MzcyNzcZD",
|
371
|
+
"after": "MTAxNTM1MjUzMjM0MDcyNzcZD"
|
372
|
+
},
|
373
|
+
"next": "https://graph.facebook.com/v2.7/579612276/tagged_places?access_token=EAACZCuEy9dpUBAGiXCl27Vlx5cbAbddArhm6CVYpULc7VYoxwIikeZCqOfZAnxZCnu3AmJ7hHQ5IW400gs8xjja42OA6BIc61p8AaE35ZBJct26Q9BxZBLMZBSS2OzZAyYrfz1NPL5nWIeNrAVzbnNjbjjmQEunReZATIdr5kZB5vXTgZDZD&pretty=0&limit=25&after=MTAxNTM1MjUzMjM0MDcyNzcZD"
|
374
|
+
}
|
375
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fb_graph2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nov matake
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -379,6 +379,7 @@ files:
|
|
379
379
|
- spec/fb_graph2/edge/statuses_spec.rb
|
380
380
|
- spec/fb_graph2/edge/subscriptions_spec.rb
|
381
381
|
- spec/fb_graph2/edge/taggable_friends_spec.rb
|
382
|
+
- spec/fb_graph2/edge/tagged_places_spec.rb
|
382
383
|
- spec/fb_graph2/edge/television_spec.rb
|
383
384
|
- spec/fb_graph2/edge/test_users_spec.rb
|
384
385
|
- spec/fb_graph2/edge/videos_spec.rb
|
@@ -475,6 +476,7 @@ files:
|
|
475
476
|
- spec/mock_json/user/scores.json
|
476
477
|
- spec/mock_json/user/statuses.json
|
477
478
|
- spec/mock_json/user/taggable_friends.json
|
479
|
+
- spec/mock_json/user/tagged_places.json
|
478
480
|
- spec/mock_json/user/television.json
|
479
481
|
- spec/mock_json/user/videos.json
|
480
482
|
- spec/mock_json/user/with_picture.json
|