omniauth-tbs 0.0.5 → 0.0.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c825a6908640ad907a12fa787fab40c963b38d5
4
- data.tar.gz: bffa02ca4bb7607133609860b33e11fb84dac4b6
3
+ metadata.gz: 799e2ff8a8898e7d83c8ddeabcc38c50aec67d9b
4
+ data.tar.gz: 864a86c6dd4f6dbe4ca9af5e1e9fd949be5b1812
5
5
  SHA512:
6
- metadata.gz: d1452aca1a1a738c6a145044ffc73b073b56455252dad24fffd2b9486bca85723a15ce65decca3b33a31b1da03bd03fec233d1adf34d34d29dccf598210ad411
7
- data.tar.gz: 028315e77e293894c5d6e4e018433064427fa9413ea62322263c116668f4355786fb599aa1e78a7507b83bd33ed38686066201970b077ac9235cfd3b1d585672
6
+ metadata.gz: 0c7dfe3ddc2693b5ca6f85332d563fd14effacc0ab8dd7b9a179c80ae1b4b761d97c07cabd7647efdaaadb6ddc6d7f60da7604ac1d947ae1d633fd1d94f6c747
7
+ data.tar.gz: 4a78aebaf5bdb2c94a798ebc6427b03c3d74de4b987d49f284ba5c9d6abb1f093c8ea927eeb4e24ce033f47fcf71538c2b3a58a556b50d863e8b949229af18fc
@@ -11,10 +11,15 @@ module OmniAuth
11
11
  uid { raw_info["id"] }
12
12
  info do
13
13
  {
14
- :email => raw_info["email"]
15
- # and anything else you want to return to your API consumers
14
+ :id => raw_info['id'],
15
+ :username => raw_info['username'],
16
+ :first_name => raw_info['user_information']['first_name'],
17
+ :last_name => raw_info['user_information']['last_name'],
18
+ :secondary_email => raw_info['user_information']['last_name'],
19
+ :email => raw_info['email']
16
20
  }
17
21
  end
22
+
18
23
  def raw_info
19
24
  @raw_info ||= access_token.get('/api/v1/users/show.json').parsed
20
25
  end
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Tbs
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-tbs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erwin Schens