skittles 0.3.0 → 0.3.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.
- data/lib/skittles/client/special.rb +3 -3
- data/lib/skittles/client/tip.rb +1 -1
- data/lib/skittles/client/venue.rb +17 -17
- data/lib/skittles/version.rb +1 -1
- metadata +4 -4
@@ -9,8 +9,8 @@ module Skittles
|
|
9
9
|
# @return [Hashie::Mash] A complete special.
|
10
10
|
# @requires_acting_user No
|
11
11
|
# @see http://developer.foursquare.com/docs/specials/specials.html
|
12
|
-
def special(
|
13
|
-
get("specials/#{
|
12
|
+
def special(special_id, venue_id)
|
13
|
+
get("specials/#{special_id}", :venueId => venue_id).special
|
14
14
|
end
|
15
15
|
|
16
16
|
# Returns a list of specials near the current location.
|
@@ -26,7 +26,7 @@ module Skittles
|
|
26
26
|
# @requires_acting_user Yes
|
27
27
|
# @see http://developer.foursquare.com/docs/specials/search.html
|
28
28
|
def special_search(ll, options = {})
|
29
|
-
get('specials/search', { :ll => ll }.merge(options))
|
29
|
+
get('specials/search', { :ll => ll }.merge(options)).specials
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
data/lib/skittles/client/tip.rb
CHANGED
@@ -58,22 +58,22 @@ module Skittles
|
|
58
58
|
nil
|
59
59
|
end
|
60
60
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
61
|
+
# Provides a count of how many people are at a given venue, plus the
|
62
|
+
# first page of the users there, friends-first, and if the current user
|
63
|
+
# is authenticated.
|
64
|
+
#
|
65
|
+
# @note This is an experimental API.
|
66
|
+
# @param id [String] Id of a venue to retrieve.
|
67
|
+
# @param options [Hash] A customizable set of options.
|
68
|
+
# @option options [Integer] limit Number of results to return, up to 500.
|
69
|
+
# @option options [Integer] offset Used to page through results.
|
70
|
+
# @option options [Integer] afterTimestamp Retrieve the first results to follow these seconds since epoch.
|
71
|
+
# @return [Hashie::Mash] A count of items where items are checkins.
|
72
|
+
# @requires_acting_user No
|
73
|
+
# @see http://developer.foursquare.com/docs/venues/herenow.html
|
74
|
+
def herenow(id, options = {})
|
75
|
+
get("venues/#{id}/herenow", options).hereNow
|
76
|
+
end
|
77
77
|
|
78
78
|
# Returns photos for a venue.
|
79
79
|
#
|
@@ -128,7 +128,7 @@ module Skittles
|
|
128
128
|
# @requires_acting_user No
|
129
129
|
# @see http://developer.foursquare.com/docs/venues/trending.html
|
130
130
|
def trending(ll, options = {})
|
131
|
-
get('venues/trending', { :ll => ll }.merge(options))
|
131
|
+
get('venues/trending', { :ll => ll }.merge(options)).venues
|
132
132
|
end
|
133
133
|
|
134
134
|
# Gives details about a venue, including location, mayorship, tags, tips,
|
data/lib/skittles/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: skittles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.3.
|
5
|
+
version: 0.3.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Anthony Smith
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-03-
|
13
|
+
date: 2011-03-12 00:00:00 -05:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -145,7 +145,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
145
145
|
requirements:
|
146
146
|
- - ">="
|
147
147
|
- !ruby/object:Gem::Version
|
148
|
-
hash:
|
148
|
+
hash: 4092488723339903251
|
149
149
|
segments:
|
150
150
|
- 0
|
151
151
|
version: "0"
|
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
158
|
requirements: []
|
159
159
|
|
160
160
|
rubyforge_project:
|
161
|
-
rubygems_version: 1.
|
161
|
+
rubygems_version: 1.6.2
|
162
162
|
signing_key:
|
163
163
|
specification_version: 3
|
164
164
|
summary: Foursquare v2 REST API client library for Ruby
|