omniauth-parallelmarkets 0.1.1 → 0.2.0

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
  SHA256:
3
- metadata.gz: 2c6b382d351a845a0e8b4edb867ca7b49fee4ea70bff43092ff4996766900478
4
- data.tar.gz: 27eb701bbeffaf81d32ed6090f73dd79b181fd393b984b80a9a51e5f477b9331
3
+ metadata.gz: e4f6fcf2ea0b6a34e008507971044f27933d1b973e15384639551b10cc7087f6
4
+ data.tar.gz: ffbd698e80c6bae14b05d7f277b05b9fd4099f16ed229edb45baf20254198b4d
5
5
  SHA512:
6
- metadata.gz: ab7b0e609c87ac035242a887879d8a150039ab6e58d55fea0ceec816e3736a6d40e26679d3c239e6eb7e11b3a9040a4f2fd6f7ad110b6d4b2899e74581b6688b
7
- data.tar.gz: 2c70c949e15ad49b3e37004c4c97f34c7123e929a1fdce5b6d7e9613628e8c122d5220b52928fbcc395a3b0b1dc892c128dc3584699697b3d331c29f1739385a
6
+ metadata.gz: d7f75a678d03e70fdee7fc068ef92f799fd78d54f3f2df14185b8ef2064d3debe12d35f93bbc03702926aea04fd741acd23f76b0d60c4b5f4a004c507ca0aa6b
7
+ data.tar.gz: 635a1ed6c37c5476d2f2dbc5a5aa77990056aff7238c463c485dd812959637cadcdc7a94dc4bad651dcc51b57a790aabf8018d6e1d1f3d71918a7130aa98091e
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module ParallelMarkets
5
- VERSION = '0.1.1'
5
+ VERSION = '0.2.0'
6
6
  end
7
7
  end
@@ -23,7 +23,7 @@ module OmniAuth
23
23
 
24
24
  extra do
25
25
  {
26
- accreditations: raw_info['accreditations'],
26
+ accreditations: accreditations,
27
27
  business_type: profile['business_type'],
28
28
  type: raw_info['type'],
29
29
  user_id: raw_info['user_id'],
@@ -46,6 +46,14 @@ module OmniAuth
46
46
  def profile
47
47
  @profile ||= raw_info.fetch('profile', {})
48
48
  end
49
+
50
+ def raw_accreditations
51
+ @accreditations ||= access_token.get('/v1/accreditations').parsed
52
+ end
53
+
54
+ def accreditations
55
+ raw_accreditations['accreditations']
56
+ end
49
57
  end
50
58
  end
51
59
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-parallelmarkets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Muller
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-16 00:00:00.000000000 Z
11
+ date: 2019-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  - !ruby/object:Gem::Version
105
105
  version: '0'
106
106
  requirements: []
107
- rubygems_version: 3.0.3
107
+ rubygems_version: 3.0.6
108
108
  signing_key:
109
109
  specification_version: 4
110
110
  summary: Parallel Markets OAuth strategy for OmniAuth