omniauth-foursquare 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/omniauth-foursquare/version.rb +1 -1
- data/lib/omniauth/strategies/foursquare.rb +14 -8
- metadata +16 -16
@@ -8,6 +8,19 @@ module OmniAuth
|
|
8
8
|
:authorize_url => '/oauth2/authorize',
|
9
9
|
:token_url => '/oauth2/access_token'
|
10
10
|
}
|
11
|
+
|
12
|
+
uid { raw_info['id'] }
|
13
|
+
|
14
|
+
info do
|
15
|
+
{
|
16
|
+
:first_name => raw_info['firstName'],
|
17
|
+
:last_name => raw_info['lastName']
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
extra do
|
22
|
+
{ :raw_info => raw_info }
|
23
|
+
end
|
11
24
|
|
12
25
|
def request_phase
|
13
26
|
options[:authorize_params] = client_params.merge(options[:authorize_params])
|
@@ -18,14 +31,7 @@ module OmniAuth
|
|
18
31
|
OmniAuth::Utils.deep_merge(super, client_params.merge({
|
19
32
|
:grant_type => 'authorization_code'}))
|
20
33
|
end
|
21
|
-
|
22
|
-
info do
|
23
|
-
{
|
24
|
-
:first_name => raw_info['firstName'],
|
25
|
-
:last_name => raw_info['lastName']
|
26
|
-
}
|
27
|
-
end
|
28
|
-
|
34
|
+
|
29
35
|
def raw_info
|
30
36
|
access_token.options[:mode] = :query
|
31
37
|
access_token.options[:param_name] = :oauth_token
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-foursquare
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-11-
|
12
|
+
date: 2011-11-30 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omniauth
|
16
|
-
requirement: &
|
16
|
+
requirement: &70353290211300 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '1.0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70353290211300
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: omniauth-oauth2
|
27
|
-
requirement: &
|
27
|
+
requirement: &70353290210620 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '1.0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70353290210620
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
38
|
-
requirement: &
|
38
|
+
requirement: &70353290210100 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '2.7'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70353290210100
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rack-test
|
49
|
-
requirement: &
|
49
|
+
requirement: &70353290209700 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70353290209700
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: simplecov
|
60
|
-
requirement: &
|
60
|
+
requirement: &70353290209160 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70353290209160
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: webmock
|
71
|
-
requirement: &
|
71
|
+
requirement: &70353290208580 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,7 +76,7 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70353290208580
|
80
80
|
description: Foursquare OAuth strategy for OmniAuth
|
81
81
|
email:
|
82
82
|
- arunagw@gmail.com
|
@@ -111,7 +111,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
111
111
|
version: '0'
|
112
112
|
segments:
|
113
113
|
- 0
|
114
|
-
hash:
|
114
|
+
hash: -206105137544598257
|
115
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
version: '0'
|
121
121
|
segments:
|
122
122
|
- 0
|
123
|
-
hash:
|
123
|
+
hash: -206105137544598257
|
124
124
|
requirements: []
|
125
125
|
rubyforge_project: omniauth-foursquare
|
126
126
|
rubygems_version: 1.8.10
|