fb_graph 1.3.8 → 1.3.9
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +21 -0
- data/VERSION +1 -1
- data/fb_graph.gemspec +344 -334
- data/lib/fb_graph/app_request.rb +24 -0
- data/lib/fb_graph/connections/app_requests.rb +14 -0
- data/lib/fb_graph/user.rb +1 -0
- data/lib/fb_graph.rb +2 -1
- data/spec/fake_json/users/app_requests/me_private.json +40 -0
- data/spec/fb_graph/app_request_spec.rb +40 -0
- data/spec/fb_graph/connections/app_requests_spec.rb +14 -0
- metadata +16 -8
data/.gitignore
ADDED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.9
|
data/fb_graph.gemspec
CHANGED
@@ -1,362 +1,372 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
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.3.
|
8
|
+
s.version = "1.3.9"
|
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"]
|
12
|
-
s.date = %q{2011-02-
|
12
|
+
s.date = %q{2011-02-04}
|
13
13
|
s.description = %q{A full-stack Facebook Graph API wrapper in Ruby.}
|
14
14
|
s.email = %q{nov@matake.jp}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
17
|
-
|
17
|
+
"README.rdoc"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
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/cert",
|
30
|
+
"lib/fb_graph.rb",
|
31
|
+
"lib/fb_graph/action.rb",
|
32
|
+
"lib/fb_graph/album.rb",
|
33
|
+
"lib/fb_graph/app_request.rb",
|
34
|
+
"lib/fb_graph/application.rb",
|
35
|
+
"lib/fb_graph/auth.rb",
|
36
|
+
"lib/fb_graph/auth/cookie.rb",
|
37
|
+
"lib/fb_graph/checkin.rb",
|
38
|
+
"lib/fb_graph/collection.rb",
|
39
|
+
"lib/fb_graph/comment.rb",
|
40
|
+
"lib/fb_graph/comparison.rb",
|
41
|
+
"lib/fb_graph/connection.rb",
|
42
|
+
"lib/fb_graph/connections.rb",
|
43
|
+
"lib/fb_graph/connections/accounts.rb",
|
44
|
+
"lib/fb_graph/connections/activities.rb",
|
45
|
+
"lib/fb_graph/connections/albums.rb",
|
46
|
+
"lib/fb_graph/connections/app_requests.rb",
|
47
|
+
"lib/fb_graph/connections/attending.rb",
|
48
|
+
"lib/fb_graph/connections/books.rb",
|
49
|
+
"lib/fb_graph/connections/checkins.rb",
|
50
|
+
"lib/fb_graph/connections/comments.rb",
|
51
|
+
"lib/fb_graph/connections/declined.rb",
|
52
|
+
"lib/fb_graph/connections/events.rb",
|
53
|
+
"lib/fb_graph/connections/feed.rb",
|
54
|
+
"lib/fb_graph/connections/friend_lists.rb",
|
55
|
+
"lib/fb_graph/connections/friends.rb",
|
56
|
+
"lib/fb_graph/connections/games.rb",
|
57
|
+
"lib/fb_graph/connections/groups.rb",
|
58
|
+
"lib/fb_graph/connections/home.rb",
|
59
|
+
"lib/fb_graph/connections/insights.rb",
|
60
|
+
"lib/fb_graph/connections/interests.rb",
|
61
|
+
"lib/fb_graph/connections/invited.rb",
|
62
|
+
"lib/fb_graph/connections/likes.rb",
|
63
|
+
"lib/fb_graph/connections/links.rb",
|
64
|
+
"lib/fb_graph/connections/maybe.rb",
|
65
|
+
"lib/fb_graph/connections/members.rb",
|
66
|
+
"lib/fb_graph/connections/movies.rb",
|
67
|
+
"lib/fb_graph/connections/music.rb",
|
68
|
+
"lib/fb_graph/connections/noreply.rb",
|
69
|
+
"lib/fb_graph/connections/notes.rb",
|
70
|
+
"lib/fb_graph/connections/photos.rb",
|
71
|
+
"lib/fb_graph/connections/picture.rb",
|
72
|
+
"lib/fb_graph/connections/posts.rb",
|
73
|
+
"lib/fb_graph/connections/statuses.rb",
|
74
|
+
"lib/fb_graph/connections/subscriptions.rb",
|
75
|
+
"lib/fb_graph/connections/tagged.rb",
|
76
|
+
"lib/fb_graph/connections/television.rb",
|
77
|
+
"lib/fb_graph/connections/test_users.rb",
|
78
|
+
"lib/fb_graph/connections/videos.rb",
|
79
|
+
"lib/fb_graph/education.rb",
|
80
|
+
"lib/fb_graph/event.rb",
|
81
|
+
"lib/fb_graph/friend_list.rb",
|
82
|
+
"lib/fb_graph/group.rb",
|
83
|
+
"lib/fb_graph/insight.rb",
|
84
|
+
"lib/fb_graph/link.rb",
|
85
|
+
"lib/fb_graph/location.rb",
|
86
|
+
"lib/fb_graph/node.rb",
|
87
|
+
"lib/fb_graph/note.rb",
|
88
|
+
"lib/fb_graph/page.rb",
|
89
|
+
"lib/fb_graph/photo.rb",
|
90
|
+
"lib/fb_graph/place.rb",
|
91
|
+
"lib/fb_graph/post.rb",
|
92
|
+
"lib/fb_graph/privacy.rb",
|
93
|
+
"lib/fb_graph/project.rb",
|
94
|
+
"lib/fb_graph/query.rb",
|
95
|
+
"lib/fb_graph/searchable.rb",
|
96
|
+
"lib/fb_graph/searchable/result.rb",
|
97
|
+
"lib/fb_graph/serialization.rb",
|
98
|
+
"lib/fb_graph/status.rb",
|
99
|
+
"lib/fb_graph/subscription.rb",
|
100
|
+
"lib/fb_graph/tag.rb",
|
101
|
+
"lib/fb_graph/targeting.rb",
|
102
|
+
"lib/fb_graph/test_user.rb",
|
103
|
+
"lib/fb_graph/user.rb",
|
104
|
+
"lib/fb_graph/venue.rb",
|
105
|
+
"lib/fb_graph/video.rb",
|
106
|
+
"lib/fb_graph/work.rb",
|
107
|
+
"lib/restclient_with_ssl_support.rb",
|
108
|
+
"spec/fake_json/albums/photos/matake_private.json",
|
109
|
+
"spec/fake_json/albums/photos/post_with_valid_access_token.json",
|
110
|
+
"spec/fake_json/applications/subscriptions/fb_graph_private.json",
|
111
|
+
"spec/fake_json/applications/test_users/created.json",
|
112
|
+
"spec/fake_json/applications/test_users/private.json",
|
113
|
+
"spec/fake_json/checkins/search_private.json",
|
114
|
+
"spec/fake_json/checkins/search_public.json",
|
115
|
+
"spec/fake_json/events/attending/post_with_valid_access_token.json",
|
116
|
+
"spec/fake_json/events/attending/smartday_private.json",
|
117
|
+
"spec/fake_json/events/declined/post_with_valid_access_token.json",
|
118
|
+
"spec/fake_json/events/declined/smartday_private.json",
|
119
|
+
"spec/fake_json/events/invited/smartday_private.json",
|
120
|
+
"spec/fake_json/events/maybe/post_with_valid_access_token.json",
|
121
|
+
"spec/fake_json/events/maybe/smartday_private.json",
|
122
|
+
"spec/fake_json/events/noreply/smartday_private.json",
|
123
|
+
"spec/fake_json/groups/members/emacs_private.json",
|
124
|
+
"spec/fake_json/pages/checkins/gowalla_private.json",
|
125
|
+
"spec/fake_json/pages/checkins/gowalla_public.json",
|
126
|
+
"spec/fake_json/pages/insights/FbGraph_private.json",
|
127
|
+
"spec/fake_json/pages/insights/FbGraph_public.json",
|
128
|
+
"spec/fake_json/pages/insights/page_like_adds/FbGraph_private.json",
|
129
|
+
"spec/fake_json/pages/insights/page_like_adds/day/FbGraph_private.json",
|
130
|
+
"spec/fake_json/pages/notes/post_with_valid_access_token.json",
|
131
|
+
"spec/fake_json/pages/platform_private.json",
|
132
|
+
"spec/fake_json/pages/platform_public.json",
|
133
|
+
"spec/fake_json/pages/search_fb_graph.json",
|
134
|
+
"spec/fake_json/pages/search_google.json",
|
135
|
+
"spec/fake_json/pages/statuses/platform_private.json",
|
136
|
+
"spec/fake_json/pages/statuses/platform_public.json",
|
137
|
+
"spec/fake_json/posts/comments/post_with_invalid_access_token.json",
|
138
|
+
"spec/fake_json/posts/comments/post_with_valid_access_token.json",
|
139
|
+
"spec/fake_json/posts/comments/post_without_access_token.json",
|
140
|
+
"spec/fake_json/posts/likes/post_with_invalid_access_token.json",
|
141
|
+
"spec/fake_json/posts/likes/post_with_valid_access_token.json",
|
142
|
+
"spec/fake_json/posts/likes/post_without_access_token.json",
|
143
|
+
"spec/fake_json/posts/no_comments.json",
|
144
|
+
"spec/fake_json/posts/platform_private.json",
|
145
|
+
"spec/fake_json/posts/platform_public.json",
|
146
|
+
"spec/fake_json/query/user/with_invalid_token.json",
|
147
|
+
"spec/fake_json/query/user/with_valid_token.json",
|
148
|
+
"spec/fake_json/query/user/without_token.json",
|
149
|
+
"spec/fake_json/statuses/with_likes.json",
|
150
|
+
"spec/fake_json/token_response.json",
|
151
|
+
"spec/fake_json/true.json",
|
152
|
+
"spec/fake_json/users/accounts/matake_private.json",
|
153
|
+
"spec/fake_json/users/accounts/matake_private_with_manage_pages_permission.json",
|
154
|
+
"spec/fake_json/users/accounts/matake_public.json",
|
155
|
+
"spec/fake_json/users/activities/arjun_private.json",
|
156
|
+
"spec/fake_json/users/activities/arjun_public.json",
|
157
|
+
"spec/fake_json/users/albums/matake_private.json",
|
158
|
+
"spec/fake_json/users/albums/matake_public.json",
|
159
|
+
"spec/fake_json/users/albums/post_with_valid_access_token.json",
|
160
|
+
"spec/fake_json/users/app_requests/me_private.json",
|
161
|
+
"spec/fake_json/users/arjun_private.json",
|
162
|
+
"spec/fake_json/users/arjun_public.json",
|
163
|
+
"spec/fake_json/users/books/matake_private.json",
|
164
|
+
"spec/fake_json/users/books/matake_public.json",
|
165
|
+
"spec/fake_json/users/checkins/mattt_private.json",
|
166
|
+
"spec/fake_json/users/checkins/mattt_public.json",
|
167
|
+
"spec/fake_json/users/checkins/posted.json",
|
168
|
+
"spec/fake_json/users/events/matake_private.json",
|
169
|
+
"spec/fake_json/users/events/matake_public.json",
|
170
|
+
"spec/fake_json/users/events/post_with_valid_access_token.json",
|
171
|
+
"spec/fake_json/users/feed/arjun_private.json",
|
172
|
+
"spec/fake_json/users/feed/arjun_public.json",
|
173
|
+
"spec/fake_json/users/feed/post_with_invalid_access_token.json",
|
174
|
+
"spec/fake_json/users/feed/post_with_valid_access_token.json",
|
175
|
+
"spec/fake_json/users/feed/post_without_access_token.json",
|
176
|
+
"spec/fake_json/users/friend_lists/matake.json",
|
177
|
+
"spec/fake_json/users/friends/arjun_private.json",
|
178
|
+
"spec/fake_json/users/friends/arjun_public.json",
|
179
|
+
"spec/fake_json/users/friends/me_private.json",
|
180
|
+
"spec/fake_json/users/friends/me_public.json",
|
181
|
+
"spec/fake_json/users/games/matake_private.json",
|
182
|
+
"spec/fake_json/users/groups/matake_private.json",
|
183
|
+
"spec/fake_json/users/groups/matake_public.json",
|
184
|
+
"spec/fake_json/users/home/arjun_private.json",
|
185
|
+
"spec/fake_json/users/home/arjun_public.json",
|
186
|
+
"spec/fake_json/users/home/me_private.json",
|
187
|
+
"spec/fake_json/users/home/me_private_next.json",
|
188
|
+
"spec/fake_json/users/home/me_private_previous.json",
|
189
|
+
"spec/fake_json/users/home/me_public.json",
|
190
|
+
"spec/fake_json/users/interests/matake_private.json",
|
191
|
+
"spec/fake_json/users/likes/arjun_private.json",
|
192
|
+
"spec/fake_json/users/likes/arjun_public.json",
|
193
|
+
"spec/fake_json/users/links/matake_private.json",
|
194
|
+
"spec/fake_json/users/links/post_with_valid_access_token.json",
|
195
|
+
"spec/fake_json/users/me_private.json",
|
196
|
+
"spec/fake_json/users/me_public.json",
|
197
|
+
"spec/fake_json/users/movies/matake_private.json",
|
198
|
+
"spec/fake_json/users/music/matake_private.json",
|
199
|
+
"spec/fake_json/users/notes/matake_private.json",
|
200
|
+
"spec/fake_json/users/posts/arjun_private.json",
|
201
|
+
"spec/fake_json/users/posts/arjun_public.json",
|
202
|
+
"spec/fake_json/users/statuses/arjun_private.json",
|
203
|
+
"spec/fake_json/users/statuses/arjun_public.json",
|
204
|
+
"spec/fake_json/users/tagged/arjun_private.json",
|
205
|
+
"spec/fake_json/users/tagged/arjun_public.json",
|
206
|
+
"spec/fake_json/users/television/matake_private.json",
|
207
|
+
"spec/fake_json/users/videos/kirk_private.json",
|
208
|
+
"spec/fb_graph/album_spec.rb",
|
209
|
+
"spec/fb_graph/app_request_spec.rb",
|
210
|
+
"spec/fb_graph/application_spec.rb",
|
211
|
+
"spec/fb_graph/auth/cookie_spec.rb",
|
212
|
+
"spec/fb_graph/auth_spec.rb",
|
213
|
+
"spec/fb_graph/checkin_spec.rb",
|
214
|
+
"spec/fb_graph/collection_spec.rb",
|
215
|
+
"spec/fb_graph/comment_spec.rb",
|
216
|
+
"spec/fb_graph/connection_spec.rb",
|
217
|
+
"spec/fb_graph/connections/accounts_spec.rb",
|
218
|
+
"spec/fb_graph/connections/activities_spec.rb",
|
219
|
+
"spec/fb_graph/connections/albums_spec.rb",
|
220
|
+
"spec/fb_graph/connections/app_requests_spec.rb",
|
221
|
+
"spec/fb_graph/connections/attending_spec.rb",
|
222
|
+
"spec/fb_graph/connections/books_spec.rb",
|
223
|
+
"spec/fb_graph/connections/checkins_spec.rb",
|
224
|
+
"spec/fb_graph/connections/comments_spec.rb",
|
225
|
+
"spec/fb_graph/connections/declined_spec.rb",
|
226
|
+
"spec/fb_graph/connections/events_spec.rb",
|
227
|
+
"spec/fb_graph/connections/feed_spec.rb",
|
228
|
+
"spec/fb_graph/connections/friend_lists_spec.rb",
|
229
|
+
"spec/fb_graph/connections/friends_spec.rb",
|
230
|
+
"spec/fb_graph/connections/games_spec.rb",
|
231
|
+
"spec/fb_graph/connections/groups_spec.rb",
|
232
|
+
"spec/fb_graph/connections/home_spec.rb",
|
233
|
+
"spec/fb_graph/connections/insights_spec.rb",
|
234
|
+
"spec/fb_graph/connections/interests_spec.rb",
|
235
|
+
"spec/fb_graph/connections/invited_spec.rb",
|
236
|
+
"spec/fb_graph/connections/likes_spec.rb",
|
237
|
+
"spec/fb_graph/connections/links_spec.rb",
|
238
|
+
"spec/fb_graph/connections/maybe_spec.rb",
|
239
|
+
"spec/fb_graph/connections/members_spec.rb",
|
240
|
+
"spec/fb_graph/connections/movies_spec.rb",
|
241
|
+
"spec/fb_graph/connections/music_spec.rb",
|
242
|
+
"spec/fb_graph/connections/noreply_spec.rb",
|
243
|
+
"spec/fb_graph/connections/notes_spec.rb",
|
244
|
+
"spec/fb_graph/connections/photos_spec.rb",
|
245
|
+
"spec/fb_graph/connections/picture_spec.rb",
|
246
|
+
"spec/fb_graph/connections/posts_spec.rb",
|
247
|
+
"spec/fb_graph/connections/statuses_spec.rb",
|
248
|
+
"spec/fb_graph/connections/subscriptions_spec.rb",
|
249
|
+
"spec/fb_graph/connections/tagged_spec.rb",
|
250
|
+
"spec/fb_graph/connections/television_spec.rb",
|
251
|
+
"spec/fb_graph/connections/test_users_spec.rb",
|
252
|
+
"spec/fb_graph/connections/videos_spec.rb",
|
253
|
+
"spec/fb_graph/education_spec.rb",
|
254
|
+
"spec/fb_graph/event_spec.rb",
|
255
|
+
"spec/fb_graph/exception_spec.rb",
|
256
|
+
"spec/fb_graph/friend_list_spec.rb",
|
257
|
+
"spec/fb_graph/group_spec.rb",
|
258
|
+
"spec/fb_graph/insight_spec.rb",
|
259
|
+
"spec/fb_graph/link_spec.rb",
|
260
|
+
"spec/fb_graph/location_spec.rb",
|
261
|
+
"spec/fb_graph/node_spec.rb",
|
262
|
+
"spec/fb_graph/note_spec.rb",
|
263
|
+
"spec/fb_graph/page_spec.rb",
|
264
|
+
"spec/fb_graph/photo_spec.rb",
|
265
|
+
"spec/fb_graph/place_spec.rb",
|
266
|
+
"spec/fb_graph/post_spec.rb",
|
267
|
+
"spec/fb_graph/privacy_spec.rb",
|
268
|
+
"spec/fb_graph/project_spec.rb",
|
269
|
+
"spec/fb_graph/query/core_spec.rb",
|
270
|
+
"spec/fb_graph/searchable_spec.rb",
|
271
|
+
"spec/fb_graph/seriarization_spec.rb",
|
272
|
+
"spec/fb_graph/status_spec.rb",
|
273
|
+
"spec/fb_graph/subscription_spec.rb",
|
274
|
+
"spec/fb_graph/tag_spec.rb",
|
275
|
+
"spec/fb_graph/targeting_spec.rb",
|
276
|
+
"spec/fb_graph/test_user_spec.rb",
|
277
|
+
"spec/fb_graph/user_spec.rb",
|
278
|
+
"spec/fb_graph/venue_spec.rb",
|
279
|
+
"spec/fb_graph/video_spec.rb",
|
280
|
+
"spec/fb_graph/work_spec.rb",
|
281
|
+
"spec/helpers/fake_json_helper.rb",
|
282
|
+
"spec/spec.opts",
|
283
|
+
"spec/spec_helper.rb"
|
278
284
|
]
|
279
285
|
s.homepage = %q{http://github.com/nov/fb_graph}
|
286
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
280
287
|
s.require_paths = ["lib"]
|
281
|
-
s.rubygems_version = %q{1.
|
288
|
+
s.rubygems_version = %q{1.3.7}
|
282
289
|
s.summary = %q{A full-stack Facebook Graph API wrapper in Ruby.}
|
283
290
|
s.test_files = [
|
284
291
|
"spec/fb_graph/album_spec.rb",
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
292
|
+
"spec/fb_graph/app_request_spec.rb",
|
293
|
+
"spec/fb_graph/application_spec.rb",
|
294
|
+
"spec/fb_graph/auth/cookie_spec.rb",
|
295
|
+
"spec/fb_graph/auth_spec.rb",
|
296
|
+
"spec/fb_graph/checkin_spec.rb",
|
297
|
+
"spec/fb_graph/collection_spec.rb",
|
298
|
+
"spec/fb_graph/comment_spec.rb",
|
299
|
+
"spec/fb_graph/connection_spec.rb",
|
300
|
+
"spec/fb_graph/connections/accounts_spec.rb",
|
301
|
+
"spec/fb_graph/connections/activities_spec.rb",
|
302
|
+
"spec/fb_graph/connections/albums_spec.rb",
|
303
|
+
"spec/fb_graph/connections/app_requests_spec.rb",
|
304
|
+
"spec/fb_graph/connections/attending_spec.rb",
|
305
|
+
"spec/fb_graph/connections/books_spec.rb",
|
306
|
+
"spec/fb_graph/connections/checkins_spec.rb",
|
307
|
+
"spec/fb_graph/connections/comments_spec.rb",
|
308
|
+
"spec/fb_graph/connections/declined_spec.rb",
|
309
|
+
"spec/fb_graph/connections/events_spec.rb",
|
310
|
+
"spec/fb_graph/connections/feed_spec.rb",
|
311
|
+
"spec/fb_graph/connections/friend_lists_spec.rb",
|
312
|
+
"spec/fb_graph/connections/friends_spec.rb",
|
313
|
+
"spec/fb_graph/connections/games_spec.rb",
|
314
|
+
"spec/fb_graph/connections/groups_spec.rb",
|
315
|
+
"spec/fb_graph/connections/home_spec.rb",
|
316
|
+
"spec/fb_graph/connections/insights_spec.rb",
|
317
|
+
"spec/fb_graph/connections/interests_spec.rb",
|
318
|
+
"spec/fb_graph/connections/invited_spec.rb",
|
319
|
+
"spec/fb_graph/connections/likes_spec.rb",
|
320
|
+
"spec/fb_graph/connections/links_spec.rb",
|
321
|
+
"spec/fb_graph/connections/maybe_spec.rb",
|
322
|
+
"spec/fb_graph/connections/members_spec.rb",
|
323
|
+
"spec/fb_graph/connections/movies_spec.rb",
|
324
|
+
"spec/fb_graph/connections/music_spec.rb",
|
325
|
+
"spec/fb_graph/connections/noreply_spec.rb",
|
326
|
+
"spec/fb_graph/connections/notes_spec.rb",
|
327
|
+
"spec/fb_graph/connections/photos_spec.rb",
|
328
|
+
"spec/fb_graph/connections/picture_spec.rb",
|
329
|
+
"spec/fb_graph/connections/posts_spec.rb",
|
330
|
+
"spec/fb_graph/connections/statuses_spec.rb",
|
331
|
+
"spec/fb_graph/connections/subscriptions_spec.rb",
|
332
|
+
"spec/fb_graph/connections/tagged_spec.rb",
|
333
|
+
"spec/fb_graph/connections/television_spec.rb",
|
334
|
+
"spec/fb_graph/connections/test_users_spec.rb",
|
335
|
+
"spec/fb_graph/connections/videos_spec.rb",
|
336
|
+
"spec/fb_graph/education_spec.rb",
|
337
|
+
"spec/fb_graph/event_spec.rb",
|
338
|
+
"spec/fb_graph/exception_spec.rb",
|
339
|
+
"spec/fb_graph/friend_list_spec.rb",
|
340
|
+
"spec/fb_graph/group_spec.rb",
|
341
|
+
"spec/fb_graph/insight_spec.rb",
|
342
|
+
"spec/fb_graph/link_spec.rb",
|
343
|
+
"spec/fb_graph/location_spec.rb",
|
344
|
+
"spec/fb_graph/node_spec.rb",
|
345
|
+
"spec/fb_graph/note_spec.rb",
|
346
|
+
"spec/fb_graph/page_spec.rb",
|
347
|
+
"spec/fb_graph/photo_spec.rb",
|
348
|
+
"spec/fb_graph/place_spec.rb",
|
349
|
+
"spec/fb_graph/post_spec.rb",
|
350
|
+
"spec/fb_graph/privacy_spec.rb",
|
351
|
+
"spec/fb_graph/project_spec.rb",
|
352
|
+
"spec/fb_graph/query/core_spec.rb",
|
353
|
+
"spec/fb_graph/searchable_spec.rb",
|
354
|
+
"spec/fb_graph/seriarization_spec.rb",
|
355
|
+
"spec/fb_graph/status_spec.rb",
|
356
|
+
"spec/fb_graph/subscription_spec.rb",
|
357
|
+
"spec/fb_graph/tag_spec.rb",
|
358
|
+
"spec/fb_graph/targeting_spec.rb",
|
359
|
+
"spec/fb_graph/test_user_spec.rb",
|
360
|
+
"spec/fb_graph/user_spec.rb",
|
361
|
+
"spec/fb_graph/venue_spec.rb",
|
362
|
+
"spec/fb_graph/video_spec.rb",
|
363
|
+
"spec/fb_graph/work_spec.rb",
|
364
|
+
"spec/helpers/fake_json_helper.rb",
|
365
|
+
"spec/spec_helper.rb"
|
357
366
|
]
|
358
367
|
|
359
368
|
if s.respond_to? :specification_version then
|
369
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
360
370
|
s.specification_version = 3
|
361
371
|
|
362
372
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module FbGraph
|
2
|
+
class AppRequest < Node
|
3
|
+
|
4
|
+
attr_accessor :application, :created_time, :data, :from, :message, :to
|
5
|
+
|
6
|
+
def initialize(identifier, attributes = {})
|
7
|
+
super
|
8
|
+
@data = attributes[:data]
|
9
|
+
@message = attributes[:message]
|
10
|
+
if attributes[:from]
|
11
|
+
@from = User.new(attributes[:from].delete(:id), attributes[:from])
|
12
|
+
end
|
13
|
+
if attributes[:to]
|
14
|
+
@to = User.new(attributes[:to].delete(:id), attributes[:to])
|
15
|
+
end
|
16
|
+
if attributes[:application]
|
17
|
+
@application = Application.new(attributes[:application].delete(:id), attributes[:application])
|
18
|
+
end
|
19
|
+
if attributes[:created_time]
|
20
|
+
@created_time = Time.parse(attributes[:created_time]).utc
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module FbGraph
|
2
|
+
module Connections
|
3
|
+
module AppRequests
|
4
|
+
def app_requests(options = {})
|
5
|
+
app_requests = self.connection(:apprequests, options)
|
6
|
+
app_requests.map! do |app_request|
|
7
|
+
AppRequest.new(app_request.delete(:id), app_request.merge(
|
8
|
+
:access_token => options[:access_token] || self.access_token
|
9
|
+
))
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/lib/fb_graph/user.rb
CHANGED
data/lib/fb_graph.rb
CHANGED
@@ -60,6 +60,7 @@ require 'fb_graph/work'
|
|
60
60
|
|
61
61
|
require 'fb_graph/node'
|
62
62
|
require 'fb_graph/album'
|
63
|
+
require 'fb_graph/app_request'
|
63
64
|
require 'fb_graph/application'
|
64
65
|
require 'fb_graph/checkin'
|
65
66
|
require 'fb_graph/comment'
|
@@ -80,4 +81,4 @@ require 'fb_graph/test_user'
|
|
80
81
|
require 'fb_graph/user'
|
81
82
|
require 'fb_graph/video'
|
82
83
|
|
83
|
-
require 'fb_graph/query'
|
84
|
+
require 'fb_graph/query'
|
@@ -0,0 +1,40 @@
|
|
1
|
+
{
|
2
|
+
"data": [
|
3
|
+
{
|
4
|
+
"id": "10150111088582277",
|
5
|
+
"application": {
|
6
|
+
"name": "gem sample",
|
7
|
+
"id": "134145643294322"
|
8
|
+
},
|
9
|
+
"to": {
|
10
|
+
"name": "Nov Matake",
|
11
|
+
"id": "579612276"
|
12
|
+
},
|
13
|
+
"from": {
|
14
|
+
"name": "Nov Matake",
|
15
|
+
"id": "1575327134"
|
16
|
+
},
|
17
|
+
"data": "tracking information for the user",
|
18
|
+
"message": "You should learn more about this awesome game.",
|
19
|
+
"created_time": "2011-02-04T09:55:43+0000"
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"id": "10150111088467277",
|
23
|
+
"application": {
|
24
|
+
"name": "gem sample",
|
25
|
+
"id": "134145643294322"
|
26
|
+
},
|
27
|
+
"to": {
|
28
|
+
"name": "Nov Matake",
|
29
|
+
"id": "579612276"
|
30
|
+
},
|
31
|
+
"from": {
|
32
|
+
"name": "Nov Matake",
|
33
|
+
"id": "1575327134"
|
34
|
+
},
|
35
|
+
"data": "tracking information for the user",
|
36
|
+
"message": "You should learn more about this awesome game.",
|
37
|
+
"created_time": "2011-02-04T09:55:14+0000"
|
38
|
+
}
|
39
|
+
]
|
40
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), '../spec_helper')
|
2
|
+
|
3
|
+
describe FbGraph::AppRequest, '.new' do
|
4
|
+
it 'should setup all supported attributes' do
|
5
|
+
attributes = {
|
6
|
+
:id => "10150111088582277",
|
7
|
+
:application => {
|
8
|
+
:name => "gem sample",
|
9
|
+
:id => "134145643294322"
|
10
|
+
},
|
11
|
+
:to => {
|
12
|
+
:name => "Nov Matake",
|
13
|
+
:id => "579612276"
|
14
|
+
},
|
15
|
+
:from => {
|
16
|
+
:name => "Nov Matake",
|
17
|
+
:id => "1575327134"
|
18
|
+
},
|
19
|
+
:data => "tracking information for the user",
|
20
|
+
:message => "You should learn more about this awesome game.",
|
21
|
+
:created_time => "2011-02-04T09:55:43+0000"
|
22
|
+
}
|
23
|
+
app_request = FbGraph::AppRequest.new(attributes.delete(:id), attributes)
|
24
|
+
app_request.identifier.should == '10150111088582277'
|
25
|
+
app_request.application.should == FbGraph::Application.new('134145643294322', :name => 'gem sample')
|
26
|
+
app_request.to.should == FbGraph::User.new('579612276', :name => 'Nov Matake')
|
27
|
+
app_request.from.should == FbGraph::User.new('1575327134', :name => 'Nov Matake')
|
28
|
+
app_request.data.should == 'tracking information for the user'
|
29
|
+
app_request.message.should == 'You should learn more about this awesome game.'
|
30
|
+
app_request.created_time.should == Time.parse('2011-02-04T09:55:43+0000')
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe FbGraph::AppRequest, '#destroy' do
|
35
|
+
it 'should request DELETE /:request_id' do
|
36
|
+
lambda do
|
37
|
+
FbGraph::AppRequest.new('12345', :access_token => 'access_token').destroy
|
38
|
+
end.should request_to '12345?access_token=access_token', :delete
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), '../../spec_helper')
|
2
|
+
|
3
|
+
describe FbGraph::Connections::AppRequests, '#app_requests' do
|
4
|
+
before do
|
5
|
+
fake_json(:get, 'me/apprequests?access_token=access_token', 'users/app_requests/me_private')
|
6
|
+
end
|
7
|
+
|
8
|
+
it 'should return notes as FbGraph::Note' do
|
9
|
+
app_requests = FbGraph::User.me('access_token').app_requests
|
10
|
+
app_requests.each do |app_request|
|
11
|
+
app_request.should be_instance_of(FbGraph::AppRequest)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 9
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 9
|
10
|
+
version: 1.3.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- nov matake
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-02-
|
18
|
+
date: 2011-02-04 00:00:00 +09:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -136,6 +136,7 @@ extra_rdoc_files:
|
|
136
136
|
- README.rdoc
|
137
137
|
files:
|
138
138
|
- .document
|
139
|
+
- .gitignore
|
139
140
|
- LICENSE
|
140
141
|
- README.rdoc
|
141
142
|
- Rakefile
|
@@ -147,6 +148,7 @@ files:
|
|
147
148
|
- lib/fb_graph.rb
|
148
149
|
- lib/fb_graph/action.rb
|
149
150
|
- lib/fb_graph/album.rb
|
151
|
+
- lib/fb_graph/app_request.rb
|
150
152
|
- lib/fb_graph/application.rb
|
151
153
|
- lib/fb_graph/auth.rb
|
152
154
|
- lib/fb_graph/auth/cookie.rb
|
@@ -159,6 +161,7 @@ files:
|
|
159
161
|
- lib/fb_graph/connections/accounts.rb
|
160
162
|
- lib/fb_graph/connections/activities.rb
|
161
163
|
- lib/fb_graph/connections/albums.rb
|
164
|
+
- lib/fb_graph/connections/app_requests.rb
|
162
165
|
- lib/fb_graph/connections/attending.rb
|
163
166
|
- lib/fb_graph/connections/books.rb
|
164
167
|
- lib/fb_graph/connections/checkins.rb
|
@@ -272,6 +275,7 @@ files:
|
|
272
275
|
- spec/fake_json/users/albums/matake_private.json
|
273
276
|
- spec/fake_json/users/albums/matake_public.json
|
274
277
|
- spec/fake_json/users/albums/post_with_valid_access_token.json
|
278
|
+
- spec/fake_json/users/app_requests/me_private.json
|
275
279
|
- spec/fake_json/users/arjun_private.json
|
276
280
|
- spec/fake_json/users/arjun_public.json
|
277
281
|
- spec/fake_json/users/books/matake_private.json
|
@@ -320,6 +324,7 @@ files:
|
|
320
324
|
- spec/fake_json/users/television/matake_private.json
|
321
325
|
- spec/fake_json/users/videos/kirk_private.json
|
322
326
|
- spec/fb_graph/album_spec.rb
|
327
|
+
- spec/fb_graph/app_request_spec.rb
|
323
328
|
- spec/fb_graph/application_spec.rb
|
324
329
|
- spec/fb_graph/auth/cookie_spec.rb
|
325
330
|
- spec/fb_graph/auth_spec.rb
|
@@ -330,6 +335,7 @@ files:
|
|
330
335
|
- spec/fb_graph/connections/accounts_spec.rb
|
331
336
|
- spec/fb_graph/connections/activities_spec.rb
|
332
337
|
- spec/fb_graph/connections/albums_spec.rb
|
338
|
+
- spec/fb_graph/connections/app_requests_spec.rb
|
333
339
|
- spec/fb_graph/connections/attending_spec.rb
|
334
340
|
- spec/fb_graph/connections/books_spec.rb
|
335
341
|
- spec/fb_graph/connections/checkins_spec.rb
|
@@ -398,8 +404,8 @@ homepage: http://github.com/nov/fb_graph
|
|
398
404
|
licenses: []
|
399
405
|
|
400
406
|
post_install_message:
|
401
|
-
rdoc_options:
|
402
|
-
|
407
|
+
rdoc_options:
|
408
|
+
- --charset=UTF-8
|
403
409
|
require_paths:
|
404
410
|
- lib
|
405
411
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -423,12 +429,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
423
429
|
requirements: []
|
424
430
|
|
425
431
|
rubyforge_project:
|
426
|
-
rubygems_version: 1.
|
432
|
+
rubygems_version: 1.3.7
|
427
433
|
signing_key:
|
428
434
|
specification_version: 3
|
429
435
|
summary: A full-stack Facebook Graph API wrapper in Ruby.
|
430
436
|
test_files:
|
431
437
|
- spec/fb_graph/album_spec.rb
|
438
|
+
- spec/fb_graph/app_request_spec.rb
|
432
439
|
- spec/fb_graph/application_spec.rb
|
433
440
|
- spec/fb_graph/auth/cookie_spec.rb
|
434
441
|
- spec/fb_graph/auth_spec.rb
|
@@ -439,6 +446,7 @@ test_files:
|
|
439
446
|
- spec/fb_graph/connections/accounts_spec.rb
|
440
447
|
- spec/fb_graph/connections/activities_spec.rb
|
441
448
|
- spec/fb_graph/connections/albums_spec.rb
|
449
|
+
- spec/fb_graph/connections/app_requests_spec.rb
|
442
450
|
- spec/fb_graph/connections/attending_spec.rb
|
443
451
|
- spec/fb_graph/connections/books_spec.rb
|
444
452
|
- spec/fb_graph/connections/checkins_spec.rb
|