foursquare2 1.5.0 → 1.6.0
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.
- data/Readme.md +3 -0
- data/VERSION +1 -1
- data/foursquare2.gemspec +7 -2
- data/lib/foursquare2.rb +1 -0
- data/lib/foursquare2/client.rb +1 -0
- data/lib/foursquare2/pages.rb +50 -0
- data/test/fixtures/page.json +204 -0
- data/test/fixtures/page_venues.json +97 -0
- data/test/fixtures/search_pages.json +45 -0
- data/test/test_pages.rb +31 -0
- metadata +32 -27
data/Readme.md
CHANGED
@@ -105,6 +105,9 @@ See [the documentation](http://rubydoc.info/gems/foursquare2/frames) or [foursqu
|
|
105
105
|
client.venue_tips
|
106
106
|
client.venue_links
|
107
107
|
client.venue_photos
|
108
|
+
client.page
|
109
|
+
client.search_pages
|
110
|
+
client.page_venues
|
108
111
|
client.search_venues
|
109
112
|
client.search_venues_by_tip
|
110
113
|
client.venue_categories
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.6.0
|
data/foursquare2.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "foursquare2"
|
8
|
-
s.version = "1.
|
8
|
+
s.version = "1.6.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Matt Mueller", "Marco Moura"]
|
12
|
-
s.date = "2012-
|
12
|
+
s.date = "2012-07-08"
|
13
13
|
s.description = "Gives access to all endpoints in version 2 of foursquare's API with syntax that will be familiar to those who used the original foursquare gem by Jeremy Welch."
|
14
14
|
s.email = ["muellermr@gmail.com", "email@marcomoura.com"]
|
15
15
|
s.extra_rdoc_files = [
|
@@ -28,6 +28,7 @@ Gem::Specification.new do |s|
|
|
28
28
|
"lib/foursquare2/api_error.rb",
|
29
29
|
"lib/foursquare2/checkins.rb",
|
30
30
|
"lib/foursquare2/client.rb",
|
31
|
+
"lib/foursquare2/pages.rb",
|
31
32
|
"lib/foursquare2/photos.rb",
|
32
33
|
"lib/foursquare2/settings.rb",
|
33
34
|
"lib/foursquare2/specials.rb",
|
@@ -40,7 +41,10 @@ Gem::Specification.new do |s|
|
|
40
41
|
"test/fixtures/explore_venues.json",
|
41
42
|
"test/fixtures/friend_checkins.json",
|
42
43
|
"test/fixtures/no_venues_by_tip.json",
|
44
|
+
"test/fixtures/page.json",
|
45
|
+
"test/fixtures/page_venues.json",
|
43
46
|
"test/fixtures/photo.json",
|
47
|
+
"test/fixtures/search_pages.json",
|
44
48
|
"test/fixtures/search_specials.json",
|
45
49
|
"test/fixtures/search_tips.json",
|
46
50
|
"test/fixtures/search_users.json",
|
@@ -61,6 +65,7 @@ Gem::Specification.new do |s|
|
|
61
65
|
"test/helper.rb",
|
62
66
|
"test/test_checkins.rb",
|
63
67
|
"test/test_client.rb",
|
68
|
+
"test/test_pages.rb",
|
64
69
|
"test/test_photos.rb",
|
65
70
|
"test/test_specials.rb",
|
66
71
|
"test/test_tips.rb",
|
data/lib/foursquare2.rb
CHANGED
data/lib/foursquare2/client.rb
CHANGED
@@ -0,0 +1,50 @@
|
|
1
|
+
module Foursquare2
|
2
|
+
module Pages
|
3
|
+
|
4
|
+
# Get information about a page.
|
5
|
+
#
|
6
|
+
# /!\ A page is considered by Foursquare as a user.
|
7
|
+
# @param [Integer] user_id - Page to get information for.
|
8
|
+
|
9
|
+
def page(user_id)
|
10
|
+
response = connection.get("pages/#{user_id}")
|
11
|
+
return_error_or_body(response, response.body.response.user)
|
12
|
+
end
|
13
|
+
|
14
|
+
|
15
|
+
# Search for pages.
|
16
|
+
#
|
17
|
+
# @param [Hash] options
|
18
|
+
# @option options String :twitter - Match on twitter username
|
19
|
+
# @option options String :fbid - Match on facebook id.
|
20
|
+
# @option options String :name - Match on name
|
21
|
+
|
22
|
+
def search_pages(options={})
|
23
|
+
response = connection.get do |req|
|
24
|
+
req.url "pages/search", options
|
25
|
+
end
|
26
|
+
return_error_or_body(response, response.body.response)
|
27
|
+
end
|
28
|
+
|
29
|
+
|
30
|
+
# Get all venues for a given page.
|
31
|
+
#
|
32
|
+
# @param [String] page_id - The page to retrieve venues for.
|
33
|
+
# @param [Hash] options
|
34
|
+
# @option options Integer :limit
|
35
|
+
# @option options Integer :offset - For paging through results
|
36
|
+
# @option options String :ll - Latitude and longitude in format LAT,LON - Limit results to venues near this latitude and longitude. NOT VALID with NE or SW (see after).
|
37
|
+
# @option String :radius - Can be used when including ll. Limit results to venues within this many meters of the specified ll. Not valid with ne or sw.
|
38
|
+
# @option String :sw - With ne, limits results to the bounding quadrangle defined by the latitude and longitude given by sw as its south-west corner, and ne as its north-east corner. Not valid with ll or radius.
|
39
|
+
# @option String :ne - See sw
|
40
|
+
|
41
|
+
def page_venues(page_id, options={})
|
42
|
+
response = connection.get do |req|
|
43
|
+
req.url "pages/#{page_id}/venues", options
|
44
|
+
end
|
45
|
+
venues = return_error_or_body(response, response.body.response.venues)
|
46
|
+
venues = Foursquare2.filter(venues, options[:query]) if options.has_key? :query
|
47
|
+
venues
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,204 @@
|
|
1
|
+
{
|
2
|
+
"meta": {
|
3
|
+
"code": 200,
|
4
|
+
"errorType": "deprecated",
|
5
|
+
"errorDetail": "Please provide an API version to avoid future errors.See http:\/\/bit.ly\/vywCav"
|
6
|
+
},
|
7
|
+
"notifications": [{
|
8
|
+
"type": "notificationTray",
|
9
|
+
"item": {
|
10
|
+
"unreadCount": 0
|
11
|
+
}
|
12
|
+
}],
|
13
|
+
"response": {
|
14
|
+
"user": {
|
15
|
+
"id": "14046309",
|
16
|
+
"firstName": "Nashville Geeks",
|
17
|
+
"photo": "https:\/\/is1.4sqi.net\/userpix_thumbs\/IXHCY5SK3SDJC310.png",
|
18
|
+
"friends": {
|
19
|
+
"count": 0,
|
20
|
+
"groups": [{
|
21
|
+
"type": "friends",
|
22
|
+
"name": "Mutual friends",
|
23
|
+
"count": 0,
|
24
|
+
"items": []
|
25
|
+
}, {
|
26
|
+
"type": "others",
|
27
|
+
"name": "Other friends",
|
28
|
+
"count": 0,
|
29
|
+
"items": []
|
30
|
+
}]
|
31
|
+
},
|
32
|
+
"type": "page",
|
33
|
+
"followers": {
|
34
|
+
"count": 197,
|
35
|
+
"groups": []
|
36
|
+
},
|
37
|
+
"tips": {
|
38
|
+
"count": 15
|
39
|
+
},
|
40
|
+
"lists": {
|
41
|
+
"groups": [{
|
42
|
+
"type": "created",
|
43
|
+
"count": 1,
|
44
|
+
"items": []
|
45
|
+
}]
|
46
|
+
},
|
47
|
+
"gender": "none",
|
48
|
+
"homeCity": "Nashville, TN",
|
49
|
+
"bio": "",
|
50
|
+
"contact": {
|
51
|
+
"twitter": "nashvillegeeks",
|
52
|
+
"facebook": "119351084835752"
|
53
|
+
},
|
54
|
+
"pings": false,
|
55
|
+
"badges": {
|
56
|
+
"count": 0,
|
57
|
+
"items": []
|
58
|
+
},
|
59
|
+
"mayorships": {
|
60
|
+
"count": 0,
|
61
|
+
"items": []
|
62
|
+
},
|
63
|
+
"checkins": {
|
64
|
+
"count": 12,
|
65
|
+
"items": [{
|
66
|
+
"id": "4f21560e1081200df2ae864d",
|
67
|
+
"createdAt": 1327584782,
|
68
|
+
"type": "checkin",
|
69
|
+
"visibility": "public",
|
70
|
+
"shout": "#geekbreakfast",
|
71
|
+
"timeZone": "America\/Chicago",
|
72
|
+
"timeZoneOffset": -360,
|
73
|
+
"venue": {
|
74
|
+
"id": "4b05866df964a520a96122e3",
|
75
|
+
"name": "Noshville",
|
76
|
+
"contact": {
|
77
|
+
"phone": "6153296674",
|
78
|
+
"formattedPhone": "(615) 329-6674"
|
79
|
+
},
|
80
|
+
"location": {
|
81
|
+
"address": "1918 Broadway",
|
82
|
+
"crossStreet": "btwn 20th Ave North & Lyle Ave",
|
83
|
+
"lat": 36.15001115,
|
84
|
+
"lng": -86.797777,
|
85
|
+
"postalCode": "37203",
|
86
|
+
"city": "Nashville",
|
87
|
+
"state": "TN",
|
88
|
+
"country": "United States",
|
89
|
+
"cc": "US"
|
90
|
+
},
|
91
|
+
"categories": [{
|
92
|
+
"id": "4bf58dd8d48988d147941735",
|
93
|
+
"name": "Diner",
|
94
|
+
"pluralName": "Diners",
|
95
|
+
"shortName": "Diner",
|
96
|
+
"icon": "https:\/\/foursquare.com\/img\/categories\/food\/default.png",
|
97
|
+
"parents": ["Food"],
|
98
|
+
"primary": true
|
99
|
+
}],
|
100
|
+
"verified": false,
|
101
|
+
"stats": {
|
102
|
+
"checkinsCount": 4248,
|
103
|
+
"usersCount": 2622,
|
104
|
+
"tipCount": 42
|
105
|
+
},
|
106
|
+
"url": "http:\/\/www.noshville.com\/",
|
107
|
+
"likes": {
|
108
|
+
"count": 2,
|
109
|
+
"groups": [{
|
110
|
+
"type": "others",
|
111
|
+
"count": 2,
|
112
|
+
"items": [{
|
113
|
+
"id": "189330",
|
114
|
+
"firstName": "Courtney",
|
115
|
+
"lastName": "F.",
|
116
|
+
"photo": "https:\/\/is0.4sqi.net\/userpix_thumbs\/DCS05HYMVHTK5BMR.jpg",
|
117
|
+
"tips": {
|
118
|
+
"count": 7
|
119
|
+
},
|
120
|
+
"gender": "female",
|
121
|
+
"homeCity": "Nashville, TN",
|
122
|
+
"bio": "librarian. grad student. occasionally a knitter, sewer (sewist?), baker, reader and even more occasional blogger.",
|
123
|
+
"contact": {
|
124
|
+
"twitter": "library_chic",
|
125
|
+
"facebook": "34105804"
|
126
|
+
}
|
127
|
+
}, {
|
128
|
+
"id": "1733717",
|
129
|
+
"firstName": "Christine",
|
130
|
+
"lastName": "H.",
|
131
|
+
"photo": "https:\/\/is0.4sqi.net\/userpix_thumbs\/XI40K0J4UAFCYRUS.jpg",
|
132
|
+
"tips": {
|
133
|
+
"count": 8
|
134
|
+
},
|
135
|
+
"gender": "female",
|
136
|
+
"homeCity": "Glendale, CA",
|
137
|
+
"bio": "",
|
138
|
+
"contact": {
|
139
|
+
"facebook": "1525776221"
|
140
|
+
}
|
141
|
+
}]
|
142
|
+
}],
|
143
|
+
"summary": "Courtney F & Christine H"
|
144
|
+
},
|
145
|
+
"like": false,
|
146
|
+
"menu": {
|
147
|
+
"type": "foodAndBeverage",
|
148
|
+
"url": "https:\/\/foursquare.com\/v\/noshville\/4b05866df964a520a96122e3\/menu",
|
149
|
+
"mobileUrl": "https:\/\/foursquare.com\/v\/4b05866df964a520a96122e3\/device_menu"
|
150
|
+
},
|
151
|
+
"beenHere": {
|
152
|
+
"count": 1,
|
153
|
+
"marked": true
|
154
|
+
},
|
155
|
+
"listed": {
|
156
|
+
"groups": [{
|
157
|
+
"type": "dones",
|
158
|
+
"count": 1,
|
159
|
+
"items": []
|
160
|
+
}]
|
161
|
+
}
|
162
|
+
},
|
163
|
+
"likes": {
|
164
|
+
"count": 0,
|
165
|
+
"groups": []
|
166
|
+
},
|
167
|
+
"like": false,
|
168
|
+
"photos": {
|
169
|
+
"count": 0,
|
170
|
+
"items": []
|
171
|
+
}
|
172
|
+
}]
|
173
|
+
},
|
174
|
+
"following": {
|
175
|
+
"count": 0
|
176
|
+
},
|
177
|
+
"todos": {
|
178
|
+
"count": 0
|
179
|
+
},
|
180
|
+
"photos": {
|
181
|
+
"count": 0,
|
182
|
+
"items": []
|
183
|
+
},
|
184
|
+
"scores": {
|
185
|
+
"recent": 0,
|
186
|
+
"max": 0,
|
187
|
+
"goal": 50,
|
188
|
+
"checkinsCount": 0
|
189
|
+
},
|
190
|
+
"pageInfo": {
|
191
|
+
"title": "Follow our tips on Foursquare!",
|
192
|
+
"description": "Nashville Geeks is the umbrella group for tech and new media geeks in Nashville, TN. Follow us for fun factoids, commentary, and, of course, actual tips\u2014all from a Nashville Geek perspective.",
|
193
|
+
"banner": "https:\/\/is1.4sqi.net\/userpix\/5R1RTOJHAHYVCWF5.png",
|
194
|
+
"links": {
|
195
|
+
"count": 1,
|
196
|
+
"items": [{
|
197
|
+
"url": "http:\/\/nashvillegeeks.org",
|
198
|
+
"title": "http:\/\/nashvillegeeks.org"
|
199
|
+
}]
|
200
|
+
}
|
201
|
+
}
|
202
|
+
}
|
203
|
+
}
|
204
|
+
}
|
@@ -0,0 +1,97 @@
|
|
1
|
+
{
|
2
|
+
"meta": {
|
3
|
+
"code": 200,
|
4
|
+
"errorType": "deprecated",
|
5
|
+
"errorDetail": "Please provide an API version to avoid future errors.See http:\/\/bit.ly\/vywCav"
|
6
|
+
},
|
7
|
+
"notifications": [{
|
8
|
+
"type": "notificationTray",
|
9
|
+
"item": {
|
10
|
+
"unreadCount": 0
|
11
|
+
}
|
12
|
+
}],
|
13
|
+
"response": {
|
14
|
+
"venues": {
|
15
|
+
"count": 11051,
|
16
|
+
"items": [{
|
17
|
+
"id": "4c1571cc7f7f2d7f368ce268",
|
18
|
+
"name": "Starbucks",
|
19
|
+
"contact": {
|
20
|
+
"twitter": "starbucks"
|
21
|
+
},
|
22
|
+
"location": {
|
23
|
+
"address": "36 Furlong Dr.",
|
24
|
+
"lat": 42.39980951166117,
|
25
|
+
"lng": -71.00035339133224,
|
26
|
+
"postalCode": "2151",
|
27
|
+
"city": "Revere",
|
28
|
+
"state": "MA",
|
29
|
+
"country": "United States",
|
30
|
+
"cc": "US"
|
31
|
+
},
|
32
|
+
"categories": [{
|
33
|
+
"id": "4bf58dd8d48988d1e0931735",
|
34
|
+
"name": "Coffee Shop",
|
35
|
+
"pluralName": "Coffee Shops",
|
36
|
+
"shortName": "Coffee Shop",
|
37
|
+
"icon": "https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop.png",
|
38
|
+
"parents": ["Food"],
|
39
|
+
"primary": true
|
40
|
+
}],
|
41
|
+
"verified": true,
|
42
|
+
"stats": {
|
43
|
+
"checkinsCount": 228,
|
44
|
+
"usersCount": 101,
|
45
|
+
"tipCount": 1
|
46
|
+
},
|
47
|
+
"url": "http:\/\/starbucks.com",
|
48
|
+
"likes": {
|
49
|
+
"count": 0,
|
50
|
+
"groups": []
|
51
|
+
},
|
52
|
+
"beenHere": {
|
53
|
+
"count": 0
|
54
|
+
}
|
55
|
+
}, {
|
56
|
+
"id": "4cf126d51d18a143c64251ec",
|
57
|
+
"name": "Starbucks",
|
58
|
+
"contact": {
|
59
|
+
"twitter": "starbucks"
|
60
|
+
},
|
61
|
+
"location": {
|
62
|
+
"address": "710 N Broad St",
|
63
|
+
"lat": 35.240871,
|
64
|
+
"lng": -82.72704929,
|
65
|
+
"postalCode": "28712",
|
66
|
+
"city": "Brevard",
|
67
|
+
"state": "NC",
|
68
|
+
"country": "United States",
|
69
|
+
"cc": "US"
|
70
|
+
},
|
71
|
+
"categories": [{
|
72
|
+
"id": "4bf58dd8d48988d1e0931735",
|
73
|
+
"name": "Coffee Shop",
|
74
|
+
"pluralName": "Coffee Shops",
|
75
|
+
"shortName": "Coffee Shop",
|
76
|
+
"icon": "https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop.png",
|
77
|
+
"parents": ["Food"],
|
78
|
+
"primary": true
|
79
|
+
}],
|
80
|
+
"verified": true,
|
81
|
+
"stats": {
|
82
|
+
"checkinsCount": 66,
|
83
|
+
"usersCount": 44,
|
84
|
+
"tipCount": 0
|
85
|
+
},
|
86
|
+
"url": "http:\/\/starbucks.com",
|
87
|
+
"likes": {
|
88
|
+
"count": 0,
|
89
|
+
"groups": []
|
90
|
+
},
|
91
|
+
"beenHere": {
|
92
|
+
"count": 0
|
93
|
+
}
|
94
|
+
}]
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
{
|
2
|
+
"meta": {
|
3
|
+
"code": 200,
|
4
|
+
"errorType": "deprecated",
|
5
|
+
"errorDetail": "Please provide an API version to avoid future errors.See http:\/\/bit.ly\/vywCav"
|
6
|
+
},
|
7
|
+
"notifications": [{
|
8
|
+
"type": "notificationTray",
|
9
|
+
"item": {
|
10
|
+
"unreadCount": 0
|
11
|
+
}
|
12
|
+
}],
|
13
|
+
"response": {
|
14
|
+
"results": [{
|
15
|
+
"id": "14046309",
|
16
|
+
"firstName": "Nashville Geeks",
|
17
|
+
"photo": "https:\/\/is1.4sqi.net\/userpix_thumbs\/IXHCY5SK3SDJC310.png",
|
18
|
+
"type": "page",
|
19
|
+
"followers": {
|
20
|
+
"count": 197,
|
21
|
+
"groups": []
|
22
|
+
},
|
23
|
+
"tips": {
|
24
|
+
"count": 15
|
25
|
+
},
|
26
|
+
"lists": {
|
27
|
+
"groups": [{
|
28
|
+
"type": "created",
|
29
|
+
"count": 1,
|
30
|
+
"items": []
|
31
|
+
}]
|
32
|
+
},
|
33
|
+
"gender": "none",
|
34
|
+
"homeCity": "Nashville, TN",
|
35
|
+
"bio": "",
|
36
|
+
"contact": {
|
37
|
+
"twitter": "nashvillegeeks",
|
38
|
+
"facebook": "119351084835752"
|
39
|
+
}
|
40
|
+
}],
|
41
|
+
"unmatched": {
|
42
|
+
"name": []
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
data/test/test_pages.rb
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
require 'helper'
|
2
|
+
|
3
|
+
class TestPages < Test::Unit::TestCase
|
4
|
+
|
5
|
+
context "When using the foursquare API and working with pages" do
|
6
|
+
setup do
|
7
|
+
@client = foursquare_test_client
|
8
|
+
end
|
9
|
+
|
10
|
+
should "fetch info for a single page" do
|
11
|
+
stub_get("https://api.foursquare.com/v2/pages/14046309?oauth_token=#{@client.oauth_token}", "page.json")
|
12
|
+
page = @client.page('14046309')
|
13
|
+
page.firstName.should == "Nashville Geeks"
|
14
|
+
page.type.should == "page"
|
15
|
+
end
|
16
|
+
|
17
|
+
should "fetch results when searching for a page" do
|
18
|
+
stub_get("https://api.foursquare.com/v2/pages/search?name=NashvilleGeeks&oauth_token=#{@client.oauth_token}", "search_pages.json")
|
19
|
+
pages = @client.search_pages(:name => 'NashvilleGeeks')
|
20
|
+
pages.results.first.firstName.should == "Nashville Geeks"
|
21
|
+
end
|
22
|
+
|
23
|
+
should "fetch venues for a given page" do
|
24
|
+
stub_get("https://api.foursquare.com/v2/pages/1070527/venues?limit=2&oauth_token=#{@client.oauth_token}", "page_venues.json")
|
25
|
+
venues = @client.page_venues(1070527, :limit => 2)
|
26
|
+
venues['count'].should == 11051
|
27
|
+
venues.items.length.should == 2
|
28
|
+
venues.items.first.name.should == "Starbucks"
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foursquare2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-07-08 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: faraday
|
17
|
-
requirement: &
|
17
|
+
requirement: &70327044534400 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '0.8'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70327044534400
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: faraday_middleware
|
28
|
-
requirement: &
|
28
|
+
requirement: &70327044524520 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: '0.8'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70327044524520
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: hashie
|
39
|
-
requirement: &
|
39
|
+
requirement: &70327044517420 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ~>
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: '1.0'
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *70327044517420
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: awesome_print
|
50
|
-
requirement: &
|
50
|
+
requirement: &70327044512180 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ! '>='
|
@@ -55,10 +55,10 @@ dependencies:
|
|
55
55
|
version: '0'
|
56
56
|
type: :development
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *70327044512180
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: shoulda
|
61
|
-
requirement: &
|
61
|
+
requirement: &70327044506440 !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
63
63
|
requirements:
|
64
64
|
- - ! '>='
|
@@ -66,10 +66,10 @@ dependencies:
|
|
66
66
|
version: '0'
|
67
67
|
type: :development
|
68
68
|
prerelease: false
|
69
|
-
version_requirements: *
|
69
|
+
version_requirements: *70327044506440
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: bundler
|
72
|
-
requirement: &
|
72
|
+
requirement: &70327044499940 !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
75
|
- - ~>
|
@@ -77,10 +77,10 @@ dependencies:
|
|
77
77
|
version: '1.0'
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
|
-
version_requirements: *
|
80
|
+
version_requirements: *70327044499940
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: jeweler
|
83
|
-
requirement: &
|
83
|
+
requirement: &70327044497000 !ruby/object:Gem::Requirement
|
84
84
|
none: false
|
85
85
|
requirements:
|
86
86
|
- - ~>
|
@@ -88,10 +88,10 @@ dependencies:
|
|
88
88
|
version: '1.5'
|
89
89
|
type: :development
|
90
90
|
prerelease: false
|
91
|
-
version_requirements: *
|
91
|
+
version_requirements: *70327044497000
|
92
92
|
- !ruby/object:Gem::Dependency
|
93
93
|
name: rcov
|
94
|
-
requirement: &
|
94
|
+
requirement: &70327044494380 !ruby/object:Gem::Requirement
|
95
95
|
none: false
|
96
96
|
requirements:
|
97
97
|
- - ! '>='
|
@@ -99,10 +99,10 @@ dependencies:
|
|
99
99
|
version: '0'
|
100
100
|
type: :development
|
101
101
|
prerelease: false
|
102
|
-
version_requirements: *
|
102
|
+
version_requirements: *70327044494380
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: fakeweb
|
105
|
-
requirement: &
|
105
|
+
requirement: &70327044490300 !ruby/object:Gem::Requirement
|
106
106
|
none: false
|
107
107
|
requirements:
|
108
108
|
- - ~>
|
@@ -110,10 +110,10 @@ dependencies:
|
|
110
110
|
version: '1.3'
|
111
111
|
type: :development
|
112
112
|
prerelease: false
|
113
|
-
version_requirements: *
|
113
|
+
version_requirements: *70327044490300
|
114
114
|
- !ruby/object:Gem::Dependency
|
115
115
|
name: jnunemaker-matchy
|
116
|
-
requirement: &
|
116
|
+
requirement: &70327044485980 !ruby/object:Gem::Requirement
|
117
117
|
none: false
|
118
118
|
requirements:
|
119
119
|
- - ~>
|
@@ -121,10 +121,10 @@ dependencies:
|
|
121
121
|
version: '0.4'
|
122
122
|
type: :development
|
123
123
|
prerelease: false
|
124
|
-
version_requirements: *
|
124
|
+
version_requirements: *70327044485980
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: json_pure
|
127
|
-
requirement: &
|
127
|
+
requirement: &70327044470460 !ruby/object:Gem::Requirement
|
128
128
|
none: false
|
129
129
|
requirements:
|
130
130
|
- - ~>
|
@@ -132,10 +132,10 @@ dependencies:
|
|
132
132
|
version: '1.4'
|
133
133
|
type: :development
|
134
134
|
prerelease: false
|
135
|
-
version_requirements: *
|
135
|
+
version_requirements: *70327044470460
|
136
136
|
- !ruby/object:Gem::Dependency
|
137
137
|
name: multi_json
|
138
|
-
requirement: &
|
138
|
+
requirement: &70327044468140 !ruby/object:Gem::Requirement
|
139
139
|
none: false
|
140
140
|
requirements:
|
141
141
|
- - <
|
@@ -146,7 +146,7 @@ dependencies:
|
|
146
146
|
version: 0.0.5
|
147
147
|
type: :development
|
148
148
|
prerelease: false
|
149
|
-
version_requirements: *
|
149
|
+
version_requirements: *70327044468140
|
150
150
|
description: Gives access to all endpoints in version 2 of foursquare's API with syntax
|
151
151
|
that will be familiar to those who used the original foursquare gem by Jeremy Welch.
|
152
152
|
email:
|
@@ -169,6 +169,7 @@ files:
|
|
169
169
|
- lib/foursquare2/api_error.rb
|
170
170
|
- lib/foursquare2/checkins.rb
|
171
171
|
- lib/foursquare2/client.rb
|
172
|
+
- lib/foursquare2/pages.rb
|
172
173
|
- lib/foursquare2/photos.rb
|
173
174
|
- lib/foursquare2/settings.rb
|
174
175
|
- lib/foursquare2/specials.rb
|
@@ -181,7 +182,10 @@ files:
|
|
181
182
|
- test/fixtures/explore_venues.json
|
182
183
|
- test/fixtures/friend_checkins.json
|
183
184
|
- test/fixtures/no_venues_by_tip.json
|
185
|
+
- test/fixtures/page.json
|
186
|
+
- test/fixtures/page_venues.json
|
184
187
|
- test/fixtures/photo.json
|
188
|
+
- test/fixtures/search_pages.json
|
185
189
|
- test/fixtures/search_specials.json
|
186
190
|
- test/fixtures/search_tips.json
|
187
191
|
- test/fixtures/search_users.json
|
@@ -202,6 +206,7 @@ files:
|
|
202
206
|
- test/helper.rb
|
203
207
|
- test/test_checkins.rb
|
204
208
|
- test/test_client.rb
|
209
|
+
- test/test_pages.rb
|
205
210
|
- test/test_photos.rb
|
206
211
|
- test/test_specials.rb
|
207
212
|
- test/test_tips.rb
|
@@ -222,7 +227,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
222
227
|
version: '0'
|
223
228
|
segments:
|
224
229
|
- 0
|
225
|
-
hash:
|
230
|
+
hash: -1902868301601312681
|
226
231
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
227
232
|
none: false
|
228
233
|
requirements:
|