skittles 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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(id)
13
- get("specials/#{id}")
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
@@ -72,7 +72,7 @@ module Skittles
72
72
  # @requires_acting_user No
73
73
  # @see http://developer.foursquare.com/docs/tips/unmark.html
74
74
  def tip_unmark(id)
75
- post("tips/#{id}/unmark")
75
+ post("tips/#{id}/unmark").tip
76
76
  end
77
77
  end
78
78
  end
@@ -58,22 +58,22 @@ module Skittles
58
58
  nil
59
59
  end
60
60
 
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
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,
@@ -1,3 +1,3 @@
1
1
  module Skittles
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: skittles
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.0
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-08 00:00:00 -05:00
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: -1648337880465772768
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.5.3
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