omniauth-cloudsdale 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Cloudsdale
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -16,11 +16,14 @@ module OmniAuth
16
16
 
17
17
  info do
18
18
  {
19
- :email => raw_info["user"]["email"]
19
+ :email => raw_info["user"]["email"],
20
+ :name => raw_info["user"]["name"],
21
+ :nickname => raw_info["user"]["username"],
22
+ :image => raw_info["user"]["avatar"]
20
23
  }
21
24
  end
22
25
 
23
- extra { raw_info }
26
+ extra { raw_info["user"] }
24
27
 
25
28
  def raw_info
26
29
  @raw_info ||= access_token.get("https://api.cloudsdale.org/v2/me.json").parsed
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-cloudsdale
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: