omniauth-tradegecko 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,7 +21,7 @@ module OmniAuth
21
21
  end
22
22
 
23
23
  def raw_info
24
- @raw_info ||= access_token.get('/users/current').parsed
24
+ @raw_info ||= access_token.get('/users/current').parsed["user"]
25
25
  end
26
26
  end
27
27
  end
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module TradeGecko
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -0,0 +1,2 @@
1
+
2
+ {"user":{"id":1,"first_name":"Bradley","last_name":"Priest","email":"bradley@tradegecko.com","status":"active","roles":["user","admin"],"location":null,"position":null,"phone_number":"1234567","mobile_phone":null,"last_sign_in_at":"2013-04-10T06:58:46Z","avatar_url":"https://tradegecko-images.s3.amazonaws.com/uploads/user/avatar/13/34b3e93704a811f2befad5a894e28072.jpeg","account_id":1}}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-tradegecko
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-03 00:00:00.000000000 Z
12
+ date: 2013-04-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth
@@ -125,6 +125,7 @@ files:
125
125
  - omniauth-tradegecko.gemspec
126
126
  - spec/omniauth/strategies/tradegecko_spec.rb
127
127
  - spec/spec_helper.rb
128
+ - spec/support/current.json
128
129
  homepage: https://github.com/tradegecko/omniauth-tradegecko
129
130
  licenses: []
130
131
  post_install_message:
@@ -152,4 +153,5 @@ summary: Omniauth strategy for TradeGecko
152
153
  test_files:
153
154
  - spec/omniauth/strategies/tradegecko_spec.rb
154
155
  - spec/spec_helper.rb
156
+ - spec/support/current.json
155
157
  has_rdoc: