gowalla 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. data/.document +5 -0
  2. data/.gitignore +25 -0
  3. data/Gemfile +3 -0
  4. data/Gemfile.lock +43 -0
  5. data/LICENSE +20 -0
  6. data/README.md +96 -0
  7. data/Rakefile +14 -0
  8. data/changelog.md +33 -0
  9. data/gowalla.gemspec +30 -0
  10. data/lib/gowalla.rb +26 -22
  11. data/lib/gowalla/checkins.rb +31 -0
  12. data/lib/gowalla/client.rb +22 -176
  13. data/lib/gowalla/flags.rb +42 -0
  14. data/lib/gowalla/items.rb +22 -0
  15. data/lib/gowalla/spots.rb +67 -0
  16. data/lib/gowalla/trips.rb +27 -0
  17. data/lib/gowalla/users.rb +91 -0
  18. data/lib/gowalla/version.rb +3 -0
  19. data/test/checkins_test.rb +18 -0
  20. data/test/client_test.rb +72 -0
  21. data/test/fixtures/categories.json +1826 -0
  22. data/test/fixtures/category.json +8 -0
  23. data/test/fixtures/challenges.json +191 -0
  24. data/test/fixtures/checkin.json +21 -0
  25. data/test/fixtures/events.json +185 -0
  26. data/test/fixtures/find_spots.json +620 -0
  27. data/test/fixtures/find_trips.json +695 -0
  28. data/test/fixtures/flag.json +23 -0
  29. data/test/fixtures/flags.json +31 -0
  30. data/test/fixtures/friend_requests.json +21 -0
  31. data/test/fixtures/friends.json +3 -0
  32. data/test/fixtures/friends_recent.json +243 -0
  33. data/test/fixtures/item.json +8 -0
  34. data/test/fixtures/item_events.json +35 -0
  35. data/test/fixtures/items.json +100 -0
  36. data/test/fixtures/me.json +49 -0
  37. data/test/fixtures/missing_items.json +1 -0
  38. data/test/fixtures/new_spot.json +49 -0
  39. data/test/fixtures/photos.json +88 -0
  40. data/test/fixtures/pins.json +81 -0
  41. data/test/fixtures/potential_twitter_friends.json +2090 -0
  42. data/test/fixtures/spot.json +251 -0
  43. data/test/fixtures/spots.json +557 -0
  44. data/test/fixtures/spots_by_category.json +620 -0
  45. data/test/fixtures/spots_urls.json +26 -0
  46. data/test/fixtures/stamps.json +284 -0
  47. data/test/fixtures/top_spots.json +64 -0
  48. data/test/fixtures/trip.json +22 -0
  49. data/test/fixtures/trips.json +881 -0
  50. data/test/fixtures/user.json +43 -0
  51. data/test/fixtures/users.json +46 -0
  52. data/test/fixtures/vaulted_items.json +12 -0
  53. data/test/fixtures/visited_spots.json +1 -0
  54. data/test/flags_test.rb +46 -0
  55. data/test/helper.rb +6 -6
  56. data/test/items_test.rb +26 -0
  57. data/test/spots_test.rb +70 -0
  58. data/test/trips_test.rb +25 -0
  59. data/test/users_test.rb +83 -0
  60. metadata +177 -29
  61. data/test/gowalla_test.rb +0 -214
@@ -0,0 +1,695 @@
1
+ {
2
+ "trips": [
3
+ {
4
+ "image_url": "http://static.gowalla.com/missions/54-c407e1e63b7e9cd68715a4fabb161364.png",
5
+ "name": "Dallas Championship Chase",
6
+ "_completed": false,
7
+ "url": "/trips/54",
8
+ "spots": [
9
+ {
10
+ "url": "/spots/8989"
11
+ },
12
+ {
13
+ "url": "/spots/9362"
14
+ },
15
+ {
16
+ "url": "/spots/9361"
17
+ }
18
+ ]
19
+ },
20
+ {
21
+ "image_url": "http://static.gowalla.com/trips/12-bf54e6bc8b15c9b3fa172da30c4b230f.png",
22
+ "name": "Fort Worth Zoo Safari",
23
+ "_completed": false,
24
+ "url": "/trips/17",
25
+ "spots": [
26
+ {
27
+ "url": "/spots/9076"
28
+ },
29
+ {
30
+ "url": "/spots/9077"
31
+ },
32
+ {
33
+ "url": "/spots/9078"
34
+ },
35
+ {
36
+ "url": "/spots/9079"
37
+ },
38
+ {
39
+ "url": "/spots/9080"
40
+ },
41
+ {
42
+ "url": "/spots/9081"
43
+ },
44
+ {
45
+ "url": "/spots/9082"
46
+ },
47
+ {
48
+ "url": "/spots/9083"
49
+ },
50
+ {
51
+ "url": "/spots/9084"
52
+ },
53
+ {
54
+ "url": "/spots/9085"
55
+ },
56
+ {
57
+ "url": "/spots/9259"
58
+ },
59
+ {
60
+ "url": "/spots/9087"
61
+ },
62
+ {
63
+ "url": "/spots/9088"
64
+ },
65
+ {
66
+ "url": "/spots/9090"
67
+ },
68
+ {
69
+ "url": "/spots/9091"
70
+ },
71
+ {
72
+ "url": "/spots/9092"
73
+ },
74
+ {
75
+ "url": "/spots/9093"
76
+ },
77
+ {
78
+ "url": "/spots/9097"
79
+ },
80
+ {
81
+ "url": "/spots/9098"
82
+ },
83
+ {
84
+ "url": "/spots/9100"
85
+ }
86
+ ]
87
+ },
88
+ {
89
+ "image_url": "http://static.gowalla.com/missions/82-677401f93719fe5e8d6ae65fb47dd806.png",
90
+ "name": "Never Been Here? ",
91
+ "_completed": false,
92
+ "url": "/trips/82",
93
+ "spots": [
94
+ {
95
+ "url": "/spots/50339"
96
+ },
97
+ {
98
+ "url": "/spots/49678"
99
+ },
100
+ {
101
+ "url": "/spots/41568"
102
+ },
103
+ {
104
+ "url": "/spots/50335"
105
+ },
106
+ {
107
+ "url": "/spots/49677"
108
+ },
109
+ {
110
+ "url": "/spots/31589"
111
+ }
112
+ ]
113
+ },
114
+ {
115
+ "image_url": "http://static.gowalla.com/missions/81-fac7562730c3d7a85309d4286375efb8.png",
116
+ "name": "Tasty Lunchables",
117
+ "_completed": false,
118
+ "url": "/trips/81",
119
+ "spots": [
120
+ {
121
+ "url": "/spots/50245"
122
+ },
123
+ {
124
+ "url": "/spots/16135"
125
+ },
126
+ {
127
+ "url": "/spots/49690"
128
+ },
129
+ {
130
+ "url": "/spots/50251"
131
+ },
132
+ {
133
+ "url": "/spots/32704"
134
+ },
135
+ {
136
+ "url": "/spots/49838"
137
+ }
138
+ ]
139
+ },
140
+ {
141
+ "image_url": "http://static.gowalla.com/missions/83-6dce712adfb5afca00494237e43ef758.png",
142
+ "name": "Crawl on Western Avenue",
143
+ "_completed": false,
144
+ "url": "/trips/83",
145
+ "spots": [
146
+ {
147
+ "url": "/spots/55473"
148
+ },
149
+ {
150
+ "url": "/spots/55433"
151
+ },
152
+ {
153
+ "url": "/spots/55488"
154
+ },
155
+ {
156
+ "url": "/spots/43683"
157
+ },
158
+ {
159
+ "url": "/spots/55512"
160
+ },
161
+ {
162
+ "url": "/spots/25661"
163
+ },
164
+ {
165
+ "url": "/spots/56474"
166
+ },
167
+ {
168
+ "url": "/spots/41935"
169
+ },
170
+ {
171
+ "url": "/spots/39538"
172
+ }
173
+ ]
174
+ },
175
+ {
176
+ "image_url": "http://static.gowalla.com/missions/28-0ff9f9a57cf9dcb8516ab209ea979be2.png",
177
+ "name": "Austin BBQ Bonanza",
178
+ "_completed": false,
179
+ "url": "/trips/28",
180
+ "spots": [
181
+ {
182
+ "url": "/spots/9254"
183
+ },
184
+ {
185
+ "url": "/spots/13730"
186
+ },
187
+ {
188
+ "url": "/spots/13611"
189
+ },
190
+ {
191
+ "url": "/spots/9227"
192
+ },
193
+ {
194
+ "url": "/spots/9412"
195
+ },
196
+ {
197
+ "url": "/spots/14484"
198
+ },
199
+ {
200
+ "url": "/spots/14242"
201
+ },
202
+ {
203
+ "url": "/spots/11352"
204
+ }
205
+ ]
206
+ },
207
+ {
208
+ "image_url": "http://static.gowalla.com/trips/24-c079757d46465d3351f101b99870ad61.png",
209
+ "name": "The Moonlight Towers",
210
+ "_completed": false,
211
+ "url": "/trips/9",
212
+ "spots": [
213
+ {
214
+ "url": "/spots/10056"
215
+ },
216
+ {
217
+ "url": "/spots/10416"
218
+ },
219
+ {
220
+ "url": "/spots/10417"
221
+ },
222
+ {
223
+ "url": "/spots/10418"
224
+ },
225
+ {
226
+ "url": "/spots/10421"
227
+ },
228
+ {
229
+ "url": "/spots/10423"
230
+ },
231
+ {
232
+ "url": "/spots/10425"
233
+ },
234
+ {
235
+ "url": "/spots/10426"
236
+ },
237
+ {
238
+ "url": "/spots/10428"
239
+ },
240
+ {
241
+ "url": "/spots/10429"
242
+ },
243
+ {
244
+ "url": "/spots/10477"
245
+ },
246
+ {
247
+ "url": "/spots/10595"
248
+ },
249
+ {
250
+ "url": "/spots/10617"
251
+ },
252
+ {
253
+ "url": "/spots/10682"
254
+ },
255
+ {
256
+ "url": "/spots/10687"
257
+ }
258
+ ]
259
+ },
260
+ {
261
+ "image_url": "http://static.gowalla.com/trips/15-c9952083e353a2b6c3ed0fbb021776aa.png",
262
+ "name": "Capitol Grounds of Texas",
263
+ "_completed": false,
264
+ "url": "/trips/14",
265
+ "spots": [
266
+ {
267
+ "url": "/spots/9237"
268
+ },
269
+ {
270
+ "url": "/spots/9233"
271
+ },
272
+ {
273
+ "url": "/spots/9236"
274
+ },
275
+ {
276
+ "url": "/spots/9234"
277
+ },
278
+ {
279
+ "url": "/spots/9235"
280
+ },
281
+ {
282
+ "url": "/spots/9232"
283
+ }
284
+ ]
285
+ },
286
+ {
287
+ "image_url": "http://static.gowalla.com/trips/13-2fb45ba176eafb466d5ccf7c943fb75c.png",
288
+ "name": "Austin Stairs of Doom",
289
+ "_completed": false,
290
+ "url": "/trips/13",
291
+ "spots": [
292
+ {
293
+ "url": "/spots/9231"
294
+ },
295
+ {
296
+ "url": "/spots/9238"
297
+ },
298
+ {
299
+ "url": "/spots/9245"
300
+ },
301
+ {
302
+ "url": "/spots/9244"
303
+ },
304
+ {
305
+ "url": "/spots/9239"
306
+ },
307
+ {
308
+ "url": "/spots/9299"
309
+ }
310
+ ]
311
+ },
312
+ {
313
+ "image_url": "http://static.gowalla.com/trips/14-32292997925997285c92af218a9eb77d.png",
314
+ "name": "Austin Bar Hop",
315
+ "_completed": false,
316
+ "url": "/trips/15",
317
+ "spots": [
318
+ {
319
+ "url": "/spots/9229"
320
+ },
321
+ {
322
+ "url": "/spots/9227"
323
+ },
324
+ {
325
+ "url": "/spots/9225"
326
+ },
327
+ {
328
+ "url": "/spots/9326"
329
+ },
330
+ {
331
+ "url": "/spots/9223"
332
+ },
333
+ {
334
+ "url": "/spots/9316"
335
+ },
336
+ {
337
+ "url": "/spots/9302"
338
+ },
339
+ {
340
+ "url": "/spots/9318"
341
+ },
342
+ {
343
+ "url": "/spots/9251"
344
+ },
345
+ {
346
+ "url": "/spots/9250"
347
+ },
348
+ {
349
+ "url": "/spots/9249"
350
+ },
351
+ {
352
+ "url": "/spots/9221"
353
+ },
354
+ {
355
+ "url": "/spots/9313"
356
+ }
357
+ ]
358
+ },
359
+ {
360
+ "image_url": "http://static.gowalla.com/missions/77-f6799799469d5736d1a18ba9f2069fe4.png",
361
+ "name": "University of Arkansas Tour",
362
+ "_completed": false,
363
+ "url": "/trips/77",
364
+ "spots": [
365
+ {
366
+ "url": "/spots/21658"
367
+ },
368
+ {
369
+ "url": "/spots/21719"
370
+ },
371
+ {
372
+ "url": "/spots/21745"
373
+ },
374
+ {
375
+ "url": "/spots/21735"
376
+ },
377
+ {
378
+ "url": "/spots/21657"
379
+ },
380
+ {
381
+ "url": "/spots/21722"
382
+ },
383
+ {
384
+ "url": "/spots/21728"
385
+ },
386
+ {
387
+ "url": "/spots/21741"
388
+ }
389
+ ]
390
+ },
391
+ {
392
+ "image_url": "http://static.gowalla.com/missions/19-491a47a369d9251789f6557e8fe44fdb.png",
393
+ "name": "Old St. Charles Historic Rewind",
394
+ "_completed": false,
395
+ "url": "/trips/19",
396
+ "spots": [
397
+ {
398
+ "url": "/spots/10205"
399
+ },
400
+ {
401
+ "url": "/spots/10206"
402
+ },
403
+ {
404
+ "url": "/spots/10213"
405
+ },
406
+ {
407
+ "url": "/spots/10207"
408
+ },
409
+ {
410
+ "url": "/spots/10214"
411
+ },
412
+ {
413
+ "url": "/spots/10215"
414
+ },
415
+ {
416
+ "url": "/spots/10212"
417
+ },
418
+ {
419
+ "url": "/spots/10208"
420
+ },
421
+ {
422
+ "url": "/spots/10209"
423
+ },
424
+ {
425
+ "url": "/spots/10211"
426
+ },
427
+ {
428
+ "url": "/spots/10218"
429
+ },
430
+ {
431
+ "url": "/spots/10210"
432
+ },
433
+ {
434
+ "url": "/spots/10230"
435
+ }
436
+ ]
437
+ },
438
+ {
439
+ "image_url": "http://static.gowalla.com/missions/36-154148419b0a8a30b03a7392688edc61.png",
440
+ "name": "Nashville Honkytonk Stomp",
441
+ "_completed": false,
442
+ "url": "/trips/36",
443
+ "spots": [
444
+ {
445
+ "url": "/spots/9988"
446
+ },
447
+ {
448
+ "url": "/spots/11076"
449
+ },
450
+ {
451
+ "url": "/spots/11075"
452
+ },
453
+ {
454
+ "url": "/spots/11074"
455
+ },
456
+ {
457
+ "url": "/spots/11078"
458
+ },
459
+ {
460
+ "url": "/spots/9992"
461
+ }
462
+ ]
463
+ },
464
+ {
465
+ "image_url": "http://static.gowalla.com/missions/84-59e6163fffe9540ebd81d645855fe640.png",
466
+ "name": "Denver Championship Chase",
467
+ "_completed": false,
468
+ "url": "/trips/84",
469
+ "spots": [
470
+ {
471
+ "url": "/spots/39442"
472
+ },
473
+ {
474
+ "url": "/spots/22217"
475
+ },
476
+ {
477
+ "url": "/spots/35859"
478
+ }
479
+ ]
480
+ },
481
+ {
482
+ "image_url": "http://static.gowalla.com/missions/40-fdaace0db9178c8de299cea8089055dc.png",
483
+ "name": "Frank Lloyd Wright Tour",
484
+ "_completed": false,
485
+ "url": "/trips/40",
486
+ "spots": [
487
+ {
488
+ "url": "/spots/13529"
489
+ },
490
+ {
491
+ "url": "/spots/13513"
492
+ },
493
+ {
494
+ "url": "/spots/13516"
495
+ },
496
+ {
497
+ "url": "/spots/13512"
498
+ },
499
+ {
500
+ "url": "/spots/13510"
501
+ },
502
+ {
503
+ "url": "/spots/13506"
504
+ },
505
+ {
506
+ "url": "/spots/13499"
507
+ },
508
+ {
509
+ "url": "/spots/13501"
510
+ },
511
+ {
512
+ "url": "/spots/13530"
513
+ },
514
+ {
515
+ "url": "/spots/13528"
516
+ }
517
+ ]
518
+ },
519
+ {
520
+ "image_url": "http://static.gowalla.com/missions/53-4d3287dc75aa8a505f9a5ead36ce8659.png",
521
+ "name": "Chicago Championship Chase",
522
+ "_completed": false,
523
+ "url": "/trips/53",
524
+ "spots": [
525
+ {
526
+ "url": "/spots/13582"
527
+ },
528
+ {
529
+ "url": "/spots/12233"
530
+ },
531
+ {
532
+ "url": "/spots/9948"
533
+ },
534
+ {
535
+ "url": "/spots/12430"
536
+ },
537
+ {
538
+ "url": "/spots/11601"
539
+ }
540
+ ]
541
+ },
542
+ {
543
+ "image_url": "http://static.gowalla.com/missions/25-bda6754b2f978e4195a15f2304224258.png",
544
+ "name": "Central Park Highlights",
545
+ "_completed": false,
546
+ "url": "/trips/25",
547
+ "spots": [
548
+ {
549
+ "url": "/spots/12349"
550
+ },
551
+ {
552
+ "url": "/spots/12174"
553
+ },
554
+ {
555
+ "url": "/spots/12164"
556
+ },
557
+ {
558
+ "url": "/spots/12171"
559
+ },
560
+ {
561
+ "url": "/spots/12345"
562
+ }
563
+ ]
564
+ },
565
+ {
566
+ "image_url": "http://static.gowalla.com/missions/66-9f485e8ac14578cf9c146d46492be2e0.png",
567
+ "name": "Pleasanton Ghost Walk",
568
+ "_completed": false,
569
+ "url": "/trips/66",
570
+ "spots": [
571
+ {
572
+ "url": "/spots/23384"
573
+ },
574
+ {
575
+ "url": "/spots/23385"
576
+ },
577
+ {
578
+ "url": "/spots/23386"
579
+ },
580
+ {
581
+ "url": "/spots/23505"
582
+ },
583
+ {
584
+ "url": "/spots/23506"
585
+ },
586
+ {
587
+ "url": "/spots/23508"
588
+ },
589
+ {
590
+ "url": "/spots/23510"
591
+ },
592
+ {
593
+ "url": "/spots/23379"
594
+ },
595
+ {
596
+ "url": "/spots/23503"
597
+ }
598
+ ]
599
+ },
600
+ {
601
+ "image_url": "http://static.gowalla.com/missions/23-e6869ad7d1800997d598a633d1198889.png",
602
+ "name": "Berkeley Coffeeshop Marathon",
603
+ "_completed": false,
604
+ "url": "/trips/23",
605
+ "spots": [
606
+ {
607
+ "url": "/spots/9122"
608
+ },
609
+ {
610
+ "url": "/spots/9071"
611
+ },
612
+ {
613
+ "url": "/spots/9135"
614
+ },
615
+ {
616
+ "url": "/spots/9134"
617
+ },
618
+ {
619
+ "url": "/spots/9133"
620
+ },
621
+ {
622
+ "url": "/spots/9138"
623
+ },
624
+ {
625
+ "url": "/spots/9130"
626
+ },
627
+ {
628
+ "url": "/spots/9139"
629
+ }
630
+ ]
631
+ },
632
+ {
633
+ "image_url": "http://static.gowalla.com/trips/22-38e80a8c08c9672f00f8a93589421527.png",
634
+ "name": "Golden Gate Gallop",
635
+ "_completed": false,
636
+ "url": "/trips/11",
637
+ "spots": [
638
+ {
639
+ "url": "/spots/9073"
640
+ },
641
+ {
642
+ "url": "/spots/10353"
643
+ },
644
+ {
645
+ "url": "/spots/9127"
646
+ },
647
+ {
648
+ "url": "/spots/9416"
649
+ },
650
+ {
651
+ "url": "/spots/10359"
652
+ },
653
+ {
654
+ "url": "/spots/10360"
655
+ },
656
+ {
657
+ "url": "/spots/10361"
658
+ },
659
+ {
660
+ "url": "/spots/10362"
661
+ },
662
+ {
663
+ "url": "/spots/10143"
664
+ },
665
+ {
666
+ "url": "/spots/10136"
667
+ },
668
+ {
669
+ "url": "/spots/10139"
670
+ },
671
+ {
672
+ "url": "/spots/10141"
673
+ },
674
+ {
675
+ "url": "/spots/10355"
676
+ },
677
+ {
678
+ "url": "/spots/10373"
679
+ },
680
+ {
681
+ "url": "/spots/9901"
682
+ },
683
+ {
684
+ "url": "/spots/10377"
685
+ },
686
+ {
687
+ "url": "/spots/10555"
688
+ },
689
+ {
690
+ "url": "/spots/10383"
691
+ }
692
+ ]
693
+ }
694
+ ]
695
+ }