omniauth-paymium 1.0.2 → 1.0.3

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: 51a243c6eef9e01fd3ad1b5bfe3e88c0b163cd01
4
- data.tar.gz: 16fd31c6ab9d4eb08791b65ca4982a12aa5def61
3
+ metadata.gz: d3b731787f0b04f9bb9d48aa2486df0c05a81c0b
4
+ data.tar.gz: 1129165ef27c3ca46701fa667af5990ef93959d2
5
5
  SHA512:
6
- metadata.gz: 24b5638539124f9f67e0f034aea57077771881a612466d9c73251cdc8739738aca2cf9d499cad03d8c26e6dc52e62234a07755efbc8446e81a8b52ca9ce3606e
7
- data.tar.gz: 1b4ca4bd892ff628e22e54394b1520f9dbdcbad0df52653864f129b8b25726436febe1745bf7dd76bfd50d62176f0a0698d3b5e1268f8957b63978ba342e86e1
6
+ metadata.gz: 9494a3cc44e28cefe63703bfacf7f9bc4e1dcd1c9127e24099d20c67e27eeaa915cce74372e0a997b73fa7cfdcf502381450a81768d9df2a1837e6c630aa563a
7
+ data.tar.gz: 7341070f080cc333a6f2431bb3779ef46128f052e2b85e44b48965a9b1113b17d7f8aa0c9b0c1e4b3a6889b4dd20dcbedcc16c0e8567937b9577713019a01b11
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Paymium
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
5
5
  end
@@ -30,20 +30,13 @@ module OmniAuth
30
30
  client.auth_code.get_token(verifier, token_params)
31
31
  end
32
32
 
33
- uid { raw_info['Profile']['CustomerId'] }
34
-
35
33
  info do
36
34
  {
37
- 'email' => raw_info['Profile']['PrimaryEmail'],
38
- 'name' => raw_info['Profile']['Name']
35
+ 'email' => raw_info['email'],
36
+ 'name' => raw_info['name']
39
37
  }
40
38
  end
41
39
 
42
- extra do
43
- {
44
- 'postal_code' => raw_info['Profile']['PostalCode']
45
- }
46
- end
47
40
 
48
41
  def raw_info
49
42
  access_token.options[:parse] = :json
@@ -53,7 +46,7 @@ module OmniAuth
53
46
  #
54
47
  #@raw_info ||= access_token.get('/ap/user/profile').parsed
55
48
 
56
- url = "/api/v1/user/profile"
49
+ url = '/api/v1/user'
57
50
  params = {:params => { :access_token => access_token.token}}
58
51
  @raw_info ||= access_token.client.request(:get, url, params).parsed
59
52
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-paymium
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre Michard