fb_graph 1.1.7 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.7
1
+ 1.2.0
data/fb_graph.gemspec CHANGED
@@ -1,11 +1,11 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fb_graph}
8
- s.version = "1.1.7"
8
+ s.version = "1.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["nov matake"]
@@ -14,297 +14,298 @@ Gem::Specification.new do |s|
14
14
  s.email = %q{nov@matake.jp}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.rdoc"
17
+ "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
- ".gitignore",
22
- "LICENSE",
23
- "README.rdoc",
24
- "Rakefile",
25
- "VERSION",
26
- "assets/fb_graph.ai",
27
- "assets/fb_graph.png",
28
- "fb_graph.gemspec",
29
- "lib/fb_graph.rb",
30
- "lib/fb_graph/album.rb",
31
- "lib/fb_graph/application.rb",
32
- "lib/fb_graph/auth.rb",
33
- "lib/fb_graph/auth/cookie.rb",
34
- "lib/fb_graph/checkin.rb",
35
- "lib/fb_graph/collection.rb",
36
- "lib/fb_graph/comment.rb",
37
- "lib/fb_graph/comparison.rb",
38
- "lib/fb_graph/connection.rb",
39
- "lib/fb_graph/connections.rb",
40
- "lib/fb_graph/connections/accounts.rb",
41
- "lib/fb_graph/connections/activities.rb",
42
- "lib/fb_graph/connections/albums.rb",
43
- "lib/fb_graph/connections/attending.rb",
44
- "lib/fb_graph/connections/books.rb",
45
- "lib/fb_graph/connections/checkins.rb",
46
- "lib/fb_graph/connections/comments.rb",
47
- "lib/fb_graph/connections/declined.rb",
48
- "lib/fb_graph/connections/events.rb",
49
- "lib/fb_graph/connections/feed.rb",
50
- "lib/fb_graph/connections/friend_lists.rb",
51
- "lib/fb_graph/connections/friends.rb",
52
- "lib/fb_graph/connections/groups.rb",
53
- "lib/fb_graph/connections/home.rb",
54
- "lib/fb_graph/connections/insights.rb",
55
- "lib/fb_graph/connections/interests.rb",
56
- "lib/fb_graph/connections/invited.rb",
57
- "lib/fb_graph/connections/likes.rb",
58
- "lib/fb_graph/connections/links.rb",
59
- "lib/fb_graph/connections/maybe.rb",
60
- "lib/fb_graph/connections/members.rb",
61
- "lib/fb_graph/connections/movies.rb",
62
- "lib/fb_graph/connections/music.rb",
63
- "lib/fb_graph/connections/noreply.rb",
64
- "lib/fb_graph/connections/notes.rb",
65
- "lib/fb_graph/connections/photos.rb",
66
- "lib/fb_graph/connections/picture.rb",
67
- "lib/fb_graph/connections/posts.rb",
68
- "lib/fb_graph/connections/statuses.rb",
69
- "lib/fb_graph/connections/subscriptions.rb",
70
- "lib/fb_graph/connections/tagged.rb",
71
- "lib/fb_graph/connections/television.rb",
72
- "lib/fb_graph/connections/videos.rb",
73
- "lib/fb_graph/education.rb",
74
- "lib/fb_graph/event.rb",
75
- "lib/fb_graph/friend_list.rb",
76
- "lib/fb_graph/group.rb",
77
- "lib/fb_graph/insight.rb",
78
- "lib/fb_graph/link.rb",
79
- "lib/fb_graph/node.rb",
80
- "lib/fb_graph/note.rb",
81
- "lib/fb_graph/page.rb",
82
- "lib/fb_graph/photo.rb",
83
- "lib/fb_graph/post.rb",
84
- "lib/fb_graph/searchable.rb",
85
- "lib/fb_graph/searchable/result.rb",
86
- "lib/fb_graph/status.rb",
87
- "lib/fb_graph/subscription.rb",
88
- "lib/fb_graph/tag.rb",
89
- "lib/fb_graph/user.rb",
90
- "lib/fb_graph/venue.rb",
91
- "lib/fb_graph/video.rb",
92
- "lib/fb_graph/work.rb",
93
- "spec/fake_json/albums/photos/matake_private.json",
94
- "spec/fake_json/albums/photos/post_with_valid_access_token.json",
95
- "spec/fake_json/applications/subscriptions/fb_graph_private.json",
96
- "spec/fake_json/checkins/search_private.json",
97
- "spec/fake_json/checkins/search_public.json",
98
- "spec/fake_json/events/attending/post_with_valid_access_token.json",
99
- "spec/fake_json/events/attending/smartday_private.json",
100
- "spec/fake_json/events/declined/post_with_valid_access_token.json",
101
- "spec/fake_json/events/declined/smartday_private.json",
102
- "spec/fake_json/events/invited/smartday_private.json",
103
- "spec/fake_json/events/maybe/post_with_valid_access_token.json",
104
- "spec/fake_json/events/maybe/smartday_private.json",
105
- "spec/fake_json/events/noreply/smartday_private.json",
106
- "spec/fake_json/groups/members/emacs_private.json",
107
- "spec/fake_json/pages/checkins/gowalla_private.json",
108
- "spec/fake_json/pages/checkins/gowalla_public.json",
109
- "spec/fake_json/pages/insights/FbGraph_private.json",
110
- "spec/fake_json/pages/insights/FbGraph_public.json",
111
- "spec/fake_json/pages/insights/page_like_adds/FbGraph_private.json",
112
- "spec/fake_json/pages/insights/page_like_adds/day/FbGraph_private.json",
113
- "spec/fake_json/pages/notes/post_with_valid_access_token.json",
114
- "spec/fake_json/pages/platform_private.json",
115
- "spec/fake_json/pages/platform_public.json",
116
- "spec/fake_json/pages/statuses/platform_private.json",
117
- "spec/fake_json/pages/statuses/platform_public.json",
118
- "spec/fake_json/posts/comments/post_with_invalid_access_token.json",
119
- "spec/fake_json/posts/comments/post_with_valid_access_token.json",
120
- "spec/fake_json/posts/comments/post_without_access_token.json",
121
- "spec/fake_json/posts/likes/post_with_invalid_access_token.json",
122
- "spec/fake_json/posts/likes/post_with_valid_access_token.json",
123
- "spec/fake_json/posts/likes/post_without_access_token.json",
124
- "spec/fake_json/posts/platform_private.json",
125
- "spec/fake_json/posts/platform_public.json",
126
- "spec/fake_json/statuses/with_likes.json",
127
- "spec/fake_json/users/accounts/matake_private.json",
128
- "spec/fake_json/users/accounts/matake_private_with_manage_pages_permission.json",
129
- "spec/fake_json/users/accounts/matake_public.json",
130
- "spec/fake_json/users/activities/arjun_private.json",
131
- "spec/fake_json/users/activities/arjun_public.json",
132
- "spec/fake_json/users/albums/matake_private.json",
133
- "spec/fake_json/users/albums/matake_public.json",
134
- "spec/fake_json/users/albums/post_with_valid_access_token.json",
135
- "spec/fake_json/users/arjun_private.json",
136
- "spec/fake_json/users/arjun_public.json",
137
- "spec/fake_json/users/books/matake_private.json",
138
- "spec/fake_json/users/books/matake_public.json",
139
- "spec/fake_json/users/checkins/mattt_private.json",
140
- "spec/fake_json/users/checkins/mattt_public.json",
141
- "spec/fake_json/users/events/matake_private.json",
142
- "spec/fake_json/users/events/matake_public.json",
143
- "spec/fake_json/users/events/post_with_valid_access_token.json",
144
- "spec/fake_json/users/feed/arjun_private.json",
145
- "spec/fake_json/users/feed/arjun_public.json",
146
- "spec/fake_json/users/feed/post_with_invalid_access_token.json",
147
- "spec/fake_json/users/feed/post_with_valid_access_token.json",
148
- "spec/fake_json/users/feed/post_without_access_token.json",
149
- "spec/fake_json/users/friend_lists/matake.json",
150
- "spec/fake_json/users/friends/arjun_private.json",
151
- "spec/fake_json/users/friends/arjun_public.json",
152
- "spec/fake_json/users/friends/me_private.json",
153
- "spec/fake_json/users/friends/me_public.json",
154
- "spec/fake_json/users/groups/matake_private.json",
155
- "spec/fake_json/users/groups/matake_public.json",
156
- "spec/fake_json/users/home/arjun_private.json",
157
- "spec/fake_json/users/home/arjun_public.json",
158
- "spec/fake_json/users/home/me_private.json",
159
- "spec/fake_json/users/home/me_private_next.json",
160
- "spec/fake_json/users/home/me_private_previous.json",
161
- "spec/fake_json/users/home/me_public.json",
162
- "spec/fake_json/users/interests/matake_private.json",
163
- "spec/fake_json/users/likes/arjun_private.json",
164
- "spec/fake_json/users/likes/arjun_public.json",
165
- "spec/fake_json/users/links/matake_private.json",
166
- "spec/fake_json/users/links/post_with_valid_access_token.json",
167
- "spec/fake_json/users/me_private.json",
168
- "spec/fake_json/users/me_public.json",
169
- "spec/fake_json/users/movies/matake_private.json",
170
- "spec/fake_json/users/music/matake_private.json",
171
- "spec/fake_json/users/notes/matake_private.json",
172
- "spec/fake_json/users/posts/arjun_private.json",
173
- "spec/fake_json/users/posts/arjun_public.json",
174
- "spec/fake_json/users/statuses/arjun_private.json",
175
- "spec/fake_json/users/statuses/arjun_public.json",
176
- "spec/fake_json/users/tagged/arjun_private.json",
177
- "spec/fake_json/users/tagged/arjun_public.json",
178
- "spec/fake_json/users/television/matake_private.json",
179
- "spec/fake_json/users/videos/kirk_private.json",
180
- "spec/fb_graph/album_spec.rb",
181
- "spec/fb_graph/application_spec.rb",
182
- "spec/fb_graph/auth_spec.rb",
183
- "spec/fb_graph/checkin_spec.rb",
184
- "spec/fb_graph/collection_spec.rb",
185
- "spec/fb_graph/comment_spec.rb",
186
- "spec/fb_graph/connection_spec.rb",
187
- "spec/fb_graph/connections/accounts_spec.rb",
188
- "spec/fb_graph/connections/activities_spec.rb",
189
- "spec/fb_graph/connections/albums_spec.rb",
190
- "spec/fb_graph/connections/attending_spec.rb",
191
- "spec/fb_graph/connections/books_spec.rb",
192
- "spec/fb_graph/connections/checkins_spec.rb",
193
- "spec/fb_graph/connections/comments_spec.rb",
194
- "spec/fb_graph/connections/declined_spec.rb",
195
- "spec/fb_graph/connections/events_spec.rb",
196
- "spec/fb_graph/connections/feed_spec.rb",
197
- "spec/fb_graph/connections/friend_lists_spec.rb",
198
- "spec/fb_graph/connections/friends_spec.rb",
199
- "spec/fb_graph/connections/groups_spec.rb",
200
- "spec/fb_graph/connections/home_spec.rb",
201
- "spec/fb_graph/connections/insights_spec.rb",
202
- "spec/fb_graph/connections/interests_spec.rb",
203
- "spec/fb_graph/connections/invited_spec.rb",
204
- "spec/fb_graph/connections/likes_spec.rb",
205
- "spec/fb_graph/connections/links_spec.rb",
206
- "spec/fb_graph/connections/maybe_spec.rb",
207
- "spec/fb_graph/connections/members_spec.rb",
208
- "spec/fb_graph/connections/movies_spec.rb",
209
- "spec/fb_graph/connections/music_spec.rb",
210
- "spec/fb_graph/connections/noreply_spec.rb",
211
- "spec/fb_graph/connections/notes_spec.rb",
212
- "spec/fb_graph/connections/photos_spec.rb",
213
- "spec/fb_graph/connections/picture_spec.rb",
214
- "spec/fb_graph/connections/posts_spec.rb",
215
- "spec/fb_graph/connections/statuses_spec.rb",
216
- "spec/fb_graph/connections/subscriptions_spec.rb",
217
- "spec/fb_graph/connections/tagged_spec.rb",
218
- "spec/fb_graph/connections/television_spec.rb",
219
- "spec/fb_graph/connections/videos_spec.rb",
220
- "spec/fb_graph/education_spec.rb",
221
- "spec/fb_graph/event_spec.rb",
222
- "spec/fb_graph/friend_list_spec.rb",
223
- "spec/fb_graph/group_spec.rb",
224
- "spec/fb_graph/insight_spec.rb",
225
- "spec/fb_graph/link_spec.rb",
226
- "spec/fb_graph/node_spec.rb",
227
- "spec/fb_graph/note_spec.rb",
228
- "spec/fb_graph/page_spec.rb",
229
- "spec/fb_graph/photo_spec.rb",
230
- "spec/fb_graph/post_spec.rb",
231
- "spec/fb_graph/status_spec.rb",
232
- "spec/fb_graph/subscription_spec.rb",
233
- "spec/fb_graph/tag_spec.rb",
234
- "spec/fb_graph/user_spec.rb",
235
- "spec/fb_graph/venue_spec.rb",
236
- "spec/fb_graph/video_spec.rb",
237
- "spec/fb_graph/work_spec.rb",
238
- "spec/helpers/fake_json_helper.rb",
239
- "spec/spec.opts",
240
- "spec/spec_helper.rb"
21
+ "LICENSE",
22
+ "README.rdoc",
23
+ "Rakefile",
24
+ "VERSION",
25
+ "assets/fb_graph.ai",
26
+ "assets/fb_graph.png",
27
+ "fb_graph.gemspec",
28
+ "lib/fb_graph.rb",
29
+ "lib/fb_graph/album.rb",
30
+ "lib/fb_graph/application.rb",
31
+ "lib/fb_graph/auth.rb",
32
+ "lib/fb_graph/auth/cookie.rb",
33
+ "lib/fb_graph/checkin.rb",
34
+ "lib/fb_graph/collection.rb",
35
+ "lib/fb_graph/comment.rb",
36
+ "lib/fb_graph/comparison.rb",
37
+ "lib/fb_graph/connection.rb",
38
+ "lib/fb_graph/connections.rb",
39
+ "lib/fb_graph/connections/accounts.rb",
40
+ "lib/fb_graph/connections/activities.rb",
41
+ "lib/fb_graph/connections/albums.rb",
42
+ "lib/fb_graph/connections/attending.rb",
43
+ "lib/fb_graph/connections/books.rb",
44
+ "lib/fb_graph/connections/checkins.rb",
45
+ "lib/fb_graph/connections/comments.rb",
46
+ "lib/fb_graph/connections/declined.rb",
47
+ "lib/fb_graph/connections/events.rb",
48
+ "lib/fb_graph/connections/feed.rb",
49
+ "lib/fb_graph/connections/friend_lists.rb",
50
+ "lib/fb_graph/connections/friends.rb",
51
+ "lib/fb_graph/connections/groups.rb",
52
+ "lib/fb_graph/connections/home.rb",
53
+ "lib/fb_graph/connections/insights.rb",
54
+ "lib/fb_graph/connections/interests.rb",
55
+ "lib/fb_graph/connections/invited.rb",
56
+ "lib/fb_graph/connections/likes.rb",
57
+ "lib/fb_graph/connections/links.rb",
58
+ "lib/fb_graph/connections/maybe.rb",
59
+ "lib/fb_graph/connections/members.rb",
60
+ "lib/fb_graph/connections/movies.rb",
61
+ "lib/fb_graph/connections/music.rb",
62
+ "lib/fb_graph/connections/noreply.rb",
63
+ "lib/fb_graph/connections/notes.rb",
64
+ "lib/fb_graph/connections/photos.rb",
65
+ "lib/fb_graph/connections/picture.rb",
66
+ "lib/fb_graph/connections/posts.rb",
67
+ "lib/fb_graph/connections/statuses.rb",
68
+ "lib/fb_graph/connections/subscriptions.rb",
69
+ "lib/fb_graph/connections/tagged.rb",
70
+ "lib/fb_graph/connections/television.rb",
71
+ "lib/fb_graph/connections/test_users.rb",
72
+ "lib/fb_graph/connections/videos.rb",
73
+ "lib/fb_graph/education.rb",
74
+ "lib/fb_graph/event.rb",
75
+ "lib/fb_graph/friend_list.rb",
76
+ "lib/fb_graph/group.rb",
77
+ "lib/fb_graph/insight.rb",
78
+ "lib/fb_graph/link.rb",
79
+ "lib/fb_graph/node.rb",
80
+ "lib/fb_graph/note.rb",
81
+ "lib/fb_graph/page.rb",
82
+ "lib/fb_graph/photo.rb",
83
+ "lib/fb_graph/post.rb",
84
+ "lib/fb_graph/query.rb",
85
+ "lib/fb_graph/searchable.rb",
86
+ "lib/fb_graph/searchable/result.rb",
87
+ "lib/fb_graph/status.rb",
88
+ "lib/fb_graph/subscription.rb",
89
+ "lib/fb_graph/tag.rb",
90
+ "lib/fb_graph/test_user.rb",
91
+ "lib/fb_graph/user.rb",
92
+ "lib/fb_graph/venue.rb",
93
+ "lib/fb_graph/video.rb",
94
+ "lib/fb_graph/work.rb",
95
+ "spec/fake_json/albums/photos/matake_private.json",
96
+ "spec/fake_json/albums/photos/post_with_valid_access_token.json",
97
+ "spec/fake_json/applications/subscriptions/fb_graph_private.json",
98
+ "spec/fake_json/checkins/search_private.json",
99
+ "spec/fake_json/checkins/search_public.json",
100
+ "spec/fake_json/events/attending/post_with_valid_access_token.json",
101
+ "spec/fake_json/events/attending/smartday_private.json",
102
+ "spec/fake_json/events/declined/post_with_valid_access_token.json",
103
+ "spec/fake_json/events/declined/smartday_private.json",
104
+ "spec/fake_json/events/invited/smartday_private.json",
105
+ "spec/fake_json/events/maybe/post_with_valid_access_token.json",
106
+ "spec/fake_json/events/maybe/smartday_private.json",
107
+ "spec/fake_json/events/noreply/smartday_private.json",
108
+ "spec/fake_json/groups/members/emacs_private.json",
109
+ "spec/fake_json/pages/checkins/gowalla_private.json",
110
+ "spec/fake_json/pages/checkins/gowalla_public.json",
111
+ "spec/fake_json/pages/insights/FbGraph_private.json",
112
+ "spec/fake_json/pages/insights/FbGraph_public.json",
113
+ "spec/fake_json/pages/insights/page_like_adds/FbGraph_private.json",
114
+ "spec/fake_json/pages/insights/page_like_adds/day/FbGraph_private.json",
115
+ "spec/fake_json/pages/notes/post_with_valid_access_token.json",
116
+ "spec/fake_json/pages/platform_private.json",
117
+ "spec/fake_json/pages/platform_public.json",
118
+ "spec/fake_json/pages/statuses/platform_private.json",
119
+ "spec/fake_json/pages/statuses/platform_public.json",
120
+ "spec/fake_json/posts/comments/post_with_invalid_access_token.json",
121
+ "spec/fake_json/posts/comments/post_with_valid_access_token.json",
122
+ "spec/fake_json/posts/comments/post_without_access_token.json",
123
+ "spec/fake_json/posts/likes/post_with_invalid_access_token.json",
124
+ "spec/fake_json/posts/likes/post_with_valid_access_token.json",
125
+ "spec/fake_json/posts/likes/post_without_access_token.json",
126
+ "spec/fake_json/posts/platform_private.json",
127
+ "spec/fake_json/posts/platform_public.json",
128
+ "spec/fake_json/statuses/with_likes.json",
129
+ "spec/fake_json/users/accounts/matake_private.json",
130
+ "spec/fake_json/users/accounts/matake_private_with_manage_pages_permission.json",
131
+ "spec/fake_json/users/accounts/matake_public.json",
132
+ "spec/fake_json/users/activities/arjun_private.json",
133
+ "spec/fake_json/users/activities/arjun_public.json",
134
+ "spec/fake_json/users/albums/matake_private.json",
135
+ "spec/fake_json/users/albums/matake_public.json",
136
+ "spec/fake_json/users/albums/post_with_valid_access_token.json",
137
+ "spec/fake_json/users/arjun_private.json",
138
+ "spec/fake_json/users/arjun_public.json",
139
+ "spec/fake_json/users/books/matake_private.json",
140
+ "spec/fake_json/users/books/matake_public.json",
141
+ "spec/fake_json/users/checkins/mattt_private.json",
142
+ "spec/fake_json/users/checkins/mattt_public.json",
143
+ "spec/fake_json/users/events/matake_private.json",
144
+ "spec/fake_json/users/events/matake_public.json",
145
+ "spec/fake_json/users/events/post_with_valid_access_token.json",
146
+ "spec/fake_json/users/feed/arjun_private.json",
147
+ "spec/fake_json/users/feed/arjun_public.json",
148
+ "spec/fake_json/users/feed/post_with_invalid_access_token.json",
149
+ "spec/fake_json/users/feed/post_with_valid_access_token.json",
150
+ "spec/fake_json/users/feed/post_without_access_token.json",
151
+ "spec/fake_json/users/friend_lists/matake.json",
152
+ "spec/fake_json/users/friends/arjun_private.json",
153
+ "spec/fake_json/users/friends/arjun_public.json",
154
+ "spec/fake_json/users/friends/me_private.json",
155
+ "spec/fake_json/users/friends/me_public.json",
156
+ "spec/fake_json/users/groups/matake_private.json",
157
+ "spec/fake_json/users/groups/matake_public.json",
158
+ "spec/fake_json/users/home/arjun_private.json",
159
+ "spec/fake_json/users/home/arjun_public.json",
160
+ "spec/fake_json/users/home/me_private.json",
161
+ "spec/fake_json/users/home/me_private_next.json",
162
+ "spec/fake_json/users/home/me_private_previous.json",
163
+ "spec/fake_json/users/home/me_public.json",
164
+ "spec/fake_json/users/interests/matake_private.json",
165
+ "spec/fake_json/users/likes/arjun_private.json",
166
+ "spec/fake_json/users/likes/arjun_public.json",
167
+ "spec/fake_json/users/links/matake_private.json",
168
+ "spec/fake_json/users/links/post_with_valid_access_token.json",
169
+ "spec/fake_json/users/me_private.json",
170
+ "spec/fake_json/users/me_public.json",
171
+ "spec/fake_json/users/movies/matake_private.json",
172
+ "spec/fake_json/users/music/matake_private.json",
173
+ "spec/fake_json/users/notes/matake_private.json",
174
+ "spec/fake_json/users/posts/arjun_private.json",
175
+ "spec/fake_json/users/posts/arjun_public.json",
176
+ "spec/fake_json/users/statuses/arjun_private.json",
177
+ "spec/fake_json/users/statuses/arjun_public.json",
178
+ "spec/fake_json/users/tagged/arjun_private.json",
179
+ "spec/fake_json/users/tagged/arjun_public.json",
180
+ "spec/fake_json/users/television/matake_private.json",
181
+ "spec/fake_json/users/videos/kirk_private.json",
182
+ "spec/fb_graph/album_spec.rb",
183
+ "spec/fb_graph/application_spec.rb",
184
+ "spec/fb_graph/auth_spec.rb",
185
+ "spec/fb_graph/checkin_spec.rb",
186
+ "spec/fb_graph/collection_spec.rb",
187
+ "spec/fb_graph/comment_spec.rb",
188
+ "spec/fb_graph/connection_spec.rb",
189
+ "spec/fb_graph/connections/accounts_spec.rb",
190
+ "spec/fb_graph/connections/activities_spec.rb",
191
+ "spec/fb_graph/connections/albums_spec.rb",
192
+ "spec/fb_graph/connections/attending_spec.rb",
193
+ "spec/fb_graph/connections/books_spec.rb",
194
+ "spec/fb_graph/connections/checkins_spec.rb",
195
+ "spec/fb_graph/connections/comments_spec.rb",
196
+ "spec/fb_graph/connections/declined_spec.rb",
197
+ "spec/fb_graph/connections/events_spec.rb",
198
+ "spec/fb_graph/connections/feed_spec.rb",
199
+ "spec/fb_graph/connections/friend_lists_spec.rb",
200
+ "spec/fb_graph/connections/friends_spec.rb",
201
+ "spec/fb_graph/connections/groups_spec.rb",
202
+ "spec/fb_graph/connections/home_spec.rb",
203
+ "spec/fb_graph/connections/insights_spec.rb",
204
+ "spec/fb_graph/connections/interests_spec.rb",
205
+ "spec/fb_graph/connections/invited_spec.rb",
206
+ "spec/fb_graph/connections/likes_spec.rb",
207
+ "spec/fb_graph/connections/links_spec.rb",
208
+ "spec/fb_graph/connections/maybe_spec.rb",
209
+ "spec/fb_graph/connections/members_spec.rb",
210
+ "spec/fb_graph/connections/movies_spec.rb",
211
+ "spec/fb_graph/connections/music_spec.rb",
212
+ "spec/fb_graph/connections/noreply_spec.rb",
213
+ "spec/fb_graph/connections/notes_spec.rb",
214
+ "spec/fb_graph/connections/photos_spec.rb",
215
+ "spec/fb_graph/connections/picture_spec.rb",
216
+ "spec/fb_graph/connections/posts_spec.rb",
217
+ "spec/fb_graph/connections/statuses_spec.rb",
218
+ "spec/fb_graph/connections/subscriptions_spec.rb",
219
+ "spec/fb_graph/connections/tagged_spec.rb",
220
+ "spec/fb_graph/connections/television_spec.rb",
221
+ "spec/fb_graph/connections/videos_spec.rb",
222
+ "spec/fb_graph/education_spec.rb",
223
+ "spec/fb_graph/event_spec.rb",
224
+ "spec/fb_graph/friend_list_spec.rb",
225
+ "spec/fb_graph/group_spec.rb",
226
+ "spec/fb_graph/insight_spec.rb",
227
+ "spec/fb_graph/link_spec.rb",
228
+ "spec/fb_graph/node_spec.rb",
229
+ "spec/fb_graph/note_spec.rb",
230
+ "spec/fb_graph/page_spec.rb",
231
+ "spec/fb_graph/photo_spec.rb",
232
+ "spec/fb_graph/post_spec.rb",
233
+ "spec/fb_graph/status_spec.rb",
234
+ "spec/fb_graph/subscription_spec.rb",
235
+ "spec/fb_graph/tag_spec.rb",
236
+ "spec/fb_graph/user_spec.rb",
237
+ "spec/fb_graph/venue_spec.rb",
238
+ "spec/fb_graph/video_spec.rb",
239
+ "spec/fb_graph/work_spec.rb",
240
+ "spec/helpers/fake_json_helper.rb",
241
+ "spec/spec.opts",
242
+ "spec/spec_helper.rb"
241
243
  ]
242
244
  s.homepage = %q{http://github.com/nov/fb_graph}
243
- s.rdoc_options = ["--charset=UTF-8"]
244
245
  s.require_paths = ["lib"]
245
246
  s.rubygems_version = %q{1.3.7}
246
247
  s.summary = %q{A full-stack Facebook Graph API wrapper in Ruby.}
247
248
  s.test_files = [
248
249
  "spec/fb_graph/album_spec.rb",
249
- "spec/fb_graph/application_spec.rb",
250
- "spec/fb_graph/auth_spec.rb",
251
- "spec/fb_graph/checkin_spec.rb",
252
- "spec/fb_graph/collection_spec.rb",
253
- "spec/fb_graph/comment_spec.rb",
254
- "spec/fb_graph/connection_spec.rb",
255
- "spec/fb_graph/connections/accounts_spec.rb",
256
- "spec/fb_graph/connections/activities_spec.rb",
257
- "spec/fb_graph/connections/albums_spec.rb",
258
- "spec/fb_graph/connections/attending_spec.rb",
259
- "spec/fb_graph/connections/books_spec.rb",
260
- "spec/fb_graph/connections/checkins_spec.rb",
261
- "spec/fb_graph/connections/comments_spec.rb",
262
- "spec/fb_graph/connections/declined_spec.rb",
263
- "spec/fb_graph/connections/events_spec.rb",
264
- "spec/fb_graph/connections/feed_spec.rb",
265
- "spec/fb_graph/connections/friend_lists_spec.rb",
266
- "spec/fb_graph/connections/friends_spec.rb",
267
- "spec/fb_graph/connections/groups_spec.rb",
268
- "spec/fb_graph/connections/home_spec.rb",
269
- "spec/fb_graph/connections/insights_spec.rb",
270
- "spec/fb_graph/connections/interests_spec.rb",
271
- "spec/fb_graph/connections/invited_spec.rb",
272
- "spec/fb_graph/connections/likes_spec.rb",
273
- "spec/fb_graph/connections/links_spec.rb",
274
- "spec/fb_graph/connections/maybe_spec.rb",
275
- "spec/fb_graph/connections/members_spec.rb",
276
- "spec/fb_graph/connections/movies_spec.rb",
277
- "spec/fb_graph/connections/music_spec.rb",
278
- "spec/fb_graph/connections/noreply_spec.rb",
279
- "spec/fb_graph/connections/notes_spec.rb",
280
- "spec/fb_graph/connections/photos_spec.rb",
281
- "spec/fb_graph/connections/picture_spec.rb",
282
- "spec/fb_graph/connections/posts_spec.rb",
283
- "spec/fb_graph/connections/statuses_spec.rb",
284
- "spec/fb_graph/connections/subscriptions_spec.rb",
285
- "spec/fb_graph/connections/tagged_spec.rb",
286
- "spec/fb_graph/connections/television_spec.rb",
287
- "spec/fb_graph/connections/videos_spec.rb",
288
- "spec/fb_graph/education_spec.rb",
289
- "spec/fb_graph/event_spec.rb",
290
- "spec/fb_graph/friend_list_spec.rb",
291
- "spec/fb_graph/group_spec.rb",
292
- "spec/fb_graph/insight_spec.rb",
293
- "spec/fb_graph/link_spec.rb",
294
- "spec/fb_graph/node_spec.rb",
295
- "spec/fb_graph/note_spec.rb",
296
- "spec/fb_graph/page_spec.rb",
297
- "spec/fb_graph/photo_spec.rb",
298
- "spec/fb_graph/post_spec.rb",
299
- "spec/fb_graph/status_spec.rb",
300
- "spec/fb_graph/subscription_spec.rb",
301
- "spec/fb_graph/tag_spec.rb",
302
- "spec/fb_graph/user_spec.rb",
303
- "spec/fb_graph/venue_spec.rb",
304
- "spec/fb_graph/video_spec.rb",
305
- "spec/fb_graph/work_spec.rb",
306
- "spec/helpers/fake_json_helper.rb",
307
- "spec/spec_helper.rb"
250
+ "spec/fb_graph/application_spec.rb",
251
+ "spec/fb_graph/auth_spec.rb",
252
+ "spec/fb_graph/checkin_spec.rb",
253
+ "spec/fb_graph/collection_spec.rb",
254
+ "spec/fb_graph/comment_spec.rb",
255
+ "spec/fb_graph/connection_spec.rb",
256
+ "spec/fb_graph/connections/accounts_spec.rb",
257
+ "spec/fb_graph/connections/activities_spec.rb",
258
+ "spec/fb_graph/connections/albums_spec.rb",
259
+ "spec/fb_graph/connections/attending_spec.rb",
260
+ "spec/fb_graph/connections/books_spec.rb",
261
+ "spec/fb_graph/connections/checkins_spec.rb",
262
+ "spec/fb_graph/connections/comments_spec.rb",
263
+ "spec/fb_graph/connections/declined_spec.rb",
264
+ "spec/fb_graph/connections/events_spec.rb",
265
+ "spec/fb_graph/connections/feed_spec.rb",
266
+ "spec/fb_graph/connections/friend_lists_spec.rb",
267
+ "spec/fb_graph/connections/friends_spec.rb",
268
+ "spec/fb_graph/connections/groups_spec.rb",
269
+ "spec/fb_graph/connections/home_spec.rb",
270
+ "spec/fb_graph/connections/insights_spec.rb",
271
+ "spec/fb_graph/connections/interests_spec.rb",
272
+ "spec/fb_graph/connections/invited_spec.rb",
273
+ "spec/fb_graph/connections/likes_spec.rb",
274
+ "spec/fb_graph/connections/links_spec.rb",
275
+ "spec/fb_graph/connections/maybe_spec.rb",
276
+ "spec/fb_graph/connections/members_spec.rb",
277
+ "spec/fb_graph/connections/movies_spec.rb",
278
+ "spec/fb_graph/connections/music_spec.rb",
279
+ "spec/fb_graph/connections/noreply_spec.rb",
280
+ "spec/fb_graph/connections/notes_spec.rb",
281
+ "spec/fb_graph/connections/photos_spec.rb",
282
+ "spec/fb_graph/connections/picture_spec.rb",
283
+ "spec/fb_graph/connections/posts_spec.rb",
284
+ "spec/fb_graph/connections/statuses_spec.rb",
285
+ "spec/fb_graph/connections/subscriptions_spec.rb",
286
+ "spec/fb_graph/connections/tagged_spec.rb",
287
+ "spec/fb_graph/connections/television_spec.rb",
288
+ "spec/fb_graph/connections/videos_spec.rb",
289
+ "spec/fb_graph/education_spec.rb",
290
+ "spec/fb_graph/event_spec.rb",
291
+ "spec/fb_graph/friend_list_spec.rb",
292
+ "spec/fb_graph/group_spec.rb",
293
+ "spec/fb_graph/insight_spec.rb",
294
+ "spec/fb_graph/link_spec.rb",
295
+ "spec/fb_graph/node_spec.rb",
296
+ "spec/fb_graph/note_spec.rb",
297
+ "spec/fb_graph/page_spec.rb",
298
+ "spec/fb_graph/photo_spec.rb",
299
+ "spec/fb_graph/post_spec.rb",
300
+ "spec/fb_graph/status_spec.rb",
301
+ "spec/fb_graph/subscription_spec.rb",
302
+ "spec/fb_graph/tag_spec.rb",
303
+ "spec/fb_graph/user_spec.rb",
304
+ "spec/fb_graph/venue_spec.rb",
305
+ "spec/fb_graph/video_spec.rb",
306
+ "spec/fb_graph/work_spec.rb",
307
+ "spec/helpers/fake_json_helper.rb",
308
+ "spec/spec_helper.rb"
308
309
  ]
309
310
 
310
311
  if s.respond_to? :specification_version then
data/lib/fb_graph.rb CHANGED
@@ -70,7 +70,10 @@ require 'fb_graph/post'
70
70
  require 'fb_graph/status'
71
71
  require 'fb_graph/subscription'
72
72
  require 'fb_graph/tag'
73
+ require 'fb_graph/test_user'
73
74
  require 'fb_graph/user'
74
75
  require 'fb_graph/venue'
75
76
  require 'fb_graph/video'
76
- require 'fb_graph/work'
77
+ require 'fb_graph/work'
78
+
79
+ require 'fb_graph/query'
@@ -12,6 +12,7 @@ module FbGraph
12
12
  include Connections::Statuses
13
13
  include Connections::Subscriptions
14
14
  include Connections::Tagged
15
+ include Connections::TestUsers
15
16
  include Connections::Videos
16
17
 
17
18
  attr_accessor :name, :description, :category, :link, :secret
@@ -0,0 +1,19 @@
1
+ module FbGraph
2
+ module Connections
3
+ module TestUsers
4
+ def test_users(options = {})
5
+ options[:access_token] ||= self.access_token || get_access_token(options[:secret])
6
+ test_users = self.connection(:accounts, options.merge(:connection_scope => 'test-users'))
7
+ test_users.map! do |test_user|
8
+ TestUser.new(test_user.delete(:id), test_user)
9
+ end
10
+ end
11
+
12
+ def test_user!(options = {})
13
+ options[:access_token] ||= self.access_token || get_access_token(options[:secret])
14
+ test_user = post(options.merge(:connection => :accounts, :connection_scope => 'test-users'))
15
+ TestUser.new(test_user.delete(:id), test_user)
16
+ end
17
+ end
18
+ end
19
+ end
data/lib/fb_graph/node.rb CHANGED
@@ -97,16 +97,22 @@ module FbGraph
97
97
  when 'null'
98
98
  nil
99
99
  else
100
- _response_ = JSON.parse(response.body).with_indifferent_access
101
- if _response_[:error]
102
- case _response_[:error][:type]
103
- when 'OAuthAccessTokenException', 'QueryParseException', 'OAuthInvalidRequestException', 'OAuthInvalidTokenException', 'OAuthException'
104
- raise FbGraph::Unauthorized.new(_response_[:error][:message])
100
+ _response_ = JSON.parse(response.body)
101
+ case _response_
102
+ when Array
103
+ _response_.map!(&:with_indifferent_access)
104
+ when Hash
105
+ _response_ = _response_.with_indifferent_access
106
+ if _response_[:error]
107
+ case _response_[:error][:type]
108
+ when 'OAuthAccessTokenException', 'QueryParseException', 'OAuthInvalidRequestException', 'OAuthInvalidTokenException', 'OAuthException'
109
+ raise FbGraph::Unauthorized.new(_response_[:error][:message])
110
+ else
111
+ raise FbGraph::BadRequest.new("#{_response_[:error][:type]} :: #{_response_[:error][:message]}")
112
+ end
105
113
  else
106
- raise FbGraph::BadRequest.new("#{_response_[:error][:type]} :: #{_response_[:error][:message]}")
114
+ _response_
107
115
  end
108
- else
109
- _response_
110
116
  end
111
117
  end
112
118
  rescue RestClient::Exception => e
@@ -0,0 +1,46 @@
1
+ module FbGraph
2
+ class Query < Node
3
+ attr_accessor :access_token, :query
4
+
5
+ def initialize(query, access_token = nil)
6
+ @query = query
7
+ @access_token = access_token
8
+ end
9
+
10
+ def fetch(access_token = nil)
11
+ self.access_token ||= access_token
12
+ handle_response do
13
+ RestClient.get build_endpoint
14
+ end
15
+ end
16
+
17
+ private
18
+
19
+ ENDPOINT = 'https://api.facebook.com/method/fql.query'
20
+ def build_endpoint
21
+ params = stringfy_access_token(
22
+ :query => self.query,
23
+ :access_token => self.access_token,
24
+ :format => :json
25
+ )
26
+ ENDPOINT + "?#{params.to_query}"
27
+ end
28
+
29
+ def handle_response
30
+ response = super do
31
+ yield
32
+ end
33
+ case response
34
+ when Hash
35
+ if response[:error_code]
36
+ raise FbGraph::Exception.new(response[:error_code], response[:error_msg])
37
+ else
38
+ response
39
+ end
40
+ else
41
+ response
42
+ end
43
+ end
44
+
45
+ end
46
+ end
@@ -0,0 +1,48 @@
1
+ module FbGraph
2
+ class TestUser < Node
3
+ include Connections::Accounts
4
+ include Connections::Activities
5
+ include Connections::Albums
6
+ include Connections::Books
7
+ include Connections::Checkins
8
+ include Connections::Events
9
+ include Connections::Feed
10
+ include Connections::FriendLists
11
+ include Connections::Friends
12
+ include Connections::Groups
13
+ include Connections::Home
14
+ include Connections::Interests
15
+ include Connections::Likes
16
+ include Connections::Links
17
+ include Connections::Movies
18
+ include Connections::Music
19
+ include Connections::Notes
20
+ include Connections::Photos
21
+ include Connections::Picture
22
+ include Connections::Posts
23
+ include Connections::Statuses
24
+ include Connections::Tagged
25
+ include Connections::Television
26
+ include Connections::Videos
27
+
28
+ attr_accessor :login_url
29
+
30
+ def initialize(identifier, attributes = {})
31
+ super
32
+ @login_url = attributes[:login_url]
33
+ end
34
+
35
+ def friend!(test_user)
36
+ post(
37
+ :access_token => self.access_token,
38
+ :connection => :friends,
39
+ :connection_scope => test_user.identifier
40
+ )
41
+ post(
42
+ :access_token => test_user.access_token,
43
+ :connection => :friends,
44
+ :connection_scope => self.identifier
45
+ )
46
+ end
47
+ end
48
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fb_graph
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
- - 1
9
- - 7
10
- version: 1.1.7
8
+ - 2
9
+ - 0
10
+ version: 1.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - nov matake
@@ -133,7 +133,6 @@ extra_rdoc_files:
133
133
  - README.rdoc
134
134
  files:
135
135
  - .document
136
- - .gitignore
137
136
  - LICENSE
138
137
  - README.rdoc
139
138
  - Rakefile
@@ -184,6 +183,7 @@ files:
184
183
  - lib/fb_graph/connections/subscriptions.rb
185
184
  - lib/fb_graph/connections/tagged.rb
186
185
  - lib/fb_graph/connections/television.rb
186
+ - lib/fb_graph/connections/test_users.rb
187
187
  - lib/fb_graph/connections/videos.rb
188
188
  - lib/fb_graph/education.rb
189
189
  - lib/fb_graph/event.rb
@@ -196,11 +196,13 @@ files:
196
196
  - lib/fb_graph/page.rb
197
197
  - lib/fb_graph/photo.rb
198
198
  - lib/fb_graph/post.rb
199
+ - lib/fb_graph/query.rb
199
200
  - lib/fb_graph/searchable.rb
200
201
  - lib/fb_graph/searchable/result.rb
201
202
  - lib/fb_graph/status.rb
202
203
  - lib/fb_graph/subscription.rb
203
204
  - lib/fb_graph/tag.rb
205
+ - lib/fb_graph/test_user.rb
204
206
  - lib/fb_graph/user.rb
205
207
  - lib/fb_graph/venue.rb
206
208
  - lib/fb_graph/video.rb
@@ -358,8 +360,8 @@ homepage: http://github.com/nov/fb_graph
358
360
  licenses: []
359
361
 
360
362
  post_install_message:
361
- rdoc_options:
362
- - --charset=UTF-8
363
+ rdoc_options: []
364
+
363
365
  require_paths:
364
366
  - lib
365
367
  required_ruby_version: !ruby/object:Gem::Requirement
data/.gitignore DELETED
@@ -1,21 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC