fb_graph 2.2.6 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. data/Gemfile.lock +1 -1
  2. data/VERSION +1 -1
  3. data/lib/fb_graph/connections/accounts.rb +3 -3
  4. data/lib/fb_graph/connections/achievements.rb +2 -2
  5. data/lib/fb_graph/connections/activities.rb +3 -3
  6. data/lib/fb_graph/connections/ad_accounts.rb +3 -3
  7. data/lib/fb_graph/connections/ad_campaign_stats.rb +3 -3
  8. data/lib/fb_graph/connections/ad_campaigns.rb +6 -6
  9. data/lib/fb_graph/connections/ad_connection_objects.rb +3 -3
  10. data/lib/fb_graph/connections/ad_group_stats.rb +3 -3
  11. data/lib/fb_graph/connections/ad_groups.rb +6 -6
  12. data/lib/fb_graph/connections/ad_previews.rb +2 -2
  13. data/lib/fb_graph/connections/albums.rb +6 -6
  14. data/lib/fb_graph/connections/app_requests.rb +5 -5
  15. data/lib/fb_graph/connections/attending.rb +4 -4
  16. data/lib/fb_graph/connections/blocked.rb +1 -1
  17. data/lib/fb_graph/connections/books.rb +3 -3
  18. data/lib/fb_graph/connections/broad_targeting_categories.rb +3 -3
  19. data/lib/fb_graph/connections/checkins.rb +6 -6
  20. data/lib/fb_graph/connections/comments.rb +6 -6
  21. data/lib/fb_graph/connections/declined.rb +4 -4
  22. data/lib/fb_graph/connections/docs.rb +3 -3
  23. data/lib/fb_graph/connections/events.rb +6 -6
  24. data/lib/fb_graph/connections/family.rb +3 -3
  25. data/lib/fb_graph/connections/feed.rb +6 -6
  26. data/lib/fb_graph/connections/former_participants.rb +3 -3
  27. data/lib/fb_graph/connections/friend_lists.rb +5 -5
  28. data/lib/fb_graph/connections/friend_requests.rb +1 -1
  29. data/lib/fb_graph/connections/friends.rb +3 -3
  30. data/lib/fb_graph/connections/games.rb +3 -3
  31. data/lib/fb_graph/connections/groups.rb +3 -3
  32. data/lib/fb_graph/connections/home.rb +3 -3
  33. data/lib/fb_graph/connections/inbox.rb +5 -5
  34. data/lib/fb_graph/connections/insights.rb +7 -3
  35. data/lib/fb_graph/connections/interests.rb +3 -3
  36. data/lib/fb_graph/connections/invited.rb +3 -3
  37. data/lib/fb_graph/connections/likes.rb +5 -5
  38. data/lib/fb_graph/connections/links.rb +6 -6
  39. data/lib/fb_graph/connections/maybe.rb +4 -4
  40. data/lib/fb_graph/connections/members.rb +3 -3
  41. data/lib/fb_graph/connections/messages.rb +3 -3
  42. data/lib/fb_graph/connections/movies.rb +3 -3
  43. data/lib/fb_graph/connections/music.rb +3 -3
  44. data/lib/fb_graph/connections/mutual_friends.rb +6 -2
  45. data/lib/fb_graph/connections/noreply.rb +3 -3
  46. data/lib/fb_graph/connections/notes.rb +6 -6
  47. data/lib/fb_graph/connections/notifications.rb +14 -0
  48. data/lib/fb_graph/connections/outbox.rb +5 -5
  49. data/lib/fb_graph/connections/participants.rb +3 -3
  50. data/lib/fb_graph/connections/payments.rb +3 -3
  51. data/lib/fb_graph/connections/photos.rb +6 -6
  52. data/lib/fb_graph/connections/pokes.rb +2 -2
  53. data/lib/fb_graph/connections/posts.rb +3 -3
  54. data/lib/fb_graph/connections/question_options.rb +6 -6
  55. data/lib/fb_graph/connections/questions.rb +8 -0
  56. data/lib/fb_graph/connections/reach_estimates.rb +2 -2
  57. data/lib/fb_graph/connections/reviews.rb +3 -3
  58. data/lib/fb_graph/connections/senders.rb +3 -3
  59. data/lib/fb_graph/connections/statuses.rb +3 -3
  60. data/lib/fb_graph/connections/subscriptions.rb +4 -4
  61. data/lib/fb_graph/connections/tabs.rb +3 -3
  62. data/lib/fb_graph/connections/tagged.rb +3 -3
  63. data/lib/fb_graph/connections/tags.rb +3 -3
  64. data/lib/fb_graph/connections/television.rb +3 -3
  65. data/lib/fb_graph/connections/test_users.rb +4 -4
  66. data/lib/fb_graph/connections/threads.rb +3 -3
  67. data/lib/fb_graph/connections/user_achievements.rb +2 -2
  68. data/lib/fb_graph/connections/user_likes.rb +3 -3
  69. data/lib/fb_graph/connections/videos.rb +6 -6
  70. data/lib/fb_graph/connections/votes.rb +1 -1
  71. data/lib/fb_graph/node.rb +1 -2
  72. data/lib/fb_graph/notification.rb +32 -0
  73. data/lib/fb_graph/question.rb +3 -1
  74. data/lib/fb_graph/user.rb +1 -0
  75. data/lib/fb_graph.rb +1 -0
  76. data/spec/fb_graph/connections/notifications_spec.rb +16 -0
  77. data/spec/fb_graph/connections/question_options_spec.rb +1 -1
  78. data/spec/fb_graph/connections/questions_spec.rb +25 -5
  79. data/spec/fb_graph/connections/reach_estimates_spec.rb +3 -1
  80. data/spec/fb_graph/notification_spec.rb +59 -0
  81. data/spec/mock_json/users/notifications/all.json +407 -0
  82. data/spec/mock_json/users/questions/created.json +1 -0
  83. metadata +26 -16
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fb_graph
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.6
4
+ version: 2.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-23 00:00:00.000000000Z
12
+ date: 2012-01-25 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httpclient
16
- requirement: &70181080284940 !ruby/object:Gem::Requirement
16
+ requirement: &70111210190500 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.2.0.2
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70181080284940
24
+ version_requirements: *70111210190500
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rack-oauth2
27
- requirement: &70181080283820 !ruby/object:Gem::Requirement
27
+ requirement: &70111210190000 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.9.4
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70181080283820
35
+ version_requirements: *70111210190000
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
- requirement: &70181080283240 !ruby/object:Gem::Requirement
38
+ requirement: &70111210189500 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0.8'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70181080283240
46
+ version_requirements: *70111210189500
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: cover_me
49
- requirement: &70181080282560 !ruby/object:Gem::Requirement
49
+ requirement: &70111210188980 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.2.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70181080282560
57
+ version_requirements: *70111210188980
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rspec
60
- requirement: &70181080281640 !ruby/object:Gem::Requirement
60
+ requirement: &70111210188320 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '2'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70181080281640
68
+ version_requirements: *70111210188320
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: webmock
71
- requirement: &70181080280640 !ruby/object:Gem::Requirement
71
+ requirement: &70111210187720 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 1.6.2
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70181080280640
79
+ version_requirements: *70111210187720
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: actionpack
82
- requirement: &70181080279640 !ruby/object:Gem::Requirement
82
+ requirement: &70111210180600 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: 3.0.6
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70181080279640
90
+ version_requirements: *70111210180600
91
91
  description: A full-stack Facebook Graph API wrapper in Ruby.
92
92
  email: nov@matake.jp
93
93
  executables: []
@@ -181,6 +181,7 @@ files:
181
181
  - lib/fb_graph/connections/mutual_friends.rb
182
182
  - lib/fb_graph/connections/noreply.rb
183
183
  - lib/fb_graph/connections/notes.rb
184
+ - lib/fb_graph/connections/notifications.rb
184
185
  - lib/fb_graph/connections/outbox.rb
185
186
  - lib/fb_graph/connections/participants.rb
186
187
  - lib/fb_graph/connections/payments.rb
@@ -225,6 +226,7 @@ files:
225
226
  - lib/fb_graph/message.rb
226
227
  - lib/fb_graph/node.rb
227
228
  - lib/fb_graph/note.rb
229
+ - lib/fb_graph/notification.rb
228
230
  - lib/fb_graph/open_graph.rb
229
231
  - lib/fb_graph/open_graph/action.rb
230
232
  - lib/fb_graph/open_graph/application_context.rb
@@ -327,6 +329,7 @@ files:
327
329
  - spec/fb_graph/connections/mutual_friends_spec.rb
328
330
  - spec/fb_graph/connections/noreply_spec.rb
329
331
  - spec/fb_graph/connections/notes_spec.rb
332
+ - spec/fb_graph/connections/notifications_spec.rb
330
333
  - spec/fb_graph/connections/outbox_spec.rb
