foursquare_venues 0.0.1 → 0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown ADDED
@@ -0,0 +1,52 @@
1
+ # foursquare_venues
2
+
3
+ A Foursquare Venues API wrapper based off of [Quimby](https://github.com/groupme/quimby).
4
+
5
+ foursquare_venues removes all dependency on user authentication from Quimby and focuses solely on the Venues API.
6
+
7
+ Documentation good bits extracted from Quimby:
8
+
9
+ ## Installation
10
+
11
+ Install it as a gem (in your `Gemfile`) and its dependencies:
12
+
13
+ gem "json"
14
+ gem "typhoeus"
15
+ gem "foursquare_venues"
16
+
17
+ ## Setup
18
+
19
+ First, you need to [register your application](https://foursquare.com/oauth).
20
+
21
+ Then, get a foursquare_venues with your `client_id` and `client_secret`:
22
+
23
+ foursquare_venues = FoursquareVenues::Venues.new("CLIENT_ID", "CLIENT_SECRET")
24
+
25
+ ### Usage
26
+
27
+ To find a venue directly:
28
+
29
+ foursquare_venues.find("VENUE_ID")
30
+
31
+ You can also search venues:
32
+
33
+ foursquare_venues.search(:ll => "40.7236307,-73.9999479") # Returns all resulting groups
34
+ foursquare_venues.nearby(:ll => "40.7236307,-73.9999479") # Returns only nearby venues
35
+ foursquare_venues.trending(:ll => "40.7236307,-73.9999479") # Returns only trending venues
36
+ foursquare_venues.favorites(:ll => "40.7236307,-73.9999479") # Returns only favorite venues
37
+
38
+ The `:ll` option is required for venue searches. You can also feel free to pass any of the other
39
+ available Foursquare API options, as specified in the docs.
40
+
41
+ ### Logging
42
+
43
+ If you want to see what's going on up in there, you can set `Foursquare.verbose` to `true`
44
+
45
+ Foursquare.verbose = true
46
+
47
+ Right now it'll log to `STDOUT`. If you want to use your own logger, you can do something like this:
48
+
49
+ Foursquare.verbose = true
50
+ def Foursquare.log(message)
51
+ Rails.logger.info("[foursquare] #{message}")
52
+ end
@@ -1,3 +1,3 @@
1
1
  module FoursquareVenues
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: foursquare_venues
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: "0.1"
6
6
  platform: ruby
7
7
  authors:
8
8
  - Tres Trantham
@@ -10,7 +10,8 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-08 00:00:00 Z
13
+ date: 2011-08-26 00:00:00 -04:00
14
+ default_executable:
14
15
  dependencies: []
15
16
 
16
17
  description: A Foursquare Venues API Wrapper
@@ -25,7 +26,7 @@ extra_rdoc_files: []
25
26
  files:
26
27
  - .gitignore
27
28
  - Gemfile
28
- - README
29
+ - README.markdown
29
30
  - Rakefile
30
31
  - foursquare_venues.gemspec
31
32
  - lib/foursquare_venues.rb
@@ -36,6 +37,7 @@ files:
36
37
  - lib/foursquare_venues/venue.rb
37
38
  - lib/foursquare_venues/venues.rb
38
39
  - lib/foursquare_venues/version.rb
40
+ has_rdoc: true
39
41
  homepage: ""
40
42
  licenses:
41
43
  - MIT
@@ -59,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
61
  requirements: []
60
62
 
61
63
  rubyforge_project: foursquare_venues
62
- rubygems_version: 1.8.5
64
+ rubygems_version: 1.6.2
63
65
  signing_key:
64
66
  specification_version: 3
65
67
  summary: A Foursquare Venues API Wrapper
data/README DELETED
File without changes