foursquare2 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -2
- data/Gemfile.lock +7 -7
- data/Readme.md +45 -2
- data/VERSION +1 -1
- data/foursquare2.gemspec +8 -8
- data/lib/foursquare2/client.rb +1 -1
- metadata +11 -11
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -3,12 +3,12 @@ GEM
|
|
3
3
|
specs:
|
4
4
|
addressable (2.2.4)
|
5
5
|
fakeweb (1.3.0)
|
6
|
-
faraday (0.
|
6
|
+
faraday (0.6.0)
|
7
7
|
addressable (~> 2.2.4)
|
8
8
|
multipart-post (~> 1.1.0)
|
9
|
-
rack (>= 1.1.0
|
10
|
-
faraday_middleware (0.
|
11
|
-
faraday (~> 0.
|
9
|
+
rack (< 2, >= 1.1.0)
|
10
|
+
faraday_middleware (0.6.0)
|
11
|
+
faraday (~> 0.6.0)
|
12
12
|
git (1.2.5)
|
13
13
|
hashie (1.0.0)
|
14
14
|
jeweler (1.5.2)
|
@@ -19,7 +19,7 @@ GEM
|
|
19
19
|
json_pure (1.5.1)
|
20
20
|
multi_json (0.0.5)
|
21
21
|
multipart-post (1.1.0)
|
22
|
-
rack (1.2.
|
22
|
+
rack (1.2.2)
|
23
23
|
rake (0.8.7)
|
24
24
|
rcov (0.9.9)
|
25
25
|
shoulda (2.11.3)
|
@@ -30,8 +30,8 @@ PLATFORMS
|
|
30
30
|
DEPENDENCIES
|
31
31
|
bundler (~> 1.0.0)
|
32
32
|
fakeweb (~> 1.3)
|
33
|
-
faraday (~> 0.
|
34
|
-
faraday_middleware (~> 0.
|
33
|
+
faraday (~> 0.6.0)
|
34
|
+
faraday_middleware (~> 0.6.0)
|
35
35
|
hashie (~> 1.0.0)
|
36
36
|
jeweler (~> 1.5.2)
|
37
37
|
jnunemaker-matchy (~> 0.4)
|
data/Readme.md
CHANGED
@@ -14,7 +14,7 @@ Currently this gem does not handle the oauth2 authentication flow for you, use t
|
|
14
14
|
|
15
15
|
### Instantiate a client (Userless Access)
|
16
16
|
|
17
|
-
client = Foursquare2::Client.new(:
|
17
|
+
client = Foursquare2::Client.new(:client_id => 'your_client_id', :client_secret => 'your_secret')
|
18
18
|
|
19
19
|
### Instantiate a client (Authenticated User Access)
|
20
20
|
|
@@ -41,9 +41,52 @@ See [the documentation](http://rubydoc.info/gems/foursquare2/frames) for a list
|
|
41
41
|
|
42
42
|
client.checkin(:venueId => "4b2afcaaf964a5205bb324e3", :broadcast => 'public', :ll => '36.142064,-86.816086', :shout => 'zomg coffee!1!')
|
43
43
|
|
44
|
+
## Full list of methods
|
45
|
+
|
46
|
+
See [the documentation](http://rubydoc.info/gems/foursquare2/frames) or [foursquare's endpoint list](http://developer.foursquare.com/docs/index_docs.html) for parameters.
|
47
|
+
|
48
|
+
client.checkin
|
49
|
+
client.recent_checkins
|
50
|
+
client.add_checkin
|
51
|
+
client.add_checkin_comment
|
52
|
+
client.delete_checkin_comment
|
53
|
+
client.photo
|
54
|
+
client.settings
|
55
|
+
client.setting
|
56
|
+
client.update_setting
|
57
|
+
client.special
|
58
|
+
client.search_specials
|
59
|
+
client.tip
|
60
|
+
client.search_tips
|
61
|
+
client.add_tip
|
62
|
+
client.mark_tip_todo
|
63
|
+
client.mark_tip_done
|
64
|
+
client.unmark_tip
|
65
|
+
client.user
|
66
|
+
client.search_users
|
67
|
+
client.user_requests
|
68
|
+
client.user_badges
|
69
|
+
client.user_checkins
|
70
|
+
client.user_friends
|
71
|
+
client.user_tips
|
72
|
+
client.user_todos
|
73
|
+
client.user_venue_history
|
74
|
+
client.user_friend_request
|
75
|
+
client.user_unfriend
|
76
|
+
client.user_approve_friend
|
77
|
+
client.user_deny_friend
|
78
|
+
client.user_set_friend_pings
|
79
|
+
client.venue
|
80
|
+
client.search_venues
|
81
|
+
client.venue_categories
|
82
|
+
client.add_venue
|
83
|
+
client.mark_venue_todo
|
84
|
+
client.flag_venue
|
85
|
+
client.propose_venue_edit
|
86
|
+
|
44
87
|
## Todo
|
45
88
|
|
46
|
-
*
|
89
|
+
* More test coverage
|
47
90
|
* Integrate oauth2 authentication flow
|
48
91
|
|
49
92
|
## Contributing to foursquare2
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.1
|
data/foursquare2.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{foursquare2}
|
8
|
-
s.version = "0.9.
|
8
|
+
s.version = "0.9.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Matt Mueller"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-04-05}
|
13
13
|
s.description = %q{Gives access to all endpoints in version 2 of foursquare's API with syntax that will be familiar to those who used the original foursquare gem by Jeremy Welch.}
|
14
14
|
s.email = %q{muellermr@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -74,8 +74,8 @@ Gem::Specification.new do |s|
|
|
74
74
|
s.specification_version = 3
|
75
75
|
|
76
76
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
77
|
-
s.add_runtime_dependency(%q<faraday>, ["~> 0.
|
78
|
-
s.add_runtime_dependency(%q<faraday_middleware>, ["~> 0.
|
77
|
+
s.add_runtime_dependency(%q<faraday>, ["~> 0.6.0"])
|
78
|
+
s.add_runtime_dependency(%q<faraday_middleware>, ["~> 0.6.0"])
|
79
79
|
s.add_runtime_dependency(%q<hashie>, ["~> 1.0.0"])
|
80
80
|
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
81
81
|
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
@@ -86,8 +86,8 @@ Gem::Specification.new do |s|
|
|
86
86
|
s.add_development_dependency(%q<json_pure>, ["~> 1.4"])
|
87
87
|
s.add_development_dependency(%q<multi_json>, ["~> 0.0.5"])
|
88
88
|
else
|
89
|
-
s.add_dependency(%q<faraday>, ["~> 0.
|
90
|
-
s.add_dependency(%q<faraday_middleware>, ["~> 0.
|
89
|
+
s.add_dependency(%q<faraday>, ["~> 0.6.0"])
|
90
|
+
s.add_dependency(%q<faraday_middleware>, ["~> 0.6.0"])
|
91
91
|
s.add_dependency(%q<hashie>, ["~> 1.0.0"])
|
92
92
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
93
93
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
@@ -99,8 +99,8 @@ Gem::Specification.new do |s|
|
|
99
99
|
s.add_dependency(%q<multi_json>, ["~> 0.0.5"])
|
100
100
|
end
|
101
101
|
else
|
102
|
-
s.add_dependency(%q<faraday>, ["~> 0.
|
103
|
-
s.add_dependency(%q<faraday_middleware>, ["~> 0.
|
102
|
+
s.add_dependency(%q<faraday>, ["~> 0.6.0"])
|
103
|
+
s.add_dependency(%q<faraday_middleware>, ["~> 0.6.0"])
|
104
104
|
s.add_dependency(%q<hashie>, ["~> 1.0.0"])
|
105
105
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
106
106
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
data/lib/foursquare2/client.rb
CHANGED
@@ -39,8 +39,8 @@ module Foursquare2
|
|
39
39
|
params[:oauth_token] = @oauth_token if @oauth_token
|
40
40
|
@connection ||= Faraday::Connection.new(:url => api_url, :params => params, :headers => default_headers) do |builder|
|
41
41
|
builder.adapter Faraday.default_adapter
|
42
|
-
builder.use Faraday::Response::ParseJson
|
43
42
|
builder.use Faraday::Response::Mashify
|
43
|
+
builder.use Faraday::Response::ParseJson
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foursquare2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 57
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 1
|
10
|
+
version: 0.9.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Matt Mueller
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-04-05 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -24,12 +24,12 @@ dependencies:
|
|
24
24
|
requirements:
|
25
25
|
- - ~>
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
hash:
|
27
|
+
hash: 7
|
28
28
|
segments:
|
29
29
|
- 0
|
30
|
-
-
|
31
|
-
-
|
32
|
-
version: 0.
|
30
|
+
- 6
|
31
|
+
- 0
|
32
|
+
version: 0.6.0
|
33
33
|
requirement: *id001
|
34
34
|
prerelease: false
|
35
35
|
type: :runtime
|
@@ -40,12 +40,12 @@ dependencies:
|
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
hash:
|
43
|
+
hash: 7
|
44
44
|
segments:
|
45
45
|
- 0
|
46
|
-
-
|
46
|
+
- 6
|
47
47
|
- 0
|
48
|
-
version: 0.
|
48
|
+
version: 0.6.0
|
49
49
|
requirement: *id002
|
50
50
|
prerelease: false
|
51
51
|
type: :runtime
|