social_net 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +11 -0
  3. data/Gemfile +4 -0
  4. data/Gemfile.lock +94 -0
  5. data/MIT-LICENSE +20 -0
  6. data/README.md +264 -0
  7. data/Rakefile +2 -0
  8. data/coverage/.last_run.json +5 -0
  9. data/coverage/.resultset.json +847 -0
  10. data/coverage/.resultset.json.lock +0 -0
  11. data/coverage/assets/0.9.0/application.css +799 -0
  12. data/coverage/assets/0.9.0/application.js +1707 -0
  13. data/coverage/assets/0.9.0/colorbox/border.png +0 -0
  14. data/coverage/assets/0.9.0/colorbox/controls.png +0 -0
  15. data/coverage/assets/0.9.0/colorbox/loading.gif +0 -0
  16. data/coverage/assets/0.9.0/colorbox/loading_background.png +0 -0
  17. data/coverage/assets/0.9.0/favicon_green.png +0 -0
  18. data/coverage/assets/0.9.0/favicon_red.png +0 -0
  19. data/coverage/assets/0.9.0/favicon_yellow.png +0 -0
  20. data/coverage/assets/0.9.0/loading.gif +0 -0
  21. data/coverage/assets/0.9.0/magnify.png +0 -0
  22. data/coverage/assets/0.9.0/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  23. data/coverage/assets/0.9.0/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  24. data/coverage/assets/0.9.0/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  25. data/coverage/assets/0.9.0/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  26. data/coverage/assets/0.9.0/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  27. data/coverage/assets/0.9.0/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  28. data/coverage/assets/0.9.0/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  29. data/coverage/assets/0.9.0/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  30. data/coverage/assets/0.9.0/smoothness/images/ui-icons_222222_256x240.png +0 -0
  31. data/coverage/assets/0.9.0/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  32. data/coverage/assets/0.9.0/smoothness/images/ui-icons_454545_256x240.png +0 -0
  33. data/coverage/assets/0.9.0/smoothness/images/ui-icons_888888_256x240.png +0 -0
  34. data/coverage/assets/0.9.0/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  35. data/coverage/index.html +5624 -0
  36. data/lib/social_net/facebook/api/configuration.rb +14 -0
  37. data/lib/social_net/facebook/api/request.rb +66 -0
  38. data/lib/social_net/facebook/config.rb +16 -0
  39. data/lib/social_net/facebook/errors/response_error.rb +14 -0
  40. data/lib/social_net/facebook/errors/unknown_user.rb +11 -0
  41. data/lib/social_net/facebook/errors.rb +2 -0
  42. data/lib/social_net/facebook/models/page.rb +49 -0
  43. data/lib/social_net/facebook/models/user.rb +66 -0
  44. data/lib/social_net/facebook/models.rb +2 -0
  45. data/lib/social_net/facebook.rb +11 -0
  46. data/lib/social_net/instagram/api/configuration.rb +13 -0
  47. data/lib/social_net/instagram/api/request.rb +63 -0
  48. data/lib/social_net/instagram/config.rb +16 -0
  49. data/lib/social_net/instagram/errors/response_error.rb +14 -0
  50. data/lib/social_net/instagram/errors/unknown_user.rb +11 -0
  51. data/lib/social_net/instagram/errors.rb +2 -0
  52. data/lib/social_net/instagram/models/user.rb +70 -0
  53. data/lib/social_net/instagram/models.rb +1 -0
  54. data/lib/social_net/instagram.rb +10 -0
  55. data/lib/social_net/twitter/api/configuration.rb +16 -0
  56. data/lib/social_net/twitter/api/request.rb +121 -0
  57. data/lib/social_net/twitter/config.rb +15 -0
  58. data/lib/social_net/twitter/errors/response_error.rb +14 -0
  59. data/lib/social_net/twitter/errors/suspended_user.rb +11 -0
  60. data/lib/social_net/twitter/errors/too_many_users.rb +11 -0
  61. data/lib/social_net/twitter/errors/unknown_user.rb +11 -0
  62. data/lib/social_net/twitter/errors.rb +4 -0
  63. data/lib/social_net/twitter/models/user.rb +81 -0
  64. data/lib/social_net/twitter/models.rb +1 -0
  65. data/lib/social_net/twitter.rb +11 -0
  66. data/lib/social_net/version.rb +3 -0
  67. data/lib/social_net.rb +7 -0
  68. data/social_net-0.1.0.gem +0 -0
  69. data/social_net.gemspec +30 -0
  70. data/spec/social_net/facebook/models/pages_spec.rb +42 -0
  71. data/spec/social_net/facebook/models/users_spec.rb +44 -0
  72. data/spec/social_net/instagram/models/user_spec.rb +50 -0
  73. data/spec/social_net/twitter/models/user_spec.rb +98 -0
  74. data/spec/spec_helper.rb +11 -0
  75. data/spec/support/cassettes/SocialNet_Instagram_Models_User/_find_by/given_an_existing_case-insensitive_username/returns_an_object_representing_that_user.yml +106 -0
  76. data/spec/support/cassettes/SocialNet_Instagram_Models_User/_find_by/given_an_unknown_username/.yml +51 -0
  77. data/spec/support/cassettes/SocialNet_Instagram_Models_User/_find_by_/given_an_existing_case-insensitive_username/returns_an_object_representing_that_user.yml +106 -0
  78. data/spec/support/cassettes/SocialNet_Instagram_Models_User/_find_by_/given_an_unknown_username/.yml +51 -0
  79. data/spec/support/vcr.rb +22 -0
  80. metadata +245 -0
