john-mayer 0.0.9 → 0.0.10

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 +7 -3
  2. metadata +3 -3
@@ -87,9 +87,13 @@ module Foursquare
87
87
  def checkins_here
88
88
  checkin_json = @foursquare.get("venues/#{last_checkin.venue.id}/herenow")
89
89
  checkin_json["hereNow"]["items"].map do |item|
90
- next unless json = @foursquare.get("checkins/#{item["id"]}")
91
- checkin = json["checkin"]
92
- Foursquare::Checkin.new(@foursquare, checkin)
90
+ begin
91
+ next unless json = @foursquare.get("checkins/#{item["id"]}")
92
+ checkin = json["checkin"]
93
+ Foursquare::Checkin.new(@foursquare, checkin)
94
+ rescue Foursquare::Error
95
+ # We can't get checkin information for people who aren't our friends.
96
+ end
93
97
  end.compact
94
98
  end
95
99
 
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: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 9
10
- version: 0.0.9
9
+ - 10
10
+ version: 0.0.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Pat Nakajima