gowalla 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,8 @@
1
1
  {
2
- "image_url": "http://static.gowalla.com/categories/1-standard.png",
3
- "name": "Coffee Shop",
4
2
  "small_image_url": "http://static.gowalla.com/categories/1-small-standard.png",
3
+ "name": "Coffee Shop",
5
4
  "url": "/categories/1",
6
- "id": 1,
7
- "categories": [],
5
+ "spot_categories": [],
6
+ "image_url": "http://static.gowalla.com/categories/1-standard.png",
8
7
  "description": ""
9
8
  }
@@ -1,152 +1,224 @@
1
- [
2
- {
3
- "city_state": "Frisco, TX",
4
- "first_visited_at": "2010/01/26 15:31:46 +0000",
5
- "image_url": "http://static.gowalla.com/categories/186-standard.png",
6
- "last_visited_at": "2010/01/26 15:31:46 +0000",
7
- "name": "Bank Of America",
8
- "tier": 2,
9
- "url": "/spots/164052",
10
- "visits_count": 1
11
- },
12
- {
13
- "city_state": "Aubrey, TX",
14
- "first_visited_at": "2010/01/26 13:02:38 +0000",
15
- "image_url": "http://static.gowalla.com/categories/16-standard.png",
16
- "last_visited_at": "2010/01/26 13:02:38 +0000",
17
- "name": "Betty's Cafe",
18
- "tier": 2,
19
- "url": "/spots/455129",
20
- "visits_count": 1
21
- },
22
- {
23
- "city_state": "Frisco, TX",
24
- "first_visited_at": "2010/01/23 18:35:02 +0000",
25
- "image_url": "http://static.gowalla.com/categories/30-standard.png",
26
- "last_visited_at": "2010/01/23 18:35:02 +0000",
27
- "name": "AMC Stonebriar 24",
28
- "tier": 2,
29
- "url": "/spots/59817",
30
- "visits_count": 1
31
- },
32
- {
33
- "city_state": "TX",
34
- "first_visited_at": "2010/01/12 00:55:59 +0000",
35
- "image_url": "http://static.gowalla.com/categories/64-standard.png",
36
- "last_visited_at": "2010/01/12 00:55:59 +0000",
37
- "name": "Londoner Restaurant",
38
- "tier": 2,
39
- "url": "/spots/366585",
40
- "visits_count": 1
41
- },
42
- {
43
- "city_state": "Frisco, TX",
44
- "first_visited_at": "2010/01/11 17:05:14 +0000",
45
- "image_url": "http://static.gowalla.com/categories/154-standard.png",
46
- "last_visited_at": "2010/01/11 17:05:14 +0000",
47
- "name": "MOOYAH Burgers & Fries",
48
- "tier": 2,
49
- "url": "/spots/78953",
50
- "visits_count": 1
51
- },
52
- {
53
- "city_state": "Dallas, TX",
54
- "first_visited_at": "2010/01/05 22:55:51 +0000",
55
- "image_url": "http://static.gowalla.com/categories/96-standard.png",
56
- "last_visited_at": "2010/01/05 22:55:51 +0000",
57
- "name": "Barnes and Noble",
58
- "tier": 2,
59
- "url": "/spots/11641",
60
- "visits_count": 1
61
- },
62
- {
63
- "city_state": "Frisco, TX",
64
- "first_visited_at": "2009/12/30 23:32:30 +0000",
65
- "image_url": "http://static.gowalla.com/categories/17-standard.png",
66
- "last_visited_at": "2009/12/30 23:32:30 +0000",
67
- "name": "Rudy's",
68
- "tier": 2,
69
- "url": "/spots/43464",
70
- "visits_count": 1
71
- },
72
- {
73
- "city_state": "Fredericksburg, TX",
74
- "first_visited_at": "2009/12/29 18:39:20 +0000",
75
- "image_url": "http://static.gowalla.com/categories/30-standard.png",
76
- "last_visited_at": "2009/12/29 18:39:20 +0000",
77
- "name": "Stagecoach Theater",
78
- "tier": 2,
79
- "url": "/spots/136029",
80
- "visits_count": 1
81
- },
82
- {
83
- "city_state": "Fredericksburg, TX",
84
- "first_visited_at": "2009/12/29 15:33:11 +0000",
85
- "image_url": "http://static.gowalla.com/categories/73-standard.png",
86
- "last_visited_at": "2009/12/29 15:33:11 +0000",
87
- "name": "National Museum of the Pacific War",
88
- "tier": 2,
89
- "url": "/spots/11300",
90
- "visits_count": 1
91
- },
92
- {
93
- "city_state": "Fredericksburg, TX",
94
- "first_visited_at": "2009/12/28 23:56:05 +0000",
95
- "image_url": "http://static.gowalla.com/categories/167-standard.png",
96
- "last_visited_at": "2009/12/28 23:56:05 +0000",
97
- "name": "Fredericksburg Brewing Co.",
98
- "tier": 2,
99
- "url": "/spots/261180",
100
- "visits_count": 1
101
- },
102
- {
103
- "city_state": "Boerne, TX",
104
- "first_visited_at": "2009/12/28 17:16:16 +0000",
105
- "image_url": "http://static.gowalla.com/categories/157-standard.png",
106
- "last_visited_at": "2009/12/28 17:16:16 +0000",
107
- "name": "Sister Creek Vineyards",
108
- "tier": 2,
109
- "url": "/spots/284084",
110
- "visits_count": 1
111
- },
112
- {
113
- "city_state": "Fredericksburg, TX",
114
- "first_visited_at": "2009/12/28 16:23:46 +0000",
115
- "image_url": "http://static.gowalla.com/categories/157-standard.png",
116
- "last_visited_at": "2009/12/28 16:23:46 +0000",
117
- "name": "Grape Creek Vineyards",
118
- "tier": 2,
119
- "url": "/spots/142525",
120
- "visits_count": 1
121
- },
122
- {
123
- "city_state": "Mckinney, TX",
124
- "first_visited_at": "2009/10/16 16:04:05 +0000",
125
- "image_url": "http://static.gowalla.com/categories/73-standard.png",
126
- "last_visited_at": "2009/10/16 16:04:05 +0000",
127
- "name": "Heard Museum ",
128
- "tier": 2,
129
- "url": "/spots/49747",
130
- "visits_count": 1
131
- },
132
- {
133
- "city_state": "Celina, TX",
134
- "first_visited_at": "2009/05/17 17:26:01 +0000",
135
- "image_url": "http://static.gowalla.com/categories/125-standard.png",
136
- "last_visited_at": "2009/05/17 17:26:01 +0000",
137
- "name": "Celina City Hall",
138
- "tier": 2,
139
- "url": "/spots/13354",
140
- "visits_count": 1
141
- },
142
- {
143
- "city_state": null,
144
- "first_visited_at": "2009/05/17 17:26:01 +0000",
145
- "image_url": "http://static.gowalla.com/spots/18320-5120ee4f995831b24c67d8d86ae185ae.png",
146
- "last_visited_at": "2009/05/17 17:26:01 +0000",
147
- "name": "Texas",
148
- "tier": 2,
149
- "url": "/spots/18320",
150
- "visits_count": 1
1
+ {
2
+ "stamps": [
3
+ {
4
+ "user_checkins_count": 46,
5
+ "image_url": "http://static.gowalla.com/spots/21714-3fed705ea37c9c266efb70f3a62a2b6a.png",
6
+ "first_checkin_at": "2009-09-21T14:52:11+00:00",
7
+ "last_checkin_at": null,
8
+ "name": "Juan Pelota Cafe",
9
+ "location": {
10
+ "city": "Austin, TX"
11
+ },
12
+ "url": "/spots/21714"
13
+ },
14
+ {
15
+ "user_checkins_count": 1,
16
+ "image_url": "http://static.gowalla.com/categories/19-standard.png",
17
+ "first_checkin_at": "2010-02-16T02:33:09+00:00",
18
+ "last_checkin_at": null,
19
+ "name": "Asti",
20
+ "location": {
21
+ "city": "Austin, TX"
22
+ },
23
+ "url": "/spots/366666"
24
+ },
25
+ {
26
+ "user_checkins_count": 10,
27
+ "image_url": "http://static.gowalla.com/spots/9410-132ed068e83fc11c465ec25f519ed677.png",
28
+ "first_checkin_at": "2009-09-24T12:06:09+00:00",
29
+ "last_checkin_at": null,
30
+ "name": "AUS Austin-Bergstrom",
31
+ "location": {
32
+ "city": "Austin, TX"
33
+ },
34
+ "url": "/spots/9410"
35
+ },
36
+ {
37
+ "user_checkins_count": 13,
38
+ "image_url": "http://static.gowalla.com/categories/1-standard.png",
39
+ "first_checkin_at": "2009-09-17T19:39:41+00:00",
40
+ "last_checkin_at": null,
41
+ "name": "Jo's Coffee",
42
+ "location": {
43
+ "city": "Austin, TX"
44
+ },
45
+ "url": "/spots/15326"
46
+ },
47
+ {
48
+ "user_checkins_count": 1,
49
+ "image_url": "http://static.gowalla.com/categories/64-standard.png",
50
+ "first_checkin_at": "2010-02-14T19:14:31+00:00",
51
+ "last_checkin_at": null,
52
+ "name": "The Mighty Cone",
53
+ "location": {
54
+ "city": "Austin, TX"
55
+ },
56
+ "url": "/spots/128073"
57
+ },
58
+ {
59
+ "user_checkins_count": 9,
60
+ "image_url": "http://static.gowalla.com/spots/49904-d30046742175b5bc8dcbe1b0bdd151f8.png",
61
+ "first_checkin_at": "2009-10-19T18:40:00+00:00",
62
+ "last_checkin_at": null,
63
+ "name": "Torchy's Tacos",
64
+ "location": {
65
+ "city": "Austin, TX"
66
+ },
67
+ "url": "/spots/49904"
68
+ },
69
+ {
70
+ "user_checkins_count": 1,
71
+ "image_url": "http://static.gowalla.com/categories/1-standard.png",
72
+ "first_checkin_at": "2010-02-13T22:09:41+00:00",
73
+ "last_checkin_at": null,
74
+ "name": "Once Over Coffee",
75
+ "location": {
76
+ "city": "Austin, TX"
77
+ },
78
+ "url": "/spots/505008"
79
+ },
80
+ {
81
+ "user_checkins_count": 2,
82
+ "image_url": "http://static.gowalla.com/spots/20922-e2d45abb981c2716353af9c6d254d8b5.png",
83
+ "first_checkin_at": "2009-11-12T23:21:05+00:00",
84
+ "last_checkin_at": null,
85
+ "name": "Birds Barbershop - South Congress",
86
+ "location": {
87
+ "city": null
88
+ },
89
+ "url": "/spots/20922"
90
+ },
91
+ {
92
+ "user_checkins_count": 3,
93
+ "image_url": "http://static.gowalla.com/categories/121-standard.png",
94
+ "first_checkin_at": "2010-01-26T00:26:53+00:00",
95
+ "last_checkin_at": null,
96
+ "name": "Infinite Loop 1",
97
+ "location": {
98
+ "city": "Cupertino, CA"
99
+ },
100
+ "url": "/spots/39438"
101
+ },
102
+ {
103
+ "user_checkins_count": 18,
104
+ "image_url": "http://static.gowalla.com/categories/89-standard.png",
105
+ "first_checkin_at": "2009-09-16T17:15:02+00:00",
106
+ "last_checkin_at": null,
107
+ "name": "Raymond Ranch South",
108
+ "location": {
109
+ "city": "Austin, TX"
110
+ },
111
+ "url": "/spots/25151"
112
+ },
113
+ {
114
+ "user_checkins_count": 7,
115
+ "image_url": "http://static.gowalla.com/spots/420315-790176c52df5c1b8c00a97fa57b81991.png",
116
+ "first_checkin_at": "2010-01-20T20:45:55+00:00",
117
+ "last_checkin_at": null,
118
+ "name": "Gowalla Incorporated",
119
+ "location": {
120
+ "city": "Austin, TX"
121
+ },
122
+ "url": "/spots/420315"
123
+ },
124
+ {
125
+ "user_checkins_count": 2,
126
+ "image_url": "http://static.gowalla.com/categories/1-standard.png",
127
+ "first_checkin_at": "2010-01-15T00:33:59+00:00",
128
+ "last_checkin_at": null,
129
+ "name": "The Coffee Bean and Tea Leaf",
130
+ "location": {
131
+ "city": "San Francisco, CA"
132
+ },
133
+ "url": "/spots/15114"
134
+ },
135
+ {
136
+ "user_checkins_count": 4,
137
+ "image_url": "http://static.gowalla.com/categories/15-standard.png",
138
+ "first_checkin_at": "2009-12-08T03:48:20+00:00",
139
+ "last_checkin_at": null,
140
+ "name": "Tropisueño",
141
+ "location": {
142
+ "city": "San Francisco, CA"
143
+ },
144
+ "url": "/spots/19199"
145
+ },
146
+ {
147
+ "user_checkins_count": 1,
148
+ "image_url": "http://static.gowalla.com/categories/154-standard.png",
149
+ "first_checkin_at": "2010-02-09T04:23:16+00:00",
150
+ "last_checkin_at": null,
151
+ "name": "Burger Bar",
152
+ "location": {
153
+ "city": "San Francisco, CA"
154
+ },
155
+ "url": "/spots/52264"
156
+ },
157
+ {
158
+ "user_checkins_count": 2,
159
+ "image_url": "http://static.gowalla.com/spots/9114-35e553fc91c0f1d140c31b466185b317.png",
160
+ "first_checkin_at": "2010-01-13T05:02:01+00:00",
161
+ "last_checkin_at": null,
162
+ "name": "Union Square",
163
+ "location": {
164
+ "city": "San Francisco, CA"
165
+ },
166
+ "url": "/spots/9114"
167
+ },
168
+ {
169
+ "user_checkins_count": 1,
170
+ "image_url": "http://static.gowalla.com/spots/501252-b2413ccf9e99ad6c16fef5d5ab798960.png",
171
+ "first_checkin_at": "2010-02-09T01:15:51+00:00",
172
+ "last_checkin_at": null,
173
+ "name": "Barenaked Ladies Benefit Concert for Haiti",
174
+ "location": {
175
+ "city": "San Francisco, CA"
176
+ },
177
+ "url": "/spots/501252"
178
+ },
179
+ {
180
+ "user_checkins_count": 1,
181
+ "image_url": "http://static.gowalla.com/categories/26-standard.png",
182
+ "first_checkin_at": "2010-02-09T00:59:04+00:00",
183
+ "last_checkin_at": null,
184
+ "name": "Infusion Lounge",
185
+ "location": {
186
+ "city": "San Francisco, CA"
187
+ },
188
+ "url": "/spots/184596"
189
+ },
190
+ {
191
+ "user_checkins_count": 3,
192
+ "image_url": "http://static.gowalla.com/categories/230-standard.png",
193
+ "first_checkin_at": "2010-01-11T22:08:19+00:00",
194
+ "last_checkin_at": null,
195
+ "name": "Apple Company Store",
196
+ "location": {
197
+ "city": "Cupertino, CA"
198
+ },
199
+ "url": "/spots/39440"
200
+ },
201
+ {
202
+ "user_checkins_count": 1,
203
+ "image_url": "http://static.gowalla.com/categories/186-standard.png",
204
+ "first_checkin_at": "2010-02-08T22:42:43+00:00",
205
+ "last_checkin_at": null,
206
+ "name": "Bank of America",
207
+ "location": {
208
+ "city": "San Francisco, CA"
209
+ },
210
+ "url": "/spots/95590"
211
+ },
212
+ {
213
+ "user_checkins_count": 3,
214
+ "image_url": "http://static.gowalla.com/categories/101-standard.png",
215
+ "first_checkin_at": "2009-06-25T21:06:53+00:00",
216
+ "last_checkin_at": null,
217
+ "name": "The Sentinel",
218
+ "location": {
219
+ "city": "San Francisco, CA"
220
+ },
221
+ "url": "/spots/16002"
151
222
  }
152
- ]
223
+ ]
224
+ }
data/test/helper.rb CHANGED
@@ -2,7 +2,7 @@ require 'test/unit'
2
2
  require 'pathname'
3
3
  require 'rubygems'
4
4
 
5
- gem 'thoughtbot-shoulda', '>= 2.10.1'
5
+ gem 'shoulda', '>= 2.10.1'
6
6
  gem 'jnunemaker-matchy', '0.4.0'
7
7
  gem 'fakeweb', '>= 1.2.5'
8
8
 
@@ -10,6 +10,7 @@ require 'shoulda'
10
10
  require 'matchy'
11
11
  require 'fakeweb'
12
12
 
13
+ begin require 'redgreen'; rescue LoadError; end
13
14
 
14
15
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
15
16
  $LOAD_PATH.unshift(File.dirname(__FILE__))
data/test/test_gowalla.rb CHANGED
@@ -43,15 +43,14 @@ class TestGowalla < Test::Unit::TestCase
43
43
  categories.size.should == 9
44
44
  categories.first.name.should == 'Architecture & Buildings'
45
45
  categories.first.description.should == 'Bridge, Corporate, Home, Church, etc.'
46
- categories.first.categories.size.should == 15
47
- categories.first.categories.first.name.should == 'Bridge'
46
+ categories.first.spot_categories.size.should == 15
47
+ categories.first.spot_categories.first.name.should == 'Bridge'
48
48
  end
49
49
 
50
50
  should "retrieve information about a specific category" do
51
51
  stub_get("http://pengwynn:0U812@api.gowalla.com/categories/1", "category.json")
52
52
  category = @client.category(1)
53
53
  category.name.should == 'Coffee Shop'
54
- category.id.should == 1
55
54
  end
56
55
  end
57
56
 
@@ -67,9 +66,9 @@ class TestGowalla < Test::Unit::TestCase
67
66
  should "retrieve a list of the stamps the user has collected" do
68
67
  stub_get('http://pengwynn:0U812@api.gowalla.com/users/1707/stamps?limit=20', 'stamps.json')
69
68
  stamps = @client.stamps(1707)
70
- stamps.size.should == 15
71
- stamps.first.name.should == 'Bank Of America'
72
- stamps.first.tier.should == 2
69
+ stamps.size.should == 20
70
+ stamps.first.name.should == 'Juan Pelota Cafe'
71
+ stamps.first.location.city.should == 'Austin, TX'
73
72
  end
74
73
 
75
74
  should "retrieve a list of spots the user has visited most often" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gowalla
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wynn Netherland
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-09 00:00:00 -06:00
12
+ date: 2010-02-18 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency