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.
Files changed (2) hide show
  1. data/lib/foursquare/user.rb +4 -3
  2. metadata +3 -3
@@ -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 |json|
90
- checkin = @foursquare.get("checkins/#{json["id"]}")["checkin"]
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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Pat Nakajima