331
334
  - spec/fb_graph/connections/participants_spec.rb
332
335
  - spec/fb_graph/connections/payments_spec.rb
@@ -369,6 +372,7 @@ files:
369
372
  - spec/fb_graph/message_spec.rb
370
373
  - spec/fb_graph/node_spec.rb
371
374
  - spec/fb_graph/note_spec.rb
375
+ - spec/fb_graph/notification_spec.rb
372
376
  - spec/fb_graph/open_graph/action_spec.rb
373
377
  - spec/fb_graph/open_graph/application_context_spec.rb
374
378
  - spec/fb_graph/open_graph/object_spec.rb
@@ -567,11 +571,13 @@ files:
567
571
  - spec/mock_json/users/music/matake_private.json
568
572
  - spec/mock_json/users/mutual_friends/me_and_agektmr.json
569
573
  - spec/mock_json/users/notes/matake_private.json
574
+ - spec/mock_json/users/notifications/all.json
570
575
  - spec/mock_json/users/outbox/me_private.json
571
576
  - spec/mock_json/users/permissions/me_private.json
572
577
  - spec/mock_json/users/pokes/sample.json
573
578
  - spec/mock_json/users/posts/arjun_private.json
574
579
  - spec/mock_json/users/posts/arjun_public.json
580
+ - spec/mock_json/users/questions/created.json
575
581
  - spec/mock_json/users/questions/sample.json
576
582
  - spec/mock_json/users/scores/sample.json
577
583
  - spec/mock_json/users/statuses/arjun_private.json
@@ -676,6 +682,7 @@ test_files:
676
682
  - spec/fb_graph/connections/mutual_friends_spec.rb
677
683
  - spec/fb_graph/connections/noreply_spec.rb
678
684
  - spec/fb_graph/connections/notes_spec.rb
685
+ - spec/fb_graph/connections/notifications_spec.rb
679
686
  - spec/fb_graph/connections/outbox_spec.rb
680
687
  - spec/fb_graph/connections/participants_spec.rb
681
688
  - spec/fb_graph/connections/payments_spec.rb
@@ -718,6 +725,7 @@ test_files:
718
725
  - spec/fb_graph/message_spec.rb
719
726
  - spec/fb_graph/node_spec.rb
720
727
  - spec/fb_graph/note_spec.rb
728
+ - spec/fb_graph/notification_spec.rb
721
729
  - spec/fb_graph/open_graph/action_spec.rb
722
730
  - spec/fb_graph/open_graph/application_context_spec.rb
723
731
  - spec/fb_graph/open_graph/object_spec.rb
@@ -916,11 +924,13 @@ test_files:
916
924
  - spec/mock_json/users/music/matake_private.json
917
925
  - spec/mock_json/users/mutual_friends/me_and_agektmr.json
918
926
  - spec/mock_json/users/notes/matake_private.json
927
+ - spec/mock_json/users/notifications/all.json
919
928
  - spec/mock_json/users/outbox/me_private.json
920
929
  - spec/mock_json/users/permissions/me_private.json
921
930
  - spec/mock_json/users/pokes/sample.json
922
931
  - spec/mock_json/users/posts/arjun_private.json
923
932
  - spec/mock_json/users/posts/arjun_public.json
933
+ - spec/mock_json/users/questions/created.json
924
934
  - spec/mock_json/users/questions/sample.json
925
935
  - spec/mock_json/users/scores/sample.json
926
936
  - spec/mock_json/users/statuses/arjun_private.json