@@ -0,0 +1,847 @@
1
+ {
2
+ "RSpec": {
3
+ "coverage": {
4
+ "/Users/jeremy/projects/social_net/lib/social_net.rb": [
5
+ 1,
6
+ 1,
7
+ 1,
8
+ 1,
9
+ null,
10
+ 1,
11
+ null
12
+ ],
13
+ "/Users/jeremy/projects/social_net/lib/social_net/twitter.rb": [
14
+ 1,
15
+ 1,
16
+ 1,
17
+ null,
18
+ 1,
19
+ 1,
20
+ 1,
21
+ 1,
22
+ 1,
23
+ null,
24
+ null
25
+ ],
26
+ "/Users/jeremy/projects/social_net/lib/social_net/twitter/config.rb": [
27
+ 1,
28
+ null,
29
+ 1,
30
+ 1,
31
+ 1,
32
+ 1,
33
+ 0,
34
+ null,
35
+ null,
36
+ 1,
37
+ 0,
38
+ null,
39
+ null,
40
+ null,
41
+ null
42
+ ],
43
+ "/Users/jeremy/projects/social_net/lib/social_net/twitter/api/configuration.rb": [
44
+ 1,
45
+ 1,
46
+ 1,
47
+ 1,
48
+ 1,
49
+ null,
50
+ 1,
51
+ 0,
52
+ 0,
53
+ 0,
54
+ 0,
55
+ null,
56
+ null,
57
+ null,
58
+ null,
59
+ null
60
+ ],
61
+ "/Users/jeremy/projects/social_net/lib/social_net/twitter/errors.rb": [
62
+ 1,
63
+ 1,
64
+ 1,
65
+ 1
66
+ ],
67
+ "/Users/jeremy/projects/social_net/lib/social_net/twitter/errors/response_error.rb": [
68
+ 1,
69
+ 1,
70
+ 1,
71
+ 1,
72
+ 1,
73
+ null,
74
+ 1,
75
+ 0,
76
+ 0,
77
+ null,
78
+ null,
79
+ null,
80
+ null,
81
+ null
82
+ ],
83
+ "/Users/jeremy/projects/social_net/lib/social_net/twitter/errors/suspended_user.rb": [
84
+ 1,
85
+ 1,
86
+ 1,
87
+ 1,
88
+ 1,
89
+ 0,
90
+ null,
91
+ null,
92
+ null,
93
+ null,
94
+ null
95
+ ],
96
+ "/Users/jeremy/projects/social_net/lib/social_net/twitter/errors/too_many_users.rb": [
97
+ 1,
98
+ 1,
99
+ 1,
100
+ 1,
101
+ 1,
102
+ 0,
103
+ null,
104
+ null,
105
+ null,
106
+ null,
107
+ null
108
+ ],
109
+ "/Users/jeremy/projects/social_net/lib/social_net/twitter/errors/unknown_user.rb": [
110
+ 1,
111
+ 1,
112
+ 1,
113
+ 1,
114
+ 1,
115
+ 0,
116
+ null,
117
+ null,
118
+ null,
119
+ null,
120
+ null
121
+ ],
122
+ "/Users/jeremy/projects/social_net/lib/social_net/twitter/models.rb": [
123
+ 1
124
+ ],
125
+ "/Users/jeremy/projects/social_net/lib/social_net/twitter/models/user.rb": [
126
+ 1,
127
+ 1,
128
+ null,
129
+ 1,
130
+ 1,
131
+ 1,
132
+ 1,
133
+ 1,
134
+ null,
135
+ 1,
136
+ 0,
137
+ 0,
138
+ null,
139
+ null,
140
+ null,
141
+ null,
142
+ null,
143
+ null,
144
+ null,
145
+ null,
146
+ null,
147
+ null,
148
+ 1,
149
+ 0,
150
+ null,
151
+ 0,
152
+ null,
153
+ null,
154
+ null,
155
+ null,
156
+ null,
157
+ null,
158
+ null,
159
+ null,
160
+ null,
161
+ null,
162
+ null,
163
+ 1,
164
+ 0,
165
+ 0,
166
+ 0,
167
+ null,
168
+ 0,
169
+ 0,
170
+ 0,
171
+ null,
172
+ null,
173
+ null,
174
+ null,
175
+ null,
176
+ null,
177
+ null,
178
+ null,
179
+ null,
180
+ null,
181
+ null,
182
+ null,
183
+ null,
184
+ 1,
185
+ 0,
186
+ 0,
187
+ 0,
188
+ 0,
189
+ null,
190
+ 0,
191
+ 0,
192
+ 0,
193
+ null,
194
+ null,
195
+ null,
196
+ 1,
197
+ null,
198
+ 1,
199
+ 0,
200
+ 0,
201
+ null,
202
+ null,
203
+ null,
204
+ null,
205
+ null,
206
+ null
207
+ ],
208
+ "/Users/jeremy/projects/social_net/lib/social_net/twitter/api/request.rb": [
209
+ 1,
210
+ 1,
211
+ 1,
212
+ null,
213
+ 1,
214
+ 1,
215
+ 1,
216
+ 1,
217
+ 1,
218
+ 0,
219
+ 0,
220
+ 0,
221
+ 0,
222
+ 0,
223
+ null,
224
+ null,
225
+ 1,
226
+ null,
227
+ null,
228
+ 0,
229
+ null,
230
+ 0,
231
+ null,
232
+ 0,
233
+ 0,
234
+ null,
235
+ 0,
236
+ null,
237
+ null,
238
+ null,
239
+ 1,
240
+ null,
241
+ 1,
242
+ 0,
243
+ 0,
244
+ null,
245
+ null,
246
+ null,
247
+ 1,
248
+ 0,
249
+ null,
250
+ 0,
251
+ 0,
252
+ null,
253
+ null,
254
+ 1,
255
+ 0,
256
+ null,
257
+ null,
258
+ 1,
259
+ 0,
260
+ null,
261
+ null,
262
+ 1,
263
+ 0,
264
+ null,
265
+ null,
266
+ 1,
267
+ 0,
268
+ 0,
269
+ 0,
270
+ 0,
271
+ 0,
272
+ null,
273
+ null,
274
+ null,
275
+ null,
276
+ 1,
277
+ 0,
278
+ 0,
279
+ 0,
280
+ null,
281
+ null,
282
+ 1,
283
+ 0,
284
+ 0,
285
+ null,
286
+ null,
287
+ 1,
288
+ 0,
289
+ 0,
290
+ null,
291
+ 0,
292
+ null,
293
+ null,
294
+ 1,
295
+ 0,
296
+ 0,
297
+ 0,
298
+ 0,
299
+ 0,
300
+ 0,
301
+ 0,
302
+ null,
303
+ null,
304
+ null,
305
+ 1,
306
+ 0,
307
+ 0,
308
+ null,
309
+ null,
310
+ 1,
311
+ null,
312
+ 0,
313
+ 0,
314
+ null,
315
+ null,
316
+ 1,
317
+ 0,
318
+ 0,
319
+ 0,
320
+ 0,
321
+ null,
322
+ 0,
323
+ 0,
324
+ null,
325
+ null,
326
+ null,
327
+ null,
328
+ null,
329
+ null
330
+ ],
331
+ "/Users/jeremy/projects/social_net/lib/social_net/instagram.rb": [
332
+ 1,
333
+ 1,
334
+ null,
335
+ 1,
336
+ 1,
337
+ 1,
338
+ 1,
339
+ 1,
340
+ null,
341
+ null
342
+ ],
343
+ "/Users/jeremy/projects/social_net/lib/social_net/instagram/config.rb": [
344
+ 1,
345
+ null,
346
+ 1,
347
+ 1,
348
+ 1,
349
+ 1,
350
+ 1,
351
+ null,
352
+ null,
353
+ 1,
354
+ 13,
355
+ null,
356
+ null,
357
+ null,
358
+ null,
359
+ null
360
+ ],
361
+ "/Users/jeremy/projects/social_net/lib/social_net/instagram/api/configuration.rb": [
362
+ 1,
363
+ 1,
364
+ 1,
365
+ 1,
366
+ 1,
367
+ null,
368
+ 1,
369
+ 1,
370
+ null,
371
+ null,
372
+ null,
373
+ null,
374
+ null
375
+ ],
376
+ "/Users/jeremy/projects/social_net/lib/social_net/instagram/models.rb": [
377
+ 1
378
+ ],
379
+ "/Users/jeremy/projects/social_net/lib/social_net/instagram/models/user.rb": [
380
+ 1,
381
+ 1,
382
+ null,
383
+ 1,
384
+ 1,
385
+ 1,
386
+ 1,
387
+ 1,
388
+ null,
389
+ 1,
390
+ 2,
391
+ 2,
392
+ null,
393
+ null,
394
+ null,
395
+ null,
396
+ null,
397
+ null,
398
+ null,
399
+ null,
400
+ null,
401
+ null,
402
+ 1,
403
+ 2,
404
+ null,
405
+ 1,
406
+ null,
407
+ null,
408
+ null,
409
+ null,
410
+ null,
411
+ null,
412
+ null,
413
+ null,
414
+ null,
415
+ null,
416
+ null,
417
+ null,
418
+ 1,
419
+ 4,
420
+ 4,
421
+ 0,
422
+ 0,
423
+ null,
424
+ null,
425
+ null,
426
+ 1,
427
+ null,
428
+ 1,
429
+ 4,
430
+ 4,
431
+ 6,
432
+ 2,
433
+ null,
434
+ 2,
435
+ null,
436
+ null,
437
+ null,
438
+ 1,
439
+ 2,
440
+ 2,
441
+ null,
442
+ 0,
443
+ 0,
444
+ null,
445
+ null,
446
+ null,
447
+ null,
448
+ null,
449
+ null
450
+ ],
451
+ "/Users/jeremy/projects/social_net/lib/social_net/instagram/api/request.rb": [
452
+ 1,
453
+ 1,
454
+ 1,
455
+ 1,
456
+ null,
457
+ 1,
458
+ 1,
459
+ 1,
460
+ 1,
461
+ 1,
462
+ 6,
463
+ 6,
464
+ 6,
465
+ 6,
466
+ null,
467
+ null,
468
+ 1,
469
+ null,
470
+ 6,
471
+ null,
472
+ 6,
473
+ null,
474
+ 0,
475
+ null,
476
+ null,
477
+ null,
478
+ 1,
479
+ 1,
480
+ 6,
481
+ 6,
482
+ null,
483
+ null,
484
+ null,
485
+ 1,
486
+ 6,
487
+ 6,
488
+ null,
489
+ null,
490
+ 1,
491
+ 18,
492
+ null,
493
+ null,
494
+ 1,
495
+ null,
496
+ 6,
497
+ 6,
498
+ 6,
499
+ null,
500
+ null,
501
+ 1,
502
+ 0,
503
+ 0,
504
+ 0,
505
+ 0,
506
+ null,
507
+ 0,
508
+ 0,
509
+ null,
510
+ null,
511
+ null,
512
+ null,
513
+ null,
514
+ null
515
+ ],
516
+ "/Users/jeremy/projects/social_net/lib/social_net/instagram/errors/response_error.rb": [
517
+ 1,
518
+ 1,
519
+ 1,
520
+ 1,
521
+ 1,
522
+ null,
523
+ 1,
524
+ 0,
525
+ 0,
526
+ null,
527
+ null,
528
+ null,
529
+ null,
530
+ null
531
+ ],
532
+ "/Users/jeremy/projects/social_net/lib/social_net/instagram/errors/unknown_user.rb": [
533
+ 1,
534
+ 1,
535
+ 1,
536
+ 1,
537
+ 1,
538
+ 0,
539
+ null,
540
+ null,
541
+ null,
542
+ null,
543
+ null
544
+ ],
545
+ "/Users/jeremy/projects/social_net/lib/social_net/instagram/errors.rb": [
546
+ 1,
547
+ 1
548
+ ],
549
+ "/Users/jeremy/projects/social_net/lib/social_net/facebook.rb": [
550
+ 1,
551
+ 1,
552
+ 1,
553
+ null,
554
+ 1,
555
+ 1,
556
+ 1,
557
+ 1,
558
+ 1,
559
+ null,
560
+ null
561
+ ],
562
+ "/Users/jeremy/projects/social_net/lib/social_net/facebook/config.rb": [
563
+ 1,
564
+ null,
565
+ 1,
566
+ 1,
567
+ 1,
568
+ 1,
569
+ 0,
570
+ null,
571
+ null,
572
+ 1,
573
+ 0,
574
+ null,
575
+ null,
576
+ null,
577
+ null,
578
+ null
579
+ ],
580
+ "/Users/jeremy/projects/social_net/lib/social_net/facebook/api/configuration.rb": [
581
+ 1,
582
+ 1,
583
+ 1,
584
+ 1,
585
+ 1,
586
+ null,
587
+ 1,
588
+ 0,
589
+ 0,
590
+ null,
591
+ null,
592
+ null,
593
+ null,
594
+ null
595
+ ],
596
+ "/Users/jeremy/projects/social_net/lib/social_net/facebook/models.rb": [
597
+ 1,
598
+ 1
599
+ ],
600
+ "/Users/jeremy/projects/social_net/lib/social_net/facebook/models/page.rb": [
601
+ 1,
602
+ 1,
603
+ null,
604
+ 1,
605
+ 1,
606
+ 1,
607
+ 1,
608
+ 1,
609
+ null,
610
+ 1,
611
+ 0,
612
+ 0,
613
+ null,
614
+ null,
615
+ null,
616
+ null,
617
+ null,
618
+ null,
619
+ null,
620
+ null,
621
+ null,
622
+ null,
623
+ null,
624
+ 1,
625
+ 0,
626
+ null,
627
+ 0,
628
+ null,
629
+ null,
630
+ null,
631
+ null,
632
+ null,
633
+ null,
634
+ null,
635
+ null,
636
+ null,
637
+ null,
638
+ 1,
639
+ 0,
640
+ 0,
641
+ null,
642
+ 0,
643
+ 0,
644
+ null,
645
+ null,
646
+ null,
647
+ null,
648
+ null,
649
+ null
650
+ ],
651
+ "/Users/jeremy/projects/social_net/lib/social_net/facebook/api/request.rb": [
652
+ 1,
653
+ 1,
654
+ 1,
655
+ null,
656
+ 1,
657
+ 1,
658
+ 1,
659
+ 1,
660
+ 1,
661
+ 0,
662
+ 0,
663
+ 0,
664
+ 0,
665
+ 0,
666
+ null,
667
+ null,
668
+ 1,
669
+ null,
670
+ 0,
671
+ null,
672
+ 0,
673
+ null,
674
+ 0,
675
+ null,
676
+ null,
677
+ null,
678
+ 1,
679
+ 1,
680
+ 0,
681
+ 0,
682
+ null,
683
+ null,
684
+ null,
685
+ 1,
686
+ 0,
687
+ 0,
688
+ null,
689
+ null,
690
+ 1,
691
+ 0,
692
+ null,
693
+ null,
694
+ 1,
695
+ 0,
696
+ null,
697
+ null,
698
+ 1,
699
+ null,
700
+ 0,
701
+ 0,
702
+ null,
703
+ null,
704
+ 1,
705
+ 0,
706
+ 0,
707
+ 0,
708
+ 0,
709
+ null,
710
+ 0,
711
+ 0,
712
+ null,
713
+ null,
714
+ null,
715
+ null,
716
+ null,
717
+ null
718
+ ],
719
+ "/Users/jeremy/projects/social_net/lib/social_net/facebook/errors/response_error.rb": [
720
+ 1,
721
+ 1,
722
+ 1,
723
+ 1,
724
+ 1,
725
+ null,
726
+ 1,
727
+ 0,
728
+ 0,
729
+ null,
730
+ null,
731
+ null,
732
+ null,
733
+ null
734
+ ],
735
+ "/Users/jeremy/projects/social_net/lib/social_net/facebook/errors.rb": [
736
+ 1,
737
+ 1
738
+ ],
739
+ "/Users/jeremy/projects/social_net/lib/social_net/facebook/errors/unknown_user.rb": [
740
+ 1,
741
+ 1,
742
+ 1,
743
+ 1,
744
+ 1,
745
+ 0,
746
+ null,
747
+ null,
748
+ null,
749
+ null,
750
+ null
751
+ ],
752
+ "/Users/jeremy/projects/social_net/lib/social_net/facebook/models/user.rb": [
753
+ 1,
754
+ 1,
755
+ null,
756
+ 1,
757
+ 1,
758
+ 1,
759
+ 1,
760
+ 1,
761
+ null,
762
+ 1,
763
+ 0,
764
+ 0,
765
+ 0,
766
+ 0,
767
+ 0,
768
+ 0,
769
+ null,
770
+ null,
771
+ 1,
772
+ 0,
773
+ 0,
774
+ 0,
775
+ null,
776
+ null,
777
+ null,
778
+ null,
779
+ null,
780
+ null,
781
+ null,
782
+ null,
783
+ null,
784
+ null,
785
+ null,
786
+ null,
787
+ 1,
788
+ 0,
789
+ null,
790
+ 0,
791
+ null,
792
+ null,
793
+ null,
794
+ null,
795
+ null,
796
+ null,
797
+ null,
798
+ null,
799
+ null,
800
+ null,
801
+ null,
802
+ null,
803
+ 1,
804
+ 0,
805
+ 0,
806
+ 0,
807
+ null,
808
+ 0,
809
+ null,
810
+ null,
811
+ 0,
812
+ 0,
813
+ null,
814
+ null,
815
+ null,
816
+ null,
817
+ null,
818
+ null
819
+ ],
820
+ "/Users/jeremy/projects/social_net/spec/support/vcr.rb": [
821
+ 1,
822
+ 1,
823
+ null,
824
+ 1,
825
+ 1,
826
+ 1,
827
+ 1,
828
+ 7,
829
+ 1,
830
+ 6,
831
+ 0,
832
+ null,
833
+ 6,
834
+ null,
835
+ null,
836
+ 1,
837
+ 6,
838
+ 0,
839
+ null,
840
+ null,
841
+ 1,
842
+ null
843
+ ]
844
+ },
845
+ "timestamp": 1489449485
846
+ }
847
+ }