omniauth-allplayers 0.0.1 → 0.0.2
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.
@@ -41,7 +41,9 @@ module OmniAuth
|
|
41
41
|
def raw_info
|
42
42
|
# This is a public API and does not need signing or authentication
|
43
43
|
request = "/api/v1/rest/users/current.json"
|
44
|
-
|
44
|
+
resp_redir = access_token.get(request)
|
45
|
+
user_url = resp_redir['location']
|
46
|
+
@raw_info ||= MultiJson.load(access_token.get(user_url).body)
|
45
47
|
rescue ::Errno::ETIMEDOUT
|
46
48
|
raise ::Timeout::Error
|
47
49
|
end
|
@@ -51,11 +53,6 @@ module OmniAuth
|
|
51
53
|
def user_info
|
52
54
|
@user_info ||= raw_info.nil? ? {} : raw_info
|
53
55
|
end
|
54
|
-
|
55
|
-
#def request_phase
|
56
|
-
# options[:authorize_params] = {:perms => options[:scope]} if options[:scope]
|
57
|
-
# super
|
58
|
-
#end
|
59
56
|
end
|
60
57
|
end
|
61
58
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-allplayers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Chris Christensen
|
@@ -15,7 +15,8 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-10-
|
18
|
+
date: 2012-10-13 00:00:00 -05:00
|
19
|
+
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: multi_json
|
@@ -125,6 +126,7 @@ files:
|
|
125
126
|
- omniauth-allplayers.gemspec
|
126
127
|
- spec/omniauth/strategies/allplayers_spec.rb
|
127
128
|
- spec/spec_helper.rb
|
129
|
+
has_rdoc: true
|
128
130
|
homepage: https://github.com/AllPlayers/omniauth-allplayers
|
129
131
|
licenses: []
|
130
132
|
|
@@ -154,10 +156,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
156
|
requirements: []
|
155
157
|
|
156
158
|
rubyforge_project: omniauth-allplayers
|
157
|
-
rubygems_version: 1.
|
159
|
+
rubygems_version: 1.6.2
|
158
160
|
signing_key:
|
159
161
|
specification_version: 3
|
160
162
|
summary: OmniAuth strategy for AllPlayers.com
|
161
|
-
test_files:
|
162
|
-
|
163
|
-
- spec/spec_helper.rb
|
163
|
+
test_files: []
|
164
|
+
|