social_profile 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/social_profile/people/facebook.rb +23 -4
- data/lib/social_profile/people/twitter.rb +50 -0
- data/lib/social_profile/people/vkontakte.rb +186 -0
- data/lib/social_profile/providers/odnoklassniki.rb +74 -0
- data/lib/social_profile/version.rb +1 -1
- data/lib/social_profile.rb +2 -0
- data/social_profile.gemspec +3 -3
- data/spec/mock_json/facebook/followers_5_0.json +34 -0
- data/spec/mock_json/facebook/followers_5_10.json +35 -0
- data/spec/mock_json/facebook/followers_5_15.json +26 -0
- data/spec/mock_json/twitter/auth.json +1 -1
- data/spec/mock_json/twitter/last_posts.json +4326 -0
- data/spec/mock_json/vkontakte/comments_photos.json +707 -0
- data/spec/mock_json/vkontakte/comments_post_655.json +42 -0
- data/spec/mock_json/vkontakte/followers.json +187 -0
- data/spec/mock_json/vkontakte/followers_20.json +127 -0
- data/spec/mock_json/vkontakte/followers_20_2.json +67 -0
- data/spec/mock_json/vkontakte/friends.json +1728 -0
- data/spec/mock_json/vkontakte/last_posts.json +4279 -0
- data/spec/mock_json/vkontakte/last_posts_2.json +2736 -0
- data/spec/mock_json/vkontakte/last_posts_3.json +533 -0
- data/spec/mock_json/vkontakte/likes_photo_290498375.json +24 -0
- data/spec/mock_json/vkontakte/likes_post_655.json +14 -0
- data/spec/mock_json/vkontakte/shares_post_3675.json +1373 -0
- data/spec/people/facebook_spec.rb +25 -0
- data/spec/people/twitter_spec.rb +21 -1
- data/spec/people/vkontakte_spec.rb +95 -3
- data/spec/spec_helper.rb +1 -1
- metadata +47 -14
@@ -0,0 +1,533 @@
|
|
1
|
+
{
|
2
|
+
"response": {
|
3
|
+
"count": 219,
|
4
|
+
"items": [
|
5
|
+
{
|
6
|
+
"id": 87,
|
7
|
+
"from_id": 2592709,
|
8
|
+
"owner_id": 2592709,
|
9
|
+
"date": 1216934833,
|
10
|
+
"post_type": "post",
|
11
|
+
"text": "бухой.",
|
12
|
+
"can_delete": 1,
|
13
|
+
"can_pin": 1,
|
14
|
+
"post_source": {
|
15
|
+
"type": "vk"
|
16
|
+
},
|
17
|
+
"comments": {
|
18
|
+
"count": 0,
|
19
|
+
"can_post": 1
|
20
|
+
},
|
21
|
+
"likes": {
|
22
|
+
"count": 0,
|
23
|
+
"user_likes": 0,
|
24
|
+
"can_like": 1,
|
25
|
+
"can_publish": 0
|
26
|
+
},
|
27
|
+
"reposts": {
|
28
|
+
"count": 0,
|
29
|
+
"user_reposted": 0
|
30
|
+
}
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"id": 84,
|
34
|
+
"from_id": 2592709,
|
35
|
+
"owner_id": 2592709,
|
36
|
+
"date": 1214322219,
|
37
|
+
"post_type": "post",
|
38
|
+
"text": "сдал сессию.... хочу спать!",
|
39
|
+
"can_delete": 1,
|
40
|
+
"can_pin": 1,
|
41
|
+
"post_source": {
|
42
|
+
"type": "vk"
|
43
|
+
},
|
44
|
+
"comments": {
|
45
|
+
"count": 0,
|
46
|
+
"can_post": 1
|
47
|
+
},
|
48
|
+
"likes": {
|
49
|
+
"count": 0,
|
50
|
+
"user_likes": 0,
|
51
|
+
"can_like": 1,
|
52
|
+
"can_publish": 0
|
53
|
+
},
|
54
|
+
"reposts": {
|
55
|
+
"count": 0,
|
56
|
+
"user_reposted": 0
|
57
|
+
}
|
58
|
+
},
|
59
|
+
{
|
60
|
+
"id": 83,
|
61
|
+
"from_id": 2592709,
|
62
|
+
"owner_id": 2592709,
|
63
|
+
"date": 1211991620,
|
64
|
+
"post_type": "post",
|
65
|
+
"text": "їде криша...",
|
66
|
+
"can_delete": 1,
|
67
|
+
"can_pin": 1,
|
68
|
+
"post_source": {
|
69
|
+
"type": "vk"
|
70
|
+
},
|
71
|
+
"comments": {
|
72
|
+
"count": 0,
|
73
|
+
"can_post": 1
|
74
|
+
},
|
75
|
+
"likes": {
|
76
|
+
"count": 0,
|
77
|
+
"user_likes": 0,
|
78
|
+
"can_like": 1,
|
79
|
+
"can_publish": 0
|
80
|
+
},
|
81
|
+
"reposts": {
|
82
|
+
"count": 0,
|
83
|
+
"user_reposted": 0
|
84
|
+
}
|
85
|
+
},
|
86
|
+
{
|
87
|
+
"id": 82,
|
88
|
+
"from_id": 2592709,
|
89
|
+
"owner_id": 2592709,
|
90
|
+
"date": 1211577392,
|
91
|
+
"post_type": "post",
|
92
|
+
"text": "Не имей 100 рублей, а имей 100 друзей!",
|
93
|
+
"can_delete": 1,
|
94
|
+
"can_pin": 1,
|
95
|
+
"post_source": {
|
96
|
+
"type": "vk"
|
97
|
+
},
|
98
|
+
"comments": {
|
99
|
+
"count": 0,
|
100
|
+
"can_post": 1
|
101
|
+
},
|
102
|
+
"likes": {
|
103
|
+
"count": 0,
|
104
|
+
"user_likes": 0,
|
105
|
+
"can_like": 1,
|
106
|
+
"can_publish": 0
|
107
|
+
},
|
108
|
+
"reposts": {
|
109
|
+
"count": 0,
|
110
|
+
"user_reposted": 0
|
111
|
+
}
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"id": 80,
|
115
|
+
"from_id": 2592709,
|
116
|
+
"owner_id": 2592709,
|
117
|
+
"date": 1210970988,
|
118
|
+
"post_type": "post",
|
119
|
+
"text": "ГДЕ КУПИТЬ ФУТБОЛКУ ЛИВЕРПУЛЯ В КИЕВЕ??????????????",
|
120
|
+
"can_delete": 1,
|
121
|
+
"can_pin": 1,
|
122
|
+
"post_source": {
|
123
|
+
"type": "vk"
|
124
|
+
},
|
125
|
+
"comments": {
|
126
|
+
"count": 0,
|
127
|
+
"can_post": 1
|
128
|
+
},
|
129
|
+
"likes": {
|
130
|
+
"count": 0,
|
131
|
+
"user_likes": 0,
|
132
|
+
"can_like": 1,
|
133
|
+
"can_publish": 0
|
134
|
+
},
|
135
|
+
"reposts": {
|
136
|
+
"count": 0,
|
137
|
+
"user_reposted": 0
|
138
|
+
}
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"id": 79,
|
142
|
+
"from_id": 2592709,
|
143
|
+
"owner_id": 2592709,
|
144
|
+
"date": 1210535248,
|
145
|
+
"post_type": "post",
|
146
|
+
"text": "моє творіння http://autologo.net.",
|
147
|
+
"can_delete": 1,
|
148
|
+
"can_pin": 1,
|
149
|
+
"post_source": {
|
150
|
+
"type": "vk"
|
151
|
+
},
|
152
|
+
"comments": {
|
153
|
+
"count": 0,
|
154
|
+
"can_post": 1
|
155
|
+
},
|
156
|
+
"likes": {
|
157
|
+
"count": 0,
|
158
|
+
"user_likes": 0,
|
159
|
+
"can_like": 1,
|
160
|
+
"can_publish": 0
|
161
|
+
},
|
162
|
+
"reposts": {
|
163
|
+
"count": 0,
|
164
|
+
"user_reposted": 0
|
165
|
+
}
|
166
|
+
},
|
167
|
+
{
|
168
|
+
"id": 78,
|
169
|
+
"from_id": 2592709,
|
170
|
+
"owner_id": 2592709,
|
171
|
+
"date": 1210454036,
|
172
|
+
"post_type": "post",
|
173
|
+
"text": "моє творіння http://autologo.net.",
|
174
|
+
"can_delete": 1,
|
175
|
+
"can_pin": 1,
|
176
|
+
"post_source": {
|
177
|
+
"type": "vk"
|
178
|
+
},
|
179
|
+
"comments": {
|
180
|
+
"count": 0,
|
181
|
+
"can_post": 1
|
182
|
+
},
|
183
|
+
"likes": {
|
184
|
+
"count": 0,
|
185
|
+
"user_likes": 0,
|
186
|
+
"can_like": 1,
|
187
|
+
"can_publish": 0
|
188
|
+
},
|
189
|
+
"reposts": {
|
190
|
+
"count": 0,
|
191
|
+
"user_reposted": 0
|
192
|
+
}
|
193
|
+
},
|
194
|
+
{
|
195
|
+
"id": 77,
|
196
|
+
"from_id": 2592709,
|
197
|
+
"owner_id": 2592709,
|
198
|
+
"date": 1210231610,
|
199
|
+
"post_type": "post",
|
200
|
+
"text": "моє творіння http://autologo.net.",
|
201
|
+
"can_delete": 1,
|
202
|
+
"can_pin": 1,
|
203
|
+
"post_source": {
|
204
|
+
"type": "vk"
|
205
|
+
},
|
206
|
+
"comments": {
|
207
|
+
"count": 0,
|
208
|
+
"can_post": 1
|
209
|
+
},
|
210
|
+
"likes": {
|
211
|
+
"count": 0,
|
212
|
+
"user_likes": 0,
|
213
|
+
"can_like": 1,
|
214
|
+
"can_publish": 0
|
215
|
+
},
|
216
|
+
"reposts": {
|
217
|
+
"count": 0,
|
218
|
+
"user_reposted": 0
|
219
|
+
}
|
220
|
+
},
|
221
|
+
{
|
222
|
+
"id": 76,
|
223
|
+
"from_id": 2592709,
|
224
|
+
"owner_id": 2592709,
|
225
|
+
"date": 1210148476,
|
226
|
+
"post_type": "post",
|
227
|
+
"text": "моє творіння http://autologo.net.",
|
228
|
+
"can_delete": 1,
|
229
|
+
"can_pin": 1,
|
230
|
+
"post_source": {
|
231
|
+
"type": "vk"
|
232
|
+
},
|
233
|
+
"comments": {
|
234
|
+
"count": 0,
|
235
|
+
"can_post": 1
|
236
|
+
},
|
237
|
+
"likes": {
|
238
|
+
"count": 0,
|
239
|
+
"user_likes": 0,
|
240
|
+
"can_like": 1,
|
241
|
+
"can_publish": 0
|
242
|
+
},
|
243
|
+
"reposts": {
|
244
|
+
"count": 0,
|
245
|
+
"user_reposted": 0
|
246
|
+
}
|
247
|
+
},
|
248
|
+
{
|
249
|
+
"id": 75,
|
250
|
+
"from_id": 2592709,
|
251
|
+
"owner_id": 2592709,
|
252
|
+
"date": 1210111897,
|
253
|
+
"post_type": "post",
|
254
|
+
"text": "моє творіння http://autologo.net.",
|
255
|
+
"can_delete": 1,
|
256
|
+
"can_pin": 1,
|
257
|
+
"post_source": {
|
258
|
+
"type": "vk"
|
259
|
+
},
|
260
|
+
"comments": {
|
261
|
+
"count": 0,
|
262
|
+
"can_post": 1
|
263
|
+
},
|
264
|
+
"likes": {
|
265
|
+
"count": 0,
|
266
|
+
"user_likes": 0,
|
267
|
+
"can_like": 1,
|
268
|
+
"can_publish": 0
|
269
|
+
},
|
270
|
+
"reposts": {
|
271
|
+
"count": 0,
|
272
|
+
"user_reposted": 0
|
273
|
+
}
|
274
|
+
},
|
275
|
+
{
|
276
|
+
"id": 74,
|
277
|
+
"from_id": 2592709,
|
278
|
+
"owner_id": 2592709,
|
279
|
+
"date": 1210076999,
|
280
|
+
"post_type": "post",
|
281
|
+
"text": "моє творіння http://autologo.net.",
|
282
|
+
"can_delete": 1,
|
283
|
+
"can_pin": 1,
|
284
|
+
"post_source": {
|
285
|
+
"type": "vk"
|
286
|
+
},
|
287
|
+
"comments": {
|
288
|
+
"count": 0,
|
289
|
+
"can_post": 1
|
290
|
+
},
|
291
|
+
"likes": {
|
292
|
+
"count": 0,
|
293
|
+
"user_likes": 0,
|
294
|
+
"can_like": 1,
|
295
|
+
"can_publish": 0
|
296
|
+
},
|
297
|
+
"reposts": {
|
298
|
+
"count": 0,
|
299
|
+
"user_reposted": 0
|
300
|
+
}
|
301
|
+
},
|
302
|
+
{
|
303
|
+
"id": 73,
|
304
|
+
"from_id": 2592709,
|
305
|
+
"owner_id": 2592709,
|
306
|
+
"date": 1210021405,
|
307
|
+
"post_type": "post",
|
308
|
+
"text": "моє творіння http://autologo.net.",
|
309
|
+
"can_delete": 1,
|
310
|
+
"can_pin": 1,
|
311
|
+
"post_source": {
|
312
|
+
"type": "vk"
|
313
|
+
},
|
314
|
+
"comments": {
|
315
|
+
"count": 0,
|
316
|
+
"can_post": 1
|
317
|
+
},
|
318
|
+
"likes": {
|
319
|
+
"count": 0,
|
320
|
+
"user_likes": 0,
|
321
|
+
"can_like": 1,
|
322
|
+
"can_publish": 0
|
323
|
+
},
|
324
|
+
"reposts": {
|
325
|
+
"count": 0,
|
326
|
+
"user_reposted": 0
|
327
|
+
}
|
328
|
+
},
|
329
|
+
{
|
330
|
+
"id": 72,
|
331
|
+
"from_id": 2592709,
|
332
|
+
"owner_id": 2592709,
|
333
|
+
"date": 1210005840,
|
334
|
+
"post_type": "post",
|
335
|
+
"text": "моє творіння http://autologo.net.",
|
336
|
+
"can_delete": 1,
|
337
|
+
"can_pin": 1,
|
338
|
+
"post_source": {
|
339
|
+
"type": "vk"
|
340
|
+
},
|
341
|
+
"comments": {
|
342
|
+
"count": 0,
|
343
|
+
"can_post": 1
|
344
|
+
},
|
345
|
+
"likes": {
|
346
|
+
"count": 0,
|
347
|
+
"user_likes": 0,
|
348
|
+
"can_like": 1,
|
349
|
+
"can_publish": 0
|
350
|
+
},
|
351
|
+
"reposts": {
|
352
|
+
"count": 0,
|
353
|
+
"user_reposted": 0
|
354
|
+
}
|
355
|
+
},
|
356
|
+
{
|
357
|
+
"id": 71,
|
358
|
+
"from_id": 2592709,
|
359
|
+
"owner_id": 2592709,
|
360
|
+
"date": 1209924066,
|
361
|
+
"post_type": "post",
|
362
|
+
"text": "моє творіння http://autologo.net.",
|
363
|
+
"can_delete": 1,
|
364
|
+
"can_pin": 1,
|
365
|
+
"post_source": {
|
366
|
+
"type": "vk"
|
367
|
+
},
|
368
|
+
"comments": {
|
369
|
+
"count": 0,
|
370
|
+
"can_post": 1
|
371
|
+
},
|
372
|
+
"likes": {
|
373
|
+
"count": 0,
|
374
|
+
"user_likes": 0,
|
375
|
+
"can_like": 1,
|
376
|
+
"can_publish": 0
|
377
|
+
},
|
378
|
+
"reposts": {
|
379
|
+
"count": 0,
|
380
|
+
"user_reposted": 0
|
381
|
+
}
|
382
|
+
},
|
383
|
+
{
|
384
|
+
"id": 70,
|
385
|
+
"from_id": 2592709,
|
386
|
+
"owner_id": 2592709,
|
387
|
+
"date": 1209923946,
|
388
|
+
"post_type": "post",
|
389
|
+
"text": "http://autologo.net.",
|
390
|
+
"can_delete": 1,
|
391
|
+
"can_pin": 1,
|
392
|
+
"post_source": {
|
393
|
+
"type": "vk"
|
394
|
+
},
|
395
|
+
"comments": {
|
396
|
+
"count": 0,
|
397
|
+
"can_post": 1
|
398
|
+
},
|
399
|
+
"likes": {
|
400
|
+
"count": 0,
|
401
|
+
"user_likes": 0,
|
402
|
+
"can_like": 1,
|
403
|
+
"can_publish": 0
|
404
|
+
},
|
405
|
+
"reposts": {
|
406
|
+
"count": 0,
|
407
|
+
"user_reposted": 0
|
408
|
+
}
|
409
|
+
},
|
410
|
+
{
|
411
|
+
"id": 69,
|
412
|
+
"from_id": 2592709,
|
413
|
+
"owner_id": 2592709,
|
414
|
+
"date": 1209849721,
|
415
|
+
"post_type": "post",
|
416
|
+
"text": "http://autologo.net.",
|
417
|
+
"can_delete": 1,
|
418
|
+
"can_pin": 1,
|
419
|
+
"post_source": {
|
420
|
+
"type": "vk"
|
421
|
+
},
|
422
|
+
"comments": {
|
423
|
+
"count": 0,
|
424
|
+
"can_post": 1
|
425
|
+
},
|
426
|
+
"likes": {
|
427
|
+
"count": 0,
|
428
|
+
"user_likes": 0,
|
429
|
+
"can_like": 1,
|
430
|
+
"can_publish": 0
|
431
|
+
},
|
432
|
+
"reposts": {
|
433
|
+
"count": 0,
|
434
|
+
"user_reposted": 0
|
435
|
+
}
|
436
|
+
},
|
437
|
+
{
|
438
|
+
"id": 68,
|
439
|
+
"from_id": 2592709,
|
440
|
+
"owner_id": 2592709,
|
441
|
+
"date": 1209636252,
|
442
|
+
"post_type": "post",
|
443
|
+
"text": "http://autologo.net.",
|
444
|
+
"can_delete": 1,
|
445
|
+
"can_pin": 1,
|
446
|
+
"post_source": {
|
447
|
+
"type": "vk"
|
448
|
+
},
|
449
|
+
"comments": {
|
450
|
+
"count": 0,
|
451
|
+
"can_post": 1
|
452
|
+
},
|
453
|
+
"likes": {
|
454
|
+
"count": 0,
|
455
|
+
"user_likes": 0,
|
456
|
+
"can_like": 1,
|
457
|
+
"can_publish": 0
|
458
|
+
},
|
459
|
+
"reposts": {
|
460
|
+
"count": 0,
|
461
|
+
"user_reposted": 0
|
462
|
+
}
|
463
|
+
},
|
464
|
+
{
|
465
|
+
"id": 31,
|
466
|
+
"from_id": 2592709,
|
467
|
+
"owner_id": 2592709,
|
468
|
+
"date": 1203596242,
|
469
|
+
"post_type": "post",
|
470
|
+
"text": "кодируюсь.",
|
471
|
+
"can_delete": 1,
|
472
|
+
"can_pin": 1,
|
473
|
+
"post_source": {
|
474
|
+
"type": "vk"
|
475
|
+
},
|
476
|
+
"comments": {
|
477
|
+
"count": 0,
|
478
|
+
"can_post": 1
|
479
|
+
},
|
480
|
+
"likes": {
|
481
|
+
"count": 0,
|
482
|
+
"user_likes": 0,
|
483
|
+
"can_like": 1,
|
484
|
+
"can_publish": 0
|
485
|
+
},
|
486
|
+
"reposts": {
|
487
|
+
"count": 0,
|
488
|
+
"user_reposted": 0
|
489
|
+
}
|
490
|
+
},
|
491
|
+
{
|
492
|
+
"id": 1,
|
493
|
+
"from_id": 2592709,
|
494
|
+
"owner_id": 2592709,
|
495
|
+
"date": 1192517397,
|
496
|
+
"post_type": "post",
|
497
|
+
"text": "на работе.",
|
498
|
+
"can_delete": 1,
|
499
|
+
"can_pin": 1,
|
500
|
+
"post_source": {
|
501
|
+
"type": "vk"
|
502
|
+
},
|
503
|
+
"comments": {
|
504
|
+
"count": 0,
|
505
|
+
"can_post": 1
|
506
|
+
},
|
507
|
+
"likes": {
|
508
|
+
"count": 0,
|
509
|
+
"user_likes": 0,
|
510
|
+
"can_like": 1,
|
511
|
+
"can_publish": 0
|
512
|
+
},
|
513
|
+
"reposts": {
|
514
|
+
"count": 0,
|
515
|
+
"user_reposted": 0
|
516
|
+
}
|
517
|
+
}
|
518
|
+
],
|
519
|
+
"profiles": [
|
520
|
+
{
|
521
|
+
"id": 2592709,
|
522
|
+
"first_name": "Павел",
|
523
|
+
"last_name": "Галета",
|
524
|
+
"sex": 2,
|
525
|
+
"screen_name": "pavel.galeta",
|
526
|
+
"photo_50": "https://pp.vk.me/...09/e_a3716437.jpg",
|
527
|
+
"photo_100": "https://pp.vk.me/...09/d_847b328d.jpg",
|
528
|
+
"online": 0
|
529
|
+
}
|
530
|
+
],
|
531
|
+
"groups": []
|
532
|
+
}
|
533
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
{
|
2
|
+
"response": {
|
3
|
+
"count": 17,
|
4
|
+
"items": [
|
5
|
+
2649518,
|
6
|
+
111449109,
|
7
|
+
5221870,
|
8
|
+
7406281,
|
9
|
+
6391852,
|
10
|
+
91519597,
|
11
|
+
19039227,
|
12
|
+
9537096,
|
13
|
+
119204825,
|
14
|
+
6394545,
|
15
|
+
4440077,
|
16
|
+
20839851,
|
17
|
+
7859016,
|
18
|
+
5935286,
|
19
|
+
5691590,
|
20
|
+
8993336,
|
21
|
+
7510544
|
22
|
+
]
|
23
|
+
}
|
24
|
+
}
|