foursquare2 1.3.3 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.3
1
+ 1.3.4
data/foursquare2.gemspec CHANGED
@@ -4,13 +4,13 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = "foursquare2"
8
- s.version = "1.3.3"
7
+ s.name = %q{foursquare2}
8
+ s.version = "1.3.4"
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 = "2011-12-10"
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."
12
+ s.date = %q{2012-01-23}
13
+ s.description = %q{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 = [
16
16
  "LICENSE.txt"
@@ -47,6 +47,7 @@ Gem::Specification.new do |s|
47
47
  "test/fixtures/search_venues.json",
48
48
  "test/fixtures/search_venues_by_tip.json",
49
49
  "test/fixtures/special.json",
50
+ "test/fixtures/suggest_completion_venues.json",
50
51
  "test/fixtures/tip.json",
51
52
  "test/fixtures/user.json",
52
53
  "test/fixtures/user_mayorships.json",
@@ -65,11 +66,11 @@ Gem::Specification.new do |s|
65
66
  "test/test_users.rb",
66
67
  "test/test_venues.rb"
67
68
  ]
68
- s.homepage = "http://github.com/mattmueller/foursquare2"
69
+ s.homepage = %q{http://github.com/mattmueller/foursquare2}
69
70
  s.licenses = ["MIT"]
70
71
  s.require_paths = ["lib"]
71
- s.rubygems_version = "1.8.10"
72
- s.summary = "Foursquare API v2 gem in the spirit of the original foursquare gem"
72
+ s.rubygems_version = %q{1.6.2}
73
+ s.summary = %q{Foursquare API v2 gem in the spirit of the original foursquare gem}
73
74
 
74
75
  if s.respond_to? :specification_version then
75
76
  s.specification_version = 3
@@ -136,7 +136,8 @@ module Foursquare2
136
136
  # @option options String :section - One of food, drinks, coffee, shops, or arts. Choosing one of these limits results to venues with categories matching these terms.
137
137
  # @option options String :query - Query to match venues on.
138
138
  # @option options Integer :limit - The limit of results to return.
139
- # @option options String :basis - If present and set to friends or me, limits results to only places where friends have visited or user has visited, respectively.
139
+ # @option options String :intent - Limit results to venues with specials.
140
+ # @option options String :novelty - Pass new or old to limit results to places the acting user hasn't been or has been, respectively. Omitting this parameter returns a mixture.
140
141
 
141
142
  def explore_venues(options={})
142
143
  response = connection.get do |req|
@@ -144,5 +145,22 @@ module Foursquare2
144
145
  end
145
146
  return_error_or_body(response, response.body.response)
146
147
  end
148
+
149
+ # Suggest venue completions. Returns a list of mini-venues partially matching the search term, near the location.
150
+ #
151
+ # @param [Hash] options
152
+ # @option options String :ll - Latitude and longitude in format LAT,LON
153
+ # @option options Integer :llAcc - Accuracy of the lat/lon in meters.
154
+ # @option options Integer :alt - Altitude in meters
155
+ # @option options Integer :altAcc - Accuracy of the altitude in meters
156
+ # @option options String :query - Query to match venues on.
157
+ # @option options Integer :limit - The limit of results to return.
158
+
159
+ def suggest_completion_venues(options={})
160
+ response = connection.get do |req|
161
+ req.url "venues/suggestCompletion", options
162
+ end
163
+ return_error_or_body(response, response.body.response)
164
+ end
147
165
  end
148
166
  end
@@ -0,0 +1 @@
1
+ {"meta":{"code":200},"notifications":[{"type":"notificationTray","item":{"unreadCount":0}}],"response":{"minivenues":[{"id":"44dc96e4f964a520b0361fe3","name":"think coffee","location":{"address":"248 Mercer St","crossStreet":"btw 4th & Washington Square Village","city":"New York","state":"NY","postalCode":"10012","country":"USA","lat":40.728395,"lng":-73.995489,"distance":3183},"category":{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"4ae33a3df964a520f99121e3","name":"Think Coffee","location":{"address":"123 4th Ave","crossStreet":"btw 12th & 13th St","city":"New York","state":"NY","postalCode":"10003","country":"USA","lat":40.733029,"lng":-73.990038,"distance":3771},"category":{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"4075e780f964a52059f21ee3","name":"Gorilla Coffee","location":{"address":"97 5th Ave","crossStreet":"at Park Pl","city":"Brooklyn","state":"NY","postalCode":"11217","country":"USA","lat":40.679668384825625,"lng":-73.97820175,"distance":2916},"category":{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"491ada01f964a52072521fe3","name":"Think Coffee","location":{"address":"1 Bleecker St.","crossStreet":"at Bowery","city":"New York","state":"NY","postalCode":"10003","country":"USA","lat":40.725292088686246,"lng":-73.99214602821085,"distance":2892},"category":{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"4aeedbe6f964a5206cd421e3","name":"Birch Coffee","location":{"address":"5 E 27th St","crossStreet":"btw 5th Ave & Madison","city":"New York","state":"NY","postalCode":"10016","country":"USA","lat":40.743906,"lng":-73.98717,"distance":5005},"category":{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"49d7b51ff964a520515d1fe3","name":"Gimme! Coffee","location":{"address":"228 Mott St","crossStreet":"btw Prince & Spring","city":"New York","state":"NY","postalCode":"10012","country":"USA","lat":40.722279576782924,"lng":-73.99517675668822,"distance":2513},"category":{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"41214a80f964a520300c1fe3","name":"Coffee Pot","location":{"address":"350 W 49th St","crossStreet":"btw 8th & 9th Aves","city":"New York","state":"NY","postalCode":"10019","country":"USA","lat":40.762803,"lng":-73.989232,"distance":7049},"category":{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"4ecc046b0e61aaf0384f19c4","name":"Think Coffee","location":{"address":"73 8th Ave.","crossStreet":"14th St.","city":"New York","state":"NY","postalCode":"10014","lat":40.73946479913673,"lng":-74.00265603689895,"distance":4398},"category":{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"460ab8cdf964a520f1441fe3","name":"Gregory's Coffee","location":{"address":"327 Park Ave. S.","crossStreet":"btwn E. 24th & 25th","city":"New York","state":"NY","postalCode":"10010-2934","country":"USA","lat":40.740923,"lng":-73.985996,"distance":4706},"category":{"id":"4bf58dd8d48988d16d941735","name":"Café","pluralName":"Cafés","shortName":"Café","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/cafe_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"4ed39cda0aafd18692a48b5e","name":"Coffee","location":{"city":"New York","state":"NY","postalCode":"10005","lat":40.706789,"lng":-74.010902,"distance":1190},"category":{"id":"4bf58dd8d48988d16d941735","name":"Café","pluralName":"Cafés","shortName":"Café","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/cafe_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"4d1266ff12916dcb8daad58a","name":"Bourbon Coffee","location":{"address":"43 W 14th St","crossStreet":"6th Ave","city":"New York","state":"NY","postalCode":"10011","country":"USA","lat":40.736893,"lng":-73.99573,"distance":4122},"category":{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"4e9d9e599a5262f9812fed9e","name":"Bowery Coffee","location":{"address":"89 E Houston St","crossStreet":"btwn Bowery & Elizabeth","city":"New York","state":"NY","postalCode":"10012","lat":40.7242915,"lng":-73.99289022,"distance":2769},"category":{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"44ca1c8af964a520f6351fe3","name":"Gimme Coffee","location":{"address":"495 Lorimer St","crossStreet":"Grand St","city":"Brooklyn","state":"NY","postalCode":"11211","country":"USA","lat":40.711812,"lng":-73.949068,"distance":4494},"category":{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"4e720243c65bae37845e6951","name":"Coffee","location":{"state":"NY","lat":40.672019,"lng":-73.972279,"distance":3895},"category":{"id":"4bf58dd8d48988d16d941735","name":"Café","pluralName":"Cafés","shortName":"Café","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/cafe_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"4876216df964a52011511fe3","name":"Jack's Coffee","location":{"address":"138 W 10th St","crossStreet":"btw Greenwich & Waverly","city":"New York","state":"NY","postalCode":"10014","country":"USA","lat":40.734653,"lng":-74.000575,"distance":3857},"category":{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"4b0ea0f0f964a520175923e3","name":"Gregory's Coffee","location":{"address":"58 W 44th St","crossStreet":"6th Ave","city":"New York","state":"NY","postalCode":"10036-6604","country":"USA","lat":40.756172,"lng":-73.982775,"distance":6419},"category":{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"4cd3704eb74860fc56a76e49","name":"Pushcart Coffee","location":{"address":"221 E. Broadway","crossStreet":"at Clinton St.","city":"New York","state":"NY","postalCode":"10002","country":"USA","lat":40.71423232033,"lng":-73.98693859577179,"distance":1930},"category":{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"4e3db0dfae60454236694c6b","name":"Joe Coffee","location":{"address":"332 Flatbush Ave","crossStreet":"Willoughby St","city":"Brooklyn","state":"NY","postalCode":"11201","lat":40.691756,"lng":-73.98292,"distance":1708},"category":{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"49be6964f964a520aa541fe3","name":"Mojo Coffee","location":{"address":"128 Charles St","crossStreet":"btw Greenwich St & Washington St","city":"New York","state":"NY","postalCode":"10014","country":"USA","lat":40.734186,"lng":-74.007496,"distance":3857},"category":{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"4a69c95df964a52008cc1fe3","name":"Oslo Coffee","location":{"address":"133 Roebling St.","crossStreet":"at Metropolitan","city":"New York","state":"NY","postalCode":"11211","country":"USA","lat":40.714736512395255,"lng":-73.95685493946075,"distance":3993},"category":{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"4f044f5993ad64af7ace411b","name":"Prodigy Coffee","location":{"city":"New York","state":"NY","postalCode":"10014","lat":40.73005893543017,"lng":-74.00303437785037,"distance":3355},"category":{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"4bcefda6cc8cd13a7821c5cf","name":"myWayCup Coffee","location":{"address":"102 E 23rd St","crossStreet":"btw Park & Lexington Ave","city":"New York","state":"NY","postalCode":"10010","country":"USA","lat":40.740281,"lng":-73.986155,"distance":4633},"category":{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"4cdb13064006a1433ef2d5b2","name":"Roastown Coffee","location":{"address":"133 2nd Ave.","crossStreet":"St. Marks","city":"New York","state":"NY","postalCode":"10003","country":"USA","lat":40.728683,"lng":-73.987674,"distance":3358},"category":{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"4d53548e2f638cfa759e616a","name":"Coffee","location":{"lat":40.760543,"lng":-73.996448,"distance":6746},"category":{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"4e6fe48c1fc7d3fc71285ec2","name":"Gregorys Coffee","location":{"address":"12 East 46th St.","crossStreet":"btwn 5th Ave and Madison","city":"New York","state":"NY","postalCode":"10176","lat":40.75557768724385,"lng":-73.97818048527262,"distance":6454},"category":{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"4c6d9ca4a437224b8e932db1","name":"Roastown Coffee","location":{"address":"793 6th Ave","crossStreet":"W 27th St","city":"New York","state":"NY","postalCode":"10001","country":"USA","lat":40.745496,"lng":-73.990971,"distance":5121},"category":{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"4c24b32cf7ced13a0b33236d","name":"Gregory's Coffee","location":{"address":"551 Fashion Ave","crossStreet":"at 39th St","city":"New York","state":"NY","postalCode":"10018","country":"USA","lat":40.75437,"lng":-73.988181,"distance":6133},"category":{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"4c4dcfb2fb742d7f792a592d","name":"Gimme! Coffee","location":{"address":"107 Roebling St","crossStreet":"btw n5th & n6th St","city":"Brooklyn","state":"New York","postalCode":"11211","country":"USA","lat":40.715666,"lng":-73.955944,"distance":4106},"category":{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"4d02a26b9d33a14317b6ae78","name":"Starbucks Coffee","location":{"address":"511 Lexington Ave","crossStreet":"50th Street","city":"New York","state":"NY","postalCode":"10017","lat":40.75691691768806,"lng":-73.97210685714634,"distance":6758},"category":{"id":"4bf58dd8d48988d1e0931735","name":"Coffee Shop","pluralName":"Coffee Shops","shortName":"Coffee Shop","icon":{"prefix":"https:\/\/foursquare.com\/img\/categories\/food\/coffeeshop_","sizes":[32,44,64,88,256],"name":".png"}}},{"id":"4d988ee8e07ea35d046af402","name":"Coffee","location":{"address":"broadway","crossStreet":"63","state":"New York","postalCode":"10023","lat":40.773141,"lng":-73.982027,"distance":8281}}]}}
data/test/test_venues.rb CHANGED
@@ -62,7 +62,7 @@ class TestVenues < Test::Unit::TestCase
62
62
  end
63
63
 
64
64
  should "allow venues to be explored" do
65
- stub_get("https://api.foursquare.com/v2/venues/explore?section=food&ll=40.7%2C-74&oauth_token=yeehaw&limit=2", "explore_venues.json")
65
+ stub_get("https://api.foursquare.com/v2/venues/explore?section=food&ll=40.7%2C-74&oauth_token=#{@client.oauth_token}&limit=2", "explore_venues.json")
66
66
  venues = @client.explore_venues(:ll => '40.7,-74', :section => 'food', :limit => '2')
67
67
  venues.groups.first.items.count.should == 2
68
68
  end
@@ -83,6 +83,12 @@ class TestVenues < Test::Unit::TestCase
83
83
  photos.items.size.should == 3
84
84
  end
85
85
 
86
+ should "should suggest venues based on passed criteria" do
87
+ stub_get("https://api.foursquare.com/v2/venues/suggestCompletion?oauth_token=#{@client.oauth_token}&ll=40.7%2C-74&query=coffee", "suggest_completion_venues.json")
88
+ venues = @client.suggest_completion_venues(:ll => "40.7,-74", :query => "coffee")
89
+ venues.minivenues.first.id.should == '44dc96e4f964a520b0361fe3'
90
+ end
91
+
86
92
  end
87
93
 
88
94
  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.3.3
4
+ version: 1.3.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,12 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-12-10 00:00:00.000000000Z
13
+ date: 2012-01-23 00:00:00.000000000 -06:00
14
+ default_executable:
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
17
  name: faraday
17
- requirement: &70355948373380 !ruby/object:Gem::Requirement
18
+ requirement: &20890980 !ruby/object:Gem::Requirement
18
19
  none: false
19
20
  requirements:
20
21
  - - <
@@ -25,10 +26,10 @@ dependencies:
25
26
  version: '0.6'
26
27
  type: :runtime
27
28
  prerelease: false
28
- version_requirements: *70355948373380
29
+ version_requirements: *20890980
29
30
  - !ruby/object:Gem::Dependency
30
31
  name: faraday_middleware
31
- requirement: &70355948371080 !ruby/object:Gem::Requirement
32
+ requirement: &20882740 !ruby/object:Gem::Requirement
32
33
  none: false
33
34
  requirements:
34
35
  - - <
@@ -39,10 +40,10 @@ dependencies:
39
40
  version: '0.6'
40
41
  type: :runtime
41
42
  prerelease: false
42
- version_requirements: *70355948371080
43
+ version_requirements: *20882740
43
44
  - !ruby/object:Gem::Dependency
44
45
  name: hashie
45
- requirement: &70355948361060 !ruby/object:Gem::Requirement
46
+ requirement: &20880760 !ruby/object:Gem::Requirement
46
47
  none: false
47
48
  requirements:
48
49
  - - ~>
@@ -50,10 +51,10 @@ dependencies:
50
51
  version: '1.0'
51
52
  type: :runtime
52
53
  prerelease: false
53
- version_requirements: *70355948361060
54
+ version_requirements: *20880760
54
55
  - !ruby/object:Gem::Dependency
55
56
  name: shoulda
56
- requirement: &70355948358980 !ruby/object:Gem::Requirement
57
+ requirement: &20879880 !ruby/object:Gem::Requirement
57
58
  none: false
58
59
  requirements:
59
60
  - - ! '>='
@@ -61,10 +62,10 @@ dependencies:
61
62
  version: '0'
62
63
  type: :development
63
64
  prerelease: false
64
- version_requirements: *70355948358980
65
+ version_requirements: *20879880
65
66
  - !ruby/object:Gem::Dependency
66
67
  name: bundler
67
- requirement: &70355948357160 !ruby/object:Gem::Requirement
68
+ requirement: &20878480 !ruby/object:Gem::Requirement
68
69
  none: false
69
70
  requirements:
70
71
  - - ~>
@@ -72,10 +73,10 @@ dependencies:
72
73
  version: '1.0'
73
74
  type: :development
74
75
  prerelease: false
75
- version_requirements: *70355948357160
76
+ version_requirements: *20878480
76
77
  - !ruby/object:Gem::Dependency
77
78
  name: jeweler
78
- requirement: &70355948355440 !ruby/object:Gem::Requirement
79
+ requirement: &20877180 !ruby/object:Gem::Requirement
79
80
  none: false
80
81
  requirements:
81
82
  - - ~>
@@ -83,10 +84,10 @@ dependencies:
83
84
  version: '1.5'
84
85
  type: :development
85
86
  prerelease: false
86
- version_requirements: *70355948355440
87
+ version_requirements: *20877180
87
88
  - !ruby/object:Gem::Dependency
88
89
  name: rcov
89
- requirement: &70355948352840 !ruby/object:Gem::Requirement
90
+ requirement: &20836300 !ruby/object:Gem::Requirement
90
91
  none: false
91
92
  requirements:
92
93
  - - ! '>='
@@ -94,10 +95,10 @@ dependencies:
94
95
  version: '0'
95
96
  type: :development
96
97
  prerelease: false
97
- version_requirements: *70355948352840
98
+ version_requirements: *20836300
98
99
  - !ruby/object:Gem::Dependency
99
100
  name: fakeweb
100
- requirement: &70355948350100 !ruby/object:Gem::Requirement
101
+ requirement: &20835100 !ruby/object:Gem::Requirement
101
102
  none: false
102
103
  requirements:
103
104
  - - ~>
@@ -105,10 +106,10 @@ dependencies:
105
106
  version: '1.3'
106
107
  type: :development
107
108
  prerelease: false
108
- version_requirements: *70355948350100
109
+ version_requirements: *20835100
109
110
  - !ruby/object:Gem::Dependency
110
111
  name: jnunemaker-matchy
111
- requirement: &70355948348200 !ruby/object:Gem::Requirement
112
+ requirement: &20833360 !ruby/object:Gem::Requirement
112
113
  none: false
113
114
  requirements:
114
115
  - - ~>
@@ -116,10 +117,10 @@ dependencies:
116
117
  version: '0.4'
117
118
  type: :development
118
119
  prerelease: false
119
- version_requirements: *70355948348200
120
+ version_requirements: *20833360
120
121
  - !ruby/object:Gem::Dependency
121
122
  name: json_pure
122
- requirement: &70355948345540 !ruby/object:Gem::Requirement
123
+ requirement: &20830320 !ruby/object:Gem::Requirement
123
124
  none: false
124
125
  requirements:
125
126
  - - ~>
@@ -127,10 +128,10 @@ dependencies:
127
128
  version: '1.4'
128
129
  type: :development
129
130
  prerelease: false
130
- version_requirements: *70355948345540
131
+ version_requirements: *20830320
131
132
  - !ruby/object:Gem::Dependency
132
133
  name: multi_json
133
- requirement: &70355948343480 !ruby/object:Gem::Requirement
134
+ requirement: &20828660 !ruby/object:Gem::Requirement
134
135
  none: false
135
136
  requirements:
136
137
  - - <
@@ -141,7 +142,7 @@ dependencies:
141
142
  version: 0.0.5
142
143
  type: :development
143
144
  prerelease: false
144
- version_requirements: *70355948343480
145
+ version_requirements: *20828660
145
146
  description: Gives access to all endpoints in version 2 of foursquare's API with syntax
146
147
  that will be familiar to those who used the original foursquare gem by Jeremy Welch.
147
148
  email:
@@ -183,6 +184,7 @@ files:
183
184
  - test/fixtures/search_venues.json
184
185
  - test/fixtures/search_venues_by_tip.json
185
186
  - test/fixtures/special.json
187
+ - test/fixtures/suggest_completion_venues.json
186
188
  - test/fixtures/tip.json
187
189
  - test/fixtures/user.json
188
190
  - test/fixtures/user_mayorships.json
@@ -200,6 +202,7 @@ files:
200
202
  - test/test_tips.rb
201
203
  - test/test_users.rb
202
204
  - test/test_venues.rb
205
+ has_rdoc: true
203
206
  homepage: http://github.com/mattmueller/foursquare2
204
207
  licenses:
205
208
  - MIT
@@ -215,7 +218,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
215
218
  version: '0'
216
219
  segments:
217
220
  - 0
218
- hash: -2816662418227393303
221
+ hash: -2729206348282607676
219
222
  required_rubygems_version: !ruby/object:Gem::Requirement
220
223
  none: false
221
224
  requirements:
@@ -224,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
227
  version: '0'
225
228
  requirements: []
226
229
  rubyforge_project:
227
- rubygems_version: 1.8.10
230
+ rubygems_version: 1.6.2
228
231
  signing_key:
229
232
  specification_version: 3
230
233
  summary: Foursquare API v2 gem in the spirit of the original foursquare gem