foursquare2 0.9.6 → 0.9.8
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 +1 -1
- data/VERSION +1 -1
- data/foursquare2.gemspec +2 -2
- data/lib/foursquare2.rb +1 -1
- data/test/test_venues.rb +6 -0
- metadata +4 -4
data/Readme.md
CHANGED
@@ -39,7 +39,7 @@ See [the documentation](http://rubydoc.info/gems/foursquare2/frames) for a list
|
|
39
39
|
|
40
40
|
#### Check-in to a venue as the authenticated user
|
41
41
|
|
42
|
-
client.
|
42
|
+
client.add_checkin(:venueId => "4b2afcaaf964a5205bb324e3", :broadcast => 'public', :ll => '36.142064,-86.816086', :shout => 'zomg coffee!1!')
|
43
43
|
|
44
44
|
|
45
45
|
#### Search user by tip
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.8
|
data/foursquare2.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{foursquare2}
|
8
|
-
s.version = "0.9.
|
8
|
+
s.version = "0.9.8"
|
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 = %q{2011-
|
12
|
+
s.date = %q{2011-05-11}
|
13
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 = [
|
data/lib/foursquare2.rb
CHANGED
data/test/test_venues.rb
CHANGED
@@ -42,7 +42,13 @@ class TestVenues < Test::Unit::TestCase
|
|
42
42
|
should "get tips from a venue only with some term" do
|
43
43
|
stub_get("https://api.foursquare.com/v2/venues/4c94a45c82b56dcb47cad0aa/tips?oauth_token=#{@client.oauth_token}", "venue_tips.json")
|
44
44
|
tips = @client.venue_tips('4c94a45c82b56dcb47cad0aa', {:query => "legal"})
|
45
|
+
tips.items.count.should == 1
|
46
|
+
tips.items.first.id.should == "4c94a45c82b56dcb47cad0aa"
|
47
|
+
end
|
45
48
|
|
49
|
+
should "get tips from a venue only with some term case sensitive" do
|
50
|
+
stub_get("https://api.foursquare.com/v2/venues/4c94a45c82b56dcb47cad0aa/tips?oauth_token=#{@client.oauth_token}", "venue_tips.json")
|
51
|
+
tips = @client.venue_tips('4c94a45c82b56dcb47cad0aa', {:query => "LEGAL"})
|
46
52
|
tips.items.count.should == 1
|
47
53
|
tips.items.first.id.should == "4c94a45c82b56dcb47cad0aa"
|
48
54
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foursquare2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 43
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 8
|
10
|
+
version: 0.9.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Matt Mueller
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-
|
19
|
+
date: 2011-05-11 00:00:00 -05:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|