john-mayer 0.0.8 → 0.0.9

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 (3) hide show
  1. data/README.md +8 -0
  2. data/lib/foursquare.rb +2 -1
  3. metadata +3 -3
data/README.md CHANGED
@@ -19,3 +19,11 @@ Find a checkin:
19
19
  Find a venue:
20
20
 
21
21
  foursquare.venues.find("VENUE_ID")
22
+
23
+ ### Logging
24
+
25
+ If you want to see what's going on up in there, you can set `Foursquare.verbose` to `true`
26
+
27
+ Foursquare.verbose = true
28
+
29
+ Right now it'll log to `STDOUT`. Maybe I'll add nicer logging later. If you're lucky.
@@ -23,7 +23,8 @@ module Foursquare
23
23
  end
24
24
 
25
25
  def self.log(msg)
26
- puts msg if verbose?
26
+ return unless verbose?
27
+ puts "[foursquare] #{msg}"
27
28
  end
28
29
 
29
30
  ERRORS = {
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: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 8
10
- version: 0.0.8
9
+ - 9
10
+ version: 0.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Pat Nakajima