omniauth-liblynx 1.0.5 → 1.0.6

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
  SHA256:
3
- metadata.gz: 4c49457206bdbec492f7b906b7b3b4805d26bbf048a0b692fabac835cf5cac36
4
- data.tar.gz: 35b68c90e11828c8e82ea1858dfdcc18b28a742265236b1dd79a98762827f2cb
3
+ metadata.gz: 72198df8541e1d99ef9ec68869c1ee56684ff15f823e084187af4fcfedbe2761
4
+ data.tar.gz: 5dce95053af8b6317d530d9e3e66fd1166cba7050e024e2def453815af5e7b3a
5
5
  SHA512:
6
- metadata.gz: b5024e861a933d2c732eafb71fd21bb4801208ebd7d331364fbaab5405c3822947becb3f3c3f4590467c7c279c0e5a4bb49447cea9fa56a59bf945e2fdfe22e4
7
- data.tar.gz: 6b817284bd03a08641018bcb820ac5f165e01f35266619be5747a6eff13a0d8bcc771dd47f7b12dce449afae88191b6ac038c30229ee8d5b97e0783c82bd403e
6
+ metadata.gz: 2ed42bc1f6c9e3e9f9c51b9a2bfe731712c1bb1f0372c7303edcb7dc7be03a122d8cd39d3e0baffeea3e4dbad63b6528153198798c31b9204dd6c43770c27106
7
+ data.tar.gz: 0775ad2e2b40a408bb057d3b5063250c8f99110f13c766eb213078f0ec7acddfffe3547aac804d6b9692950d486da9b57655c4d4f002f31502def951f92842f5
@@ -1,23 +1,25 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth-liblynx (1.0.5)
4
+ omniauth-liblynx (1.0.6)
5
5
  omniauth (~> 1.5)
6
6
  omniauth-oauth2 (>= 1.4.0, < 2.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- faraday (0.12.2)
11
+ ast (2.4.0)
12
+ faraday (0.15.3)
12
13
  multipart-post (>= 1.2, < 3)
13
14
  hashie (3.5.7)
14
- jwt (1.5.6)
15
+ jaro_winkler (1.5.1)
16
+ jwt (2.1.0)
15
17
  multi_json (1.13.1)
16
18
  multi_xml (0.6.0)
17
19
  multipart-post (2.0.0)
18
- oauth2 (1.4.0)
19
- faraday (>= 0.8, < 0.13)
20
- jwt (~> 1.0)
20
+ oauth2 (1.4.1)
21
+ faraday (>= 0.8, < 0.16.0)
22
+ jwt (>= 1.0, < 3.0)
21
23
  multi_json (~> 1.3)
22
24
  multi_xml (~> 0.5)
23
25
  rack (>= 1.2, < 3)
@@ -27,16 +29,33 @@ GEM
27
29
  omniauth-oauth2 (1.5.0)
28
30
  oauth2 (~> 1.1)
29
31
  omniauth (~> 1.2)
32
+ parallel (1.12.1)
33
+ parser (2.5.1.2)
34
+ ast (~> 2.4.0)
35
+ powerpack (0.1.2)
30
36
  rack (2.0.5)
37
+ rainbow (3.0.0)
31
38
  rake (10.5.0)
39
+ rubocop (0.59.2)
40
+ jaro_winkler (~> 1.5.1)
41
+ parallel (~> 1.10)
42
+ parser (>= 2.5, != 2.5.1.1)
43
+ powerpack (~> 0.1)
44
+ rainbow (>= 2.2.2, < 4.0)
45
+ ruby-progressbar (~> 1.7)
46
+ unicode-display_width (~> 1.0, >= 1.0.1)
47
+ ruby-progressbar (1.10.0)
48
+ unicode-display_width (1.4.0)
32
49
 
33
50
  PLATFORMS
34
51
  ruby
52
+ x86_64-darwin-18
35
53
 
36
54
  DEPENDENCIES
37
55
  bundler
38
56
  omniauth-liblynx!
39
57
  rake (< 11.0)
58
+ rubocop
40
59
 
41
60
  BUNDLED WITH
42
- 1.16.5
61
+ 1.17.0
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module LibLynx
5
- VERSION = '1.0.5'
5
+ VERSION = '1.0.6'
6
6
  end
7
7
  end
@@ -41,7 +41,8 @@ module OmniAuth
41
41
  'name' => i['display_name'],
42
42
  'surname' => i['surname'],
43
43
  'given_name' => i['given_name'],
44
- 'raw' => raw_info.reject { |k, _| k.index('_') == 0 }
44
+ 'raw' => raw_info['_response'],
45
+ 'attributes' => raw_info.dig('_response', 'attributes')
45
46
  }
46
47
  end
47
48
 
@@ -66,7 +67,12 @@ module OmniAuth
66
67
  .request(:post, options.id_url, body: id_body.merge(url: @auth_url))
67
68
  .parsed
68
69
  ref = r.dig('account', 'publisher_reference')
69
- (r['account_individual'] || {}).merge('reference' => ref)
70
+ {
71
+ '_response' => r,
72
+ 'reference' => ref
73
+ }
74
+ .compact
75
+ .merge(r['account_individual'] || {})
70
76
  end
71
77
  end
72
78
 
@@ -16,6 +16,7 @@ Gem::Specification.new do |gem|
16
16
 
17
17
  gem.add_development_dependency 'bundler'
18
18
  gem.add_development_dependency 'rake', '< 11.0'
19
+ gem.add_development_dependency 'rubocop'
19
20
 
20
21
  gem.add_dependency 'omniauth', '~> 1.5'
21
22
  gem.add_dependency 'omniauth-oauth2', '>= 1.4.0', '< 2.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-liblynx
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Sablic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-15 00:00:00.000000000 Z
11
+ date: 2018-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "<"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '11.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: omniauth
43
57
  requirement: !ruby/object:Gem::Requirement