fb_graph2 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/VERSION +1 -1
- data/fb_graph2.gemspec +2 -1
- data/lib/fb_graph2/achievement.rb +3 -1
- data/lib/fb_graph2/application.rb +4 -0
- data/lib/fb_graph2/collection.rb +1 -1
- data/lib/fb_graph2/edge/albums.rb +5 -0
- data/lib/fb_graph2/edge/blocked.rb +7 -2
- data/lib/fb_graph2/edge/comments.rb +1 -1
- data/lib/fb_graph2/edge/feed.rb +1 -1
- data/lib/fb_graph2/edge/notifications.rb +6 -0
- data/lib/fb_graph2/edge/photos.rb +1 -1
- data/lib/fb_graph2/edge/shared_posts.rb +1 -1
- data/lib/fb_graph2/edge/videos.rb +1 -1
- data/lib/fb_graph2/page.rb +6 -1
- data/lib/fb_graph2/page_category.rb +7 -0
- data/lib/fb_graph2/user.rb +1 -0
- data/spec/fb_graph2/application_spec.rb +23 -0
- data/spec/fb_graph2/collection_spec.rb +11 -0
- data/spec/fb_graph2/edge/achievements_spec.rb +18 -0
- data/spec/fb_graph2/edge/activities_spec.rb +18 -0
- data/spec/fb_graph2/edge/admins_spec.rb +40 -0
- data/spec/fb_graph2/edge/albums_spec.rb +30 -0
- data/spec/fb_graph2/edge/blocked_spec.rb +60 -0
- data/spec/fb_graph2/edge/books_spec.rb +18 -0
- data/spec/fb_graph2/edge/events_spec.rb +18 -0
- data/spec/fb_graph2/edge/friend_lists_spec.rb +18 -0
- data/spec/fb_graph2/edge/friends_spec.rb +18 -0
- data/spec/fb_graph2/edge/groups_spec.rb +18 -0
- data/spec/fb_graph2/edge/home_spec.rb +18 -0
- data/spec/fb_graph2/edge/interests_spec.rb +18 -0
- data/spec/fb_graph2/edge/invitable_friends_spec.rb +18 -0
- data/spec/fb_graph2/edge/likes_spec.rb +4 -4
- data/spec/fb_graph2/edge/links_spec.rb +18 -0
- data/spec/fb_graph2/edge/milestones_spec.rb +18 -0
- data/spec/fb_graph2/edge/movies_spec.rb +18 -0
- data/spec/fb_graph2/edge/music_spec.rb +18 -0
- data/spec/fb_graph2/edge/notifications_spec.rb +29 -0
- data/spec/fb_graph2/edge/permissions_spec.rb +18 -0
- data/spec/fb_graph2/edge/picture_spec.rb +16 -0
- data/spec/fb_graph2/edge/pokes_spec.rb +18 -0
- data/spec/fb_graph2/edge/posts_spec.rb +18 -0
- data/spec/fb_graph2/edge/promotable_posts_spec.rb +18 -0
- data/spec/fb_graph2/edge/scores_spec.rb +18 -0
- data/spec/fb_graph2/edge/shared_posts_spec.rb +18 -0
- data/spec/fb_graph2/edge/statuses_spec.rb +18 -0
- data/spec/fb_graph2/edge/television_spec.rb +18 -0
- data/spec/fb_graph2/edge/videos_spec.rb +28 -0
- data/spec/fb_graph2/request_filter/authenticator_spec.rb +25 -0
- data/spec/fb_graph2/request_filter/debugger_spec.rb +33 -0
- data/spec/fb_graph2/user_spec.rb +1 -1
- data/spec/fb_graph2/util_spec.rb +19 -0
- data/spec/mock_json/application/app.json +15 -0
- data/spec/mock_json/page/admins.json +11 -0
- data/spec/mock_json/page/block_succeeded.json +3 -0
- data/spec/mock_json/page/blocked.json +11 -0
- data/spec/mock_json/page/milestones.json +19 -0
- data/spec/mock_json/page/promotable_posts.json +67 -0
- data/spec/mock_json/post/shared_posts.json +50 -0
- data/spec/mock_json/success_true.json +3 -0
- data/spec/mock_json/user/achievements.json +40 -0
- data/spec/mock_json/user/activities.json +36 -0
- data/spec/mock_json/user/albums.json +23 -0
- data/spec/mock_json/user/books.json +11 -0
- data/spec/mock_json/user/events.json +16 -0
- data/spec/mock_json/user/friend_lists.json +98 -0
- data/spec/mock_json/user/friends.json +18 -0
- data/spec/mock_json/user/groups.json +16 -0
- data/spec/mock_json/user/home.json +61 -0
- data/spec/mock_json/user/interests.json +41 -0
- data/spec/mock_json/user/invitable_friends.json +27 -0
- data/spec/mock_json/user/links.json +45 -0
- data/spec/mock_json/user/movies.json +11 -0
- data/spec/mock_json/user/music.json +45 -0
- data/spec/mock_json/user/notifications.json +111 -0
- data/spec/mock_json/user/permissions.json +114 -0
- data/spec/mock_json/user/picture.json +6 -0
- data/spec/mock_json/user/pokes.json +17 -0
- data/spec/mock_json/user/posts.json +48 -0
- data/spec/mock_json/user/scores.json +14 -0
- data/spec/mock_json/user/statuses.json +15 -0
- data/spec/mock_json/user/television.json +11 -0
- data/spec/mock_json/user/videos.json +41 -0
- data/spec/spec_helper/mock_graph.rb +1 -1
- data/spec/spec_helper.rb +7 -0
- metadata +84 -5
@@ -0,0 +1,48 @@
|
|
1
|
+
{
|
2
|
+
"data": [{
|
3
|
+
"id": "579612276_10152483324277277",
|
4
|
+
"from": {
|
5
|
+
"id": "579612276",
|
6
|
+
"name": "Nov Matake"
|
7
|
+
},
|
8
|
+
"to": {
|
9
|
+
"data": [{
|
10
|
+
"id": "579612276",
|
11
|
+
"name": "Nov Matake"
|
12
|
+
}]
|
13
|
+
},
|
14
|
+
"message": "Nov Matake test",
|
15
|
+
"message_tags": {
|
16
|
+
"0": [{
|
17
|
+
"id": "579612276",
|
18
|
+
"name": "Nov Matake",
|
19
|
+
"type": "user",
|
20
|
+
"offset": 0,
|
21
|
+
"length": 10
|
22
|
+
}]
|
23
|
+
},
|
24
|
+
"actions": [{
|
25
|
+
"name": "Comment",
|
26
|
+
"link": "https://www.facebook.com/579612276/posts/10152483324277277"
|
27
|
+
}, {
|
28
|
+
"name": "Like",
|
29
|
+
"link": "https://www.facebook.com/579612276/posts/10152483324277277"
|
30
|
+
}],
|
31
|
+
"privacy": {
|
32
|
+
"description": "Your friends",
|
33
|
+
"value": "ALL_FRIENDS",
|
34
|
+
"friends": "",
|
35
|
+
"networks": "",
|
36
|
+
"allow": "",
|
37
|
+
"deny": ""
|
38
|
+
},
|
39
|
+
"type": "status",
|
40
|
+
"status_type": "mobile_status_update",
|
41
|
+
"created_time": "2014-06-03T06:27:21+0000",
|
42
|
+
"updated_time": "2014-06-03T06:27:21+0000"
|
43
|
+
}],
|
44
|
+
"paging": {
|
45
|
+
"previous": "https://graph.facebook.com/v2.0/579612276/posts?limit=1&since=1401776841",
|
46
|
+
"next": "https://graph.facebook.com/v2.0/579612276/posts?limit=1&until=1401776840"
|
47
|
+
}
|
48
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
"data": [{
|
3
|
+
"id": "10152483324277277",
|
4
|
+
"from": {
|
5
|
+
"id": "579612276",
|
6
|
+
"name": "Nov Matake"
|
7
|
+
},
|
8
|
+
"message": "Nov Matake test",
|
9
|
+
"updated_time": "2014-06-03T06:27:20+0000"
|
10
|
+
}],
|
11
|
+
"paging": {
|
12
|
+
"previous": "https://graph.facebook.com/v2.0/579612276/statuses?limit=25&since=1401776840&__paging_token=enc_Aex8IwVNSggYJw8M6QIUUCJvf2TcGZpItipsxeT2NUupXAxD-01jC8oRxhDe9gGnJD-vMkN1tDEUjTuE83vcaIpq",
|
13
|
+
"next": "https://graph.facebook.com/v2.0/579612276/statuses?limit=25&until=1384770778&__paging_token=enc_AewaF0Qo-zXVeD8fMKMQBs0GKoqDw6LXxOZhyn2z9HqW7_NBd1IvqlGOXrrL7DPpJNvx1A8-0G0_pf_OauViIb3I"
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
{
|
2
|
+
"data": [{
|
3
|
+
"category": "Tv show",
|
4
|
+
"name": "Mobile Suit Zeta Gundam",
|
5
|
+
"created_time": "2014-06-03T06:08:35+0000",
|
6
|
+
"id": "105508046150348"
|
7
|
+
}],
|
8
|
+
"paging": {
|
9
|
+
"next": "https://graph.facebook.com/v2.0/579612276/television?limit=25&offset=25&__after_id=enc_AewK-s0422fW15xZjOu3LxDtrkej8NQumXBW2ugVt3EuK52YArNQIKzoyq72k0V_vQ3_DGUsIp7COPzF82p_h4BK"
|
10
|
+
}
|
11
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
{
|
2
|
+
"data": [{
|
3
|
+
"id": "10150407695537277",
|
4
|
+
"from": {
|
5
|
+
"category": "Software",
|
6
|
+
"name": "FbGraph",
|
7
|
+
"id": "117513961602338"
|
8
|
+
},
|
9
|
+
"name": "Testing Video Upload!",
|
10
|
+
"description": "Testing Video Upload!!!!",
|
11
|
+
"picture": "https://fbcdn-vthumb-a.akamaihd.net/hvthumb-ak-xap1/t15.0-10/51203_10150407695802277_10150407695537277_13346_258_t.jpg",
|
12
|
+
"embed_html": "<iframe src=\"https://www.facebook.com/video/embed?video_id=10150407695537277\" width=\"640\" height=\"480\" frameborder=\"0\"></iframe>",
|
13
|
+
"icon": "https://fbstatic-a.akamaihd.net/rsrc.php/v2/yD/r/DggDhA4z4tO.gif",
|
14
|
+
"source": "https://fbcdn-video-a.akamaihd.net/hvideo-ak-xap1/v/t43.1792-2/1205675_10151804645367277_61538_n.mp4?oh=d78d7d5854d1614376ca0358b15b9f54&oe=538F750B&__gda__=1401907382_f5c3b44cfea781601e4caed9eca55002",
|
15
|
+
"created_time": "2011-11-09T08:31:28+0000",
|
16
|
+
"updated_time": "2011-11-09T08:31:28+0000",
|
17
|
+
"format": [{
|
18
|
+
"embed_html": "<iframe src=\"https://www.facebook.com/video/embed?video_id=10150407695537277\" width=\"130\" height=\"98\" frameborder=\"0\"></iframe>",
|
19
|
+
"width": 130,
|
20
|
+
"height": 98,
|
21
|
+
"filter": "130x130",
|
22
|
+
"picture": "https://fbcdn-vthumb-a.akamaihd.net/hvthumb-ak-xap1/t15.0-10/s130x130/51203_10150407695802277_10150407695537277_13346_258_t.jpg"
|
23
|
+
}, {
|
24
|
+
"embed_html": "<iframe src=\"https://www.facebook.com/video/embed?video_id=10150407695537277\" width=\"480\" height=\"360\" frameborder=\"0\"></iframe>",
|
25
|
+
"width": 480,
|
26
|
+
"height": 360,
|
27
|
+
"filter": "480x480",
|
28
|
+
"picture": "https://fbcdn-vthumb-a.akamaihd.net/hvthumb-ak-xap1/t15.0-10/s480x480/51203_10150407695802277_10150407695537277_13346_258_b.jpg"
|
29
|
+
}, {
|
30
|
+
"embed_html": "<iframe src=\"https://www.facebook.com/video/embed?video_id=10150407695537277\" width=\"640\" height=\"480\" frameborder=\"0\"></iframe>",
|
31
|
+
"width": 640,
|
32
|
+
"height": 480,
|
33
|
+
"filter": "native",
|
34
|
+
"picture": "https://fbcdn-vthumb-a.akamaihd.net/hvthumb-ak-xap1/t15.0-10/51203_10150407695802277_10150407695537277_13346_258_b.jpg"
|
35
|
+
}]
|
36
|
+
}],
|
37
|
+
"paging": {
|
38
|
+
"previous": "https://graph.facebook.com/v2.0/117513961602338/videos?limit=25&since=1320827488",
|
39
|
+
"next": "https://graph.facebook.com/v2.0/117513961602338/videos?limit=25&until=1308369661"
|
40
|
+
}
|
41
|
+
}
|
data/spec/spec_helper.rb
CHANGED
@@ -5,8 +5,15 @@ SimpleCov.start do
|
|
5
5
|
end
|
6
6
|
|
7
7
|
require 'rspec'
|
8
|
+
require 'rspec/its'
|
8
9
|
require 'fb_graph2'
|
9
10
|
|
11
|
+
RSpec.configure do |config|
|
12
|
+
config.expect_with :rspec do |c|
|
13
|
+
c.syntax = [:should, :expect]
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
10
17
|
Dir[File.join(__dir__, 'spec_helper/*.rb')].each do |file|
|
11
18
|
require file
|
12
19
|
end
|
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.0.
|
4
|
+
version: 0.0.5
|
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-06-
|
11
|
+
date: 2014-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -114,14 +114,28 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
117
|
+
version: '0'
|
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: '
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rspec-its
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
125
139
|
description: Facebook Graph API v2.0 Wrapper in Ruby
|
126
140
|
email:
|
127
141
|
- nov@matake.jp
|
@@ -191,6 +205,7 @@ files:
|
|
191
205
|
- lib/fb_graph2/notification.rb
|
192
206
|
- lib/fb_graph2/offer.rb
|
193
207
|
- lib/fb_graph2/page.rb
|
208
|
+
- lib/fb_graph2/page_category.rb
|
194
209
|
- lib/fb_graph2/photo.rb
|
195
210
|
- lib/fb_graph2/post.rb
|
196
211
|
- lib/fb_graph2/request_filter/authenticator.rb
|
@@ -206,29 +221,93 @@ files:
|
|
206
221
|
- lib/fb_graph2/user.rb
|
207
222
|
- lib/fb_graph2/util.rb
|
208
223
|
- lib/fb_graph2/video.rb
|
224
|
+
- spec/fb_graph2/application_spec.rb
|
225
|
+
- spec/fb_graph2/collection_spec.rb
|
209
226
|
- spec/fb_graph2/edge/accounts_spec.rb
|
227
|
+
- spec/fb_graph2/edge/achievements_spec.rb
|
228
|
+
- spec/fb_graph2/edge/activities_spec.rb
|
229
|
+
- spec/fb_graph2/edge/admins_spec.rb
|
230
|
+
- spec/fb_graph2/edge/albums_spec.rb
|
231
|
+
- spec/fb_graph2/edge/blocked_spec.rb
|
232
|
+
- spec/fb_graph2/edge/books_spec.rb
|
210
233
|
- spec/fb_graph2/edge/comments_spec.rb
|
234
|
+
- spec/fb_graph2/edge/events_spec.rb
|
211
235
|
- spec/fb_graph2/edge/feed_spec.rb
|
236
|
+
- spec/fb_graph2/edge/friend_lists_spec.rb
|
237
|
+
- spec/fb_graph2/edge/friends_spec.rb
|
238
|
+
- spec/fb_graph2/edge/groups_spec.rb
|
239
|
+
- spec/fb_graph2/edge/home_spec.rb
|
240
|
+
- spec/fb_graph2/edge/interests_spec.rb
|
241
|
+
- spec/fb_graph2/edge/invitable_friends_spec.rb
|
212
242
|
- spec/fb_graph2/edge/likes_spec.rb
|
243
|
+
- spec/fb_graph2/edge/links_spec.rb
|
244
|
+
- spec/fb_graph2/edge/milestones_spec.rb
|
245
|
+
- spec/fb_graph2/edge/movies_spec.rb
|
246
|
+
- spec/fb_graph2/edge/music_spec.rb
|
247
|
+
- spec/fb_graph2/edge/notifications_spec.rb
|
248
|
+
- spec/fb_graph2/edge/permissions_spec.rb
|
213
249
|
- spec/fb_graph2/edge/photos_spec.rb
|
250
|
+
- spec/fb_graph2/edge/picture_spec.rb
|
251
|
+
- spec/fb_graph2/edge/pokes_spec.rb
|
252
|
+
- spec/fb_graph2/edge/posts_spec.rb
|
253
|
+
- spec/fb_graph2/edge/promotable_posts_spec.rb
|
254
|
+
- spec/fb_graph2/edge/scores_spec.rb
|
255
|
+
- spec/fb_graph2/edge/shared_posts_spec.rb
|
256
|
+
- spec/fb_graph2/edge/statuses_spec.rb
|
257
|
+
- spec/fb_graph2/edge/television_spec.rb
|
258
|
+
- spec/fb_graph2/edge/videos_spec.rb
|
214
259
|
- spec/fb_graph2/node_spec.rb
|
215
260
|
- spec/fb_graph2/node_subclass_spec.rb
|
216
261
|
- spec/fb_graph2/page_spec.rb
|
262
|
+
- spec/fb_graph2/request_filter/authenticator_spec.rb
|
263
|
+
- spec/fb_graph2/request_filter/debugger_spec.rb
|
217
264
|
- spec/fb_graph2/user_spec.rb
|
265
|
+
- spec/fb_graph2/util_spec.rb
|
218
266
|
- spec/fb_graph2_spec.rb
|
267
|
+
- spec/mock_json/application/app.json
|
219
268
|
- spec/mock_json/blank_collection.json
|
220
269
|
- spec/mock_json/error/400/2500.json
|
221
270
|
- spec/mock_json/error/invalid_format.json
|
271
|
+
- spec/mock_json/page/admins.json
|
272
|
+
- spec/mock_json/page/block_succeeded.json
|
273
|
+
- spec/mock_json/page/blocked.json
|
274
|
+
- spec/mock_json/page/milestones.json
|
275
|
+
- spec/mock_json/page/promotable_posts.json
|
222
276
|
- spec/mock_json/post/comments.json
|
223
277
|
- spec/mock_json/post/liked_and_commented.json
|
224
278
|
- spec/mock_json/post/likes.json
|
279
|
+
- spec/mock_json/post/shared_posts.json
|
280
|
+
- spec/mock_json/success_true.json
|
225
281
|
- spec/mock_json/success_with_id.json
|
226
282
|
- spec/mock_json/true.json
|
227
283
|
- spec/mock_json/user/accounts.json
|
284
|
+
- spec/mock_json/user/achievements.json
|
285
|
+
- spec/mock_json/user/activities.json
|
286
|
+
- spec/mock_json/user/albums.json
|
287
|
+
- spec/mock_json/user/books.json
|
288
|
+
- spec/mock_json/user/events.json
|
228
289
|
- spec/mock_json/user/feed.json
|
290
|
+
- spec/mock_json/user/friend_lists.json
|
291
|
+
- spec/mock_json/user/friends.json
|
292
|
+
- spec/mock_json/user/groups.json
|
293
|
+
- spec/mock_json/user/home.json
|
294
|
+
- spec/mock_json/user/interests.json
|
295
|
+
- spec/mock_json/user/invitable_friends.json
|
229
296
|
- spec/mock_json/user/likes.json
|
297
|
+
- spec/mock_json/user/links.json
|
230
298
|
- spec/mock_json/user/me.json
|
299
|
+
- spec/mock_json/user/movies.json
|
300
|
+
- spec/mock_json/user/music.json
|
301
|
+
- spec/mock_json/user/notifications.json
|
302
|
+
- spec/mock_json/user/permissions.json
|
231
303
|
- spec/mock_json/user/photos.json
|
304
|
+
- spec/mock_json/user/picture.json
|
305
|
+
- spec/mock_json/user/pokes.json
|
306
|
+
- spec/mock_json/user/posts.json
|
307
|
+
- spec/mock_json/user/scores.json
|
308
|
+
- spec/mock_json/user/statuses.json
|
309
|
+
- spec/mock_json/user/television.json
|
310
|
+
- spec/mock_json/user/videos.json
|
232
311
|
- spec/spec_helper.rb
|
233
312
|
- spec/spec_helper/mock_graph.rb
|
234
313
|
homepage: https://github.com/fb_graph2
|
@@ -251,7 +330,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
251
330
|
version: '0'
|
252
331
|
requirements: []
|
253
332
|
rubyforge_project:
|
254
|
-
rubygems_version: 2.2.
|
333
|
+
rubygems_version: 2.2.2
|
255
334
|
signing_key:
|
256
335
|
specification_version: 4
|
257
336
|
summary: Facebook Graph API v2.0 Wrapper in Ruby
|