omniauth-rdstation 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a56b7d99d556802bdecbf6a5f66763b0a1393d47
4
- data.tar.gz: f67daa5d1b9d17c729c7983b2c582f95491a0605
3
+ metadata.gz: 5b0a560ef2d325564679b74fa8933bd0a70ef27e
4
+ data.tar.gz: d52e8a0b6fb023ad35cdd5c05c5baafd8da5c511
5
5
  SHA512:
6
- metadata.gz: f06fb86e2f60b5ae7c4ecfefb27ad02e4960008971ad0606da384b9591d67bf114d4f189db0d733936b1338f15a65c3761a10b408d84d5e7a4b8559ddfad922a
7
- data.tar.gz: 622570524cba98885f3582746868d2aa379c26997344979946758a673a6559ef01e8ae94573b2ffc2589f436c33085b4be76254149eeaf3d21e6b2c690df4fa5
6
+ metadata.gz: 301d84e4256b3806a78e2c989a3f0b990f18baa69edcaafaf2f0522612c6df8dd388a23ff7b74ae886cd765b8b1bafd5475d53479c27f21d626dedddb16a7212
7
+ data.tar.gz: d174b5fbb80f384b446e805f63438393959316ba07baba9bde6d966a65ae5aaeef11f09b9783456579175d9308e53cc72827c7c4fbc55cd1ee219406df942bdf
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Rdstation
3
- VERSION = '0.1.0'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
@@ -16,6 +16,20 @@ module OmniAuth
16
16
  auth_url = { redirect_url: callback_url }.merge(authorize_params)
17
17
  redirect client.auth_code.authorize_url(auth_url)
18
18
  end
19
+
20
+ info do
21
+ { 'account_name' => raw_info['name'] }
22
+ end
23
+
24
+ extra do
25
+ { 'raw_info' => raw_info }
26
+ end
27
+
28
+ def raw_info
29
+ @raw_info ||= MultiJson.decode(
30
+ access_token.get('https://api.rd.services/marketing/account_info').body
31
+ )
32
+ end
19
33
  end
20
34
  end
21
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-rdstation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - RD Station
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-14 00:00:00.000000000 Z
11
+ date: 2019-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler