fb_graph 2.1.7 → 2.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/fb_graph.rb +8 -2
- data/lib/fb_graph/achievement.rb +44 -0
- data/lib/fb_graph/ad_account.rb +2 -0
- data/lib/fb_graph/ad_connection_object.rb +38 -0
- data/lib/fb_graph/application.rb +27 -6
- data/lib/fb_graph/broad_targeting_category.rb +13 -0
- data/lib/fb_graph/connections/achievements.rb +21 -0
- data/lib/fb_graph/connections/ad_connection_objects.rb +14 -0
- data/lib/fb_graph/connections/broad_targeting_categories.rb +14 -0
- data/lib/fb_graph/connections/mutual_friends.rb +22 -0
- data/lib/fb_graph/connections/user_achievements.rb +22 -0
- data/lib/fb_graph/exception.rb +41 -1
- data/lib/fb_graph/node.rb +2 -11
- data/lib/fb_graph/user.rb +2 -0
- data/lib/fb_graph/user_achievement.rb +35 -0
- data/spec/fb_graph/achievement_spec.rb +59 -0
- data/spec/fb_graph/ad_connection_object_spec.rb +30 -0
- data/spec/fb_graph/application_spec.rb +3 -1
- data/spec/fb_graph/broad_targeting_category_spec.rb +17 -0
- data/spec/fb_graph/connections/achievements_spec.rb +27 -0
- data/spec/fb_graph/connections/ad_connection_objects_spec.rb +20 -0
- data/spec/fb_graph/connections/broad_targeting_categories_spec.rb +18 -0
- data/spec/fb_graph/connections/mutual_friends_spec.rb +28 -0
- data/spec/fb_graph/connections/user_achievements_spec.rb +37 -0
- data/spec/fb_graph/exception_spec.rb +97 -1
- data/spec/fb_graph/user_achievement_spec.rb +53 -0
- data/spec/mock_json/ad_accounts/ad_connection_objects/test_connection_objects.json +34 -0
- data/spec/mock_json/ad_accounts/broad_targeting_categories/test_bct.json +19 -0
- data/spec/mock_json/applications/achievements/sample.json +24 -0
- data/spec/mock_json/users/mutual_friends/me_and_agektmr.json +126 -0
- data/spec/mock_json/users/user_achievements/created.json +1 -0
- data/spec/mock_json/users/user_achievements/sample.json +31 -0
- metadata +41 -2
@@ -0,0 +1 @@
|
|
1
|
+
{"id": "1234567890"}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
{
|
2
|
+
"data": [{
|
3
|
+
"id": "10150351898227277",
|
4
|
+
"from": {
|
5
|
+
"id": "579612276",
|
6
|
+
"name": "Nov Matake"
|
7
|
+
},
|
8
|
+
"start_time": "2011-09-27T14:18:33+0000",
|
9
|
+
"end_time": "2011-09-27T14:18:33+0000",
|
10
|
+
"publish_time": "2011-09-27T14:18:33+0000",
|
11
|
+
"application": {
|
12
|
+
"id": "134145643294322",
|
13
|
+
"name": "gem sample"
|
14
|
+
},
|
15
|
+
"achievement": {
|
16
|
+
"id": "10150310611431721",
|
17
|
+
"url": "http:\/\/fbgraphsample.heroku.com\/achievements\/1",
|
18
|
+
"type": "game.achievement",
|
19
|
+
"title": "1st Achievement"
|
20
|
+
},
|
21
|
+
"likes": {
|
22
|
+
"count": 0
|
23
|
+
},
|
24
|
+
"comments": {
|
25
|
+
"count": 0
|
26
|
+
}
|
27
|
+
}],
|
28
|
+
"paging": {
|
29
|
+
"next": "https:\/\/graph.facebook.com\/matake\/achievements?access_token=AAAB6ATdqrnIBAAIjLscFWsr1M30EuZB1WdfgMJZCLK68hn52AeufU6CkaVPksKceQuwB02HvChrLDpZAkEtp0CPXS7H0xoZD&offset=25&limit=25"
|
30
|
+
}
|
31
|
+
}
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: fb_graph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 2.1.
|
5
|
+
version: 2.1.8
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- nov matake
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-09-
|
13
|
+
date: 2011-09-27 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: httpclient
|
@@ -113,10 +113,12 @@ files:
|
|
113
113
|
- assets/fb_graph.png
|
114
114
|
- fb_graph.gemspec
|
115
115
|
- lib/fb_graph.rb
|
116
|
+
- lib/fb_graph/achievement.rb
|
116
117
|
- lib/fb_graph/action.rb
|
117
118
|
- lib/fb_graph/ad_account.rb
|
118
119
|
- lib/fb_graph/ad_campaign.rb
|
119
120
|
- lib/fb_graph/ad_campaign_stat.rb
|
121
|
+
- lib/fb_graph/ad_connection_object.rb
|
120
122
|
- lib/fb_graph/ad_group.rb
|
121
123
|
- lib/fb_graph/ad_group_stat.rb
|
122
124
|
- lib/fb_graph/ad_keyword.rb
|
@@ -129,6 +131,7 @@ files:
|
|
129
131
|
- lib/fb_graph/auth.rb
|
130
132
|
- lib/fb_graph/auth/cookie.rb
|
131
133
|
- lib/fb_graph/auth/signed_request.rb
|
134
|
+
- lib/fb_graph/broad_targeting_category.rb
|
132
135
|
- lib/fb_graph/checkin.rb
|
133
136
|
- lib/fb_graph/collection.rb
|
134
137
|
- lib/fb_graph/comment.rb
|
@@ -136,10 +139,12 @@ files:
|
|
136
139
|
- lib/fb_graph/connection.rb
|
137
140
|
- lib/fb_graph/connections.rb
|
138
141
|
- lib/fb_graph/connections/accounts.rb
|
142
|
+
- lib/fb_graph/connections/achievements.rb
|
139
143
|
- lib/fb_graph/connections/activities.rb
|
140
144
|
- lib/fb_graph/connections/ad_accounts.rb
|
141
145
|
- lib/fb_graph/connections/ad_campaign_stats.rb
|
142
146
|
- lib/fb_graph/connections/ad_campaigns.rb
|
147
|
+
- lib/fb_graph/connections/ad_connection_objects.rb
|
143
148
|
- lib/fb_graph/connections/ad_group_stats.rb
|
144
149
|
- lib/fb_graph/connections/ad_groups.rb
|
145
150
|
- lib/fb_graph/connections/admins.rb
|
@@ -148,6 +153,7 @@ files:
|
|
148
153
|
- lib/fb_graph/connections/attending.rb
|
149
154
|
- lib/fb_graph/connections/blocked.rb
|
150
155
|
- lib/fb_graph/connections/books.rb
|
156
|
+
- lib/fb_graph/connections/broad_targeting_categories.rb
|
151
157
|
- lib/fb_graph/connections/checkins.rb
|
152
158
|
- lib/fb_graph/connections/comments.rb
|
153
159
|
- lib/fb_graph/connections/declined.rb
|
@@ -173,6 +179,7 @@ files:
|
|
173
179
|
- lib/fb_graph/connections/messages.rb
|
174
180
|
- lib/fb_graph/connections/movies.rb
|
175
181
|
- lib/fb_graph/connections/music.rb
|
182
|
+
- lib/fb_graph/connections/mutual_friends.rb
|
176
183
|
- lib/fb_graph/connections/noreply.rb
|
177
184
|
- lib/fb_graph/connections/notes.rb
|
178
185
|
- lib/fb_graph/connections/outbox.rb
|
@@ -194,6 +201,7 @@ files:
|
|
194
201
|
- lib/fb_graph/connections/television.rb
|
195
202
|
- lib/fb_graph/connections/test_users.rb
|
196
203
|
- lib/fb_graph/connections/threads.rb
|
204
|
+
- lib/fb_graph/connections/user_achievements.rb
|
197
205
|
- lib/fb_graph/connections/videos.rb
|
198
206
|
- lib/fb_graph/debugger.rb
|
199
207
|
- lib/fb_graph/doc.rb
|
@@ -235,12 +243,15 @@ files:
|
|
235
243
|
- lib/fb_graph/test_user.rb
|
236
244
|
- lib/fb_graph/thread.rb
|
237
245
|
- lib/fb_graph/user.rb
|
246
|
+
- lib/fb_graph/user_achievement.rb
|
238
247
|
- lib/fb_graph/venue.rb
|
239
248
|
- lib/fb_graph/video.rb
|
240
249
|
- lib/fb_graph/work.rb
|
241
250
|
- lib/patch/rack/oauth2/util.rb
|
251
|
+
- spec/fb_graph/achievement_spec.rb
|
242
252
|
- spec/fb_graph/ad_account_spec.rb
|
243
253
|
- spec/fb_graph/ad_campaign_spec.rb
|
254
|
+
- spec/fb_graph/ad_connection_object_spec.rb
|
244
255
|
- spec/fb_graph/ad_group_spec.rb
|
245
256
|
- spec/fb_graph/ad_keyword_spec.rb
|
246
257
|
- spec/fb_graph/ad_keyword_suggestion_spec.rb
|
@@ -252,14 +263,17 @@ files:
|
|
252
263
|
- spec/fb_graph/auth/cookie_spec.rb
|
253
264
|
- spec/fb_graph/auth/signed_request_spec.rb
|
254
265
|
- spec/fb_graph/auth_spec.rb
|
266
|
+
- spec/fb_graph/broad_targeting_category_spec.rb
|
255
267
|
- spec/fb_graph/checkin_spec.rb
|
256
268
|
- spec/fb_graph/collection_spec.rb
|
257
269
|
- spec/fb_graph/comment_spec.rb
|
258
270
|
- spec/fb_graph/connection_spec.rb
|
259
271
|
- spec/fb_graph/connections/accounts_spec.rb
|
272
|
+
- spec/fb_graph/connections/achievements_spec.rb
|
260
273
|
- spec/fb_graph/connections/activities_spec.rb
|
261
274
|
- spec/fb_graph/connections/ad_accounts_spec.rb
|
262
275
|
- spec/fb_graph/connections/ad_campaign_stat_spec.rb
|
276
|
+
- spec/fb_graph/connections/ad_connection_objects_spec.rb
|
263
277
|
- spec/fb_graph/connections/ad_group_stat_spec.rb
|
264
278
|
- spec/fb_graph/connections/ad_groups_spec.rb
|
265
279
|
- spec/fb_graph/connections/admins_spec.rb
|
@@ -268,6 +282,7 @@ files:
|
|
268
282
|
- spec/fb_graph/connections/attending_spec.rb
|
269
283
|
- spec/fb_graph/connections/blocked_spec.rb
|
270
284
|
- spec/fb_graph/connections/books_spec.rb
|
285
|
+
- spec/fb_graph/connections/broad_targeting_categories_spec.rb
|
271
286
|
- spec/fb_graph/connections/checkins_spec.rb
|
272
287
|
- spec/fb_graph/connections/comments_spec.rb
|
273
288
|
- spec/fb_graph/connections/declined_spec.rb
|
@@ -293,6 +308,7 @@ files:
|
|
293
308
|
- spec/fb_graph/connections/messages_spec.rb
|
294
309
|
- spec/fb_graph/connections/movies_spec.rb
|
295
310
|
- spec/fb_graph/connections/music_spec.rb
|
311
|
+
- spec/fb_graph/connections/mutual_friends_spec.rb
|
296
312
|
- spec/fb_graph/connections/noreply_spec.rb
|
297
313
|
- spec/fb_graph/connections/notes_spec.rb
|
298
314
|
- spec/fb_graph/connections/outbox_spec.rb
|
@@ -314,6 +330,7 @@ files:
|
|
314
330
|
- spec/fb_graph/connections/television_spec.rb
|
315
331
|
- spec/fb_graph/connections/test_users_spec.rb
|
316
332
|
- spec/fb_graph/connections/threads_spec.rb
|
333
|
+
- spec/fb_graph/connections/user_achievements_spec.rb
|
317
334
|
- spec/fb_graph/connections/videos_spec.rb
|
318
335
|
- spec/fb_graph/debugger_spec.rb
|
319
336
|
- spec/fb_graph/doc_spec.rb
|
@@ -352,6 +369,7 @@ files:
|
|
352
369
|
- spec/fb_graph/targeting_spec.rb
|
353
370
|
- spec/fb_graph/test_user_spec.rb
|
354
371
|
- spec/fb_graph/thread_spec.rb
|
372
|
+
- spec/fb_graph/user_achievement_spec.rb
|
355
373
|
- spec/fb_graph/user_spec.rb
|
356
374
|
- spec/fb_graph/venue_spec.rb
|
357
375
|
- spec/fb_graph/video_spec.rb
|
@@ -359,8 +377,10 @@ files:
|
|
359
377
|
- spec/fb_graph_spec.rb
|
360
378
|
- spec/helpers/webmock_helper.rb
|
361
379
|
- spec/mock_json/ad_accounts/ad_campaign_stats/test_ad_campaign_stats.json
|
380
|
+
- spec/mock_json/ad_accounts/ad_connection_objects/test_connection_objects.json
|
362
381
|
- spec/mock_json/ad_accounts/ad_group_stats/test_ad_group_stats.json
|
363
382
|
- spec/mock_json/ad_accounts/ad_groups/post_with_valid_access_token.json
|
383
|
+
- spec/mock_json/ad_accounts/broad_targeting_categories/test_bct.json
|
364
384
|
- spec/mock_json/ad_accounts/reach_estimates/test_reach_estimates.json
|
365
385
|
- spec/mock_json/ad_accounts/test_ad_account.json
|
366
386
|
- spec/mock_json/ad_campaigns/ad_groups/22334455_ad_groups.json
|
@@ -372,6 +392,7 @@ files:
|
|
372
392
|
- spec/mock_json/albums/photos/matake_private.json
|
373
393
|
- spec/mock_json/albums/photos/post_with_valid_access_token.json
|
374
394
|
- spec/mock_json/applications/accounts/private.json
|
395
|
+
- spec/mock_json/applications/achievements/sample.json
|
375
396
|
- spec/mock_json/applications/feed/public.json
|
376
397
|
- spec/mock_json/applications/payments/sample.json
|
377
398
|
- spec/mock_json/applications/reviews/public.json
|
@@ -499,6 +520,7 @@ files:
|
|
499
520
|
- spec/mock_json/users/me_public.json
|
500
521
|
- spec/mock_json/users/movies/matake_private.json
|
501
522
|
- spec/mock_json/users/music/matake_private.json
|
523
|
+
- spec/mock_json/users/mutual_friends/me_and_agektmr.json
|
502
524
|
- spec/mock_json/users/notes/matake_private.json
|
503
525
|
- spec/mock_json/users/outbox/me_private.json
|
504
526
|
- spec/mock_json/users/permissions/me_private.json
|
@@ -510,6 +532,8 @@ files:
|
|
510
532
|
- spec/mock_json/users/tagged/arjun_public.json
|
511
533
|
- spec/mock_json/users/television/matake_private.json
|
512
534
|
- spec/mock_json/users/threads/me_private.json
|
535
|
+
- spec/mock_json/users/user_achievements/created.json
|
536
|
+
- spec/mock_json/users/user_achievements/sample.json
|
513
537
|
- spec/mock_json/users/videos/kirk_private.json
|
514
538
|
- spec/mock_json/users/videos/posted.json
|
515
539
|
- spec/mock_json/videos/private.json
|
@@ -542,8 +566,10 @@ signing_key:
|
|
542
566
|
specification_version: 3
|
543
567
|
summary: A full-stack Facebook Graph API wrapper in Ruby.
|
544
568
|
test_files:
|
569
|
+
- spec/fb_graph/achievement_spec.rb
|
545
570
|
- spec/fb_graph/ad_account_spec.rb
|
546
571
|
- spec/fb_graph/ad_campaign_spec.rb
|
572
|
+
- spec/fb_graph/ad_connection_object_spec.rb
|
547
573
|
- spec/fb_graph/ad_group_spec.rb
|
548
574
|
- spec/fb_graph/ad_keyword_spec.rb
|
549
575
|
- spec/fb_graph/ad_keyword_suggestion_spec.rb
|
@@ -555,14 +581,17 @@ test_files:
|
|
555
581
|
- spec/fb_graph/auth/cookie_spec.rb
|
556
582
|
- spec/fb_graph/auth/signed_request_spec.rb
|
557
583
|
- spec/fb_graph/auth_spec.rb
|
584
|
+
- spec/fb_graph/broad_targeting_category_spec.rb
|
558
585
|
- spec/fb_graph/checkin_spec.rb
|
559
586
|
- spec/fb_graph/collection_spec.rb
|
560
587
|
- spec/fb_graph/comment_spec.rb
|
561
588
|
- spec/fb_graph/connection_spec.rb
|
562
589
|
- spec/fb_graph/connections/accounts_spec.rb
|
590
|
+
- spec/fb_graph/connections/achievements_spec.rb
|
563
591
|
- spec/fb_graph/connections/activities_spec.rb
|
564
592
|
- spec/fb_graph/connections/ad_accounts_spec.rb
|
565
593
|
- spec/fb_graph/connections/ad_campaign_stat_spec.rb
|
594
|
+
- spec/fb_graph/connections/ad_connection_objects_spec.rb
|
566
595
|
- spec/fb_graph/connections/ad_group_stat_spec.rb
|
567
596
|
- spec/fb_graph/connections/ad_groups_spec.rb
|
568
597
|
- spec/fb_graph/connections/admins_spec.rb
|
@@ -571,6 +600,7 @@ test_files:
|
|
571
600
|
- spec/fb_graph/connections/attending_spec.rb
|
572
601
|
- spec/fb_graph/connections/blocked_spec.rb
|
573
602
|
- spec/fb_graph/connections/books_spec.rb
|
603
|
+
- spec/fb_graph/connections/broad_targeting_categories_spec.rb
|
574
604
|
- spec/fb_graph/connections/checkins_spec.rb
|
575
605
|
- spec/fb_graph/connections/comments_spec.rb
|
576
606
|
- spec/fb_graph/connections/declined_spec.rb
|
@@ -596,6 +626,7 @@ test_files:
|
|
596
626
|
- spec/fb_graph/connections/messages_spec.rb
|
597
627
|
- spec/fb_graph/connections/movies_spec.rb
|
598
628
|
- spec/fb_graph/connections/music_spec.rb
|
629
|
+
- spec/fb_graph/connections/mutual_friends_spec.rb
|
599
630
|
- spec/fb_graph/connections/noreply_spec.rb
|
600
631
|
- spec/fb_graph/connections/notes_spec.rb
|
601
632
|
- spec/fb_graph/connections/outbox_spec.rb
|
@@ -617,6 +648,7 @@ test_files:
|
|
617
648
|
- spec/fb_graph/connections/television_spec.rb
|
618
649
|
- spec/fb_graph/connections/test_users_spec.rb
|
619
650
|
- spec/fb_graph/connections/threads_spec.rb
|
651
|
+
- spec/fb_graph/connections/user_achievements_spec.rb
|
620
652
|
- spec/fb_graph/connections/videos_spec.rb
|
621
653
|
- spec/fb_graph/debugger_spec.rb
|
622
654
|
- spec/fb_graph/doc_spec.rb
|
@@ -655,6 +687,7 @@ test_files:
|
|
655
687
|
- spec/fb_graph/targeting_spec.rb
|
656
688
|
- spec/fb_graph/test_user_spec.rb
|
657
689
|
- spec/fb_graph/thread_spec.rb
|
690
|
+
- spec/fb_graph/user_achievement_spec.rb
|
658
691
|
- spec/fb_graph/user_spec.rb
|
659
692
|
- spec/fb_graph/venue_spec.rb
|
660
693
|
- spec/fb_graph/video_spec.rb
|
@@ -662,8 +695,10 @@ test_files:
|
|
662
695
|
- spec/fb_graph_spec.rb
|
663
696
|
- spec/helpers/webmock_helper.rb
|
664
697
|
- spec/mock_json/ad_accounts/ad_campaign_stats/test_ad_campaign_stats.json
|
698
|
+
- spec/mock_json/ad_accounts/ad_connection_objects/test_connection_objects.json
|
665
699
|
- spec/mock_json/ad_accounts/ad_group_stats/test_ad_group_stats.json
|
666
700
|
- spec/mock_json/ad_accounts/ad_groups/post_with_valid_access_token.json
|
701
|
+
- spec/mock_json/ad_accounts/broad_targeting_categories/test_bct.json
|
667
702
|
- spec/mock_json/ad_accounts/reach_estimates/test_reach_estimates.json
|
668
703
|
- spec/mock_json/ad_accounts/test_ad_account.json
|
669
704
|
- spec/mock_json/ad_campaigns/ad_groups/22334455_ad_groups.json
|
@@ -675,6 +710,7 @@ test_files:
|
|
675
710
|
- spec/mock_json/albums/photos/matake_private.json
|
676
711
|
- spec/mock_json/albums/photos/post_with_valid_access_token.json
|
677
712
|
- spec/mock_json/applications/accounts/private.json
|
713
|
+
- spec/mock_json/applications/achievements/sample.json
|
678
714
|
- spec/mock_json/applications/feed/public.json
|
679
715
|
- spec/mock_json/applications/payments/sample.json
|
680
716
|
- spec/mock_json/applications/reviews/public.json
|
@@ -802,6 +838,7 @@ test_files:
|
|
802
838
|
- spec/mock_json/users/me_public.json
|
803
839
|
- spec/mock_json/users/movies/matake_private.json
|
804
840
|
- spec/mock_json/users/music/matake_private.json
|
841
|
+
- spec/mock_json/users/mutual_friends/me_and_agektmr.json
|
805
842
|
- spec/mock_json/users/notes/matake_private.json
|
806
843
|
- spec/mock_json/users/outbox/me_private.json
|
807
844
|
- spec/mock_json/users/permissions/me_private.json
|
@@ -813,6 +850,8 @@ test_files:
|
|
813
850
|
- spec/mock_json/users/tagged/arjun_public.json
|
814
851
|
- spec/mock_json/users/television/matake_private.json
|
815
852
|
- spec/mock_json/users/threads/me_private.json
|
853
|
+
- spec/mock_json/users/user_achievements/created.json
|
854
|
+
- spec/mock_json/users/user_achievements/sample.json
|
816
855
|
- spec/mock_json/users/videos/kirk_private.json
|
817
856
|
- spec/mock_json/users/videos/posted.json
|
818
857
|
- spec/mock_json/videos/private.json
|