john-mayer 0.0.4 → 0.0.5
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/foursquare/user.rb +4 -3
- metadata +3 -3
data/lib/foursquare/user.rb
CHANGED
|
@@ -86,10 +86,11 @@ module Foursquare
|
|
|
86
86
|
|
|
87
87
|
def checkins_here
|
|
88
88
|
checkin_json = @foursquare.get("venues/#{last_checkin.venue.id}/herenow")
|
|
89
|
-
checkin_json["hereNow"]["items"].map do |
|
|
90
|
-
|
|
89
|
+
checkin_json["hereNow"]["items"].map do |item|
|
|
90
|
+
next unless json = @foursquare.get("checkins/#{item["id"]}")
|
|
91
|
+
checkin = json["checkin"]
|
|
91
92
|
Foursquare::Checkin.new(@foursquare, checkin)
|
|
92
|
-
end
|
|
93
|
+
end.compact
|
|
93
94
|
end
|
|
94
95
|
|
|
95
96
|
def friends
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: john-mayer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 21
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 5
|
|
10
|
+
version: 0.0.5
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Pat Nakajima
|