omniauth-whiplash 0.2.3 → 0.2.5

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
- SHA1:
3
- metadata.gz: fdf5411e4e40903443ad9335cd96b5000b28ac8b
4
- data.tar.gz: e7efe3df8e629e344398dee89cb5ae32c8eea20b
2
+ SHA256:
3
+ metadata.gz: f250e99a52245eff4dac3ac15241c50dfa3cbcef8483aa7e2ffa3b67e638e49f
4
+ data.tar.gz: 6121715638101a3c075968e44b4cc729eccecbaa5bac4e1a10f02678547b1fe5
5
5
  SHA512:
6
- metadata.gz: e2437ed42c019b9d21822e5e506ff0eed4dd31500981461a2ab3721aaad7045cf69e38a7475c8802a0e53ed7d846d9d9e74a37fbd0633012bc37305f73f0e9f1
7
- data.tar.gz: a8ed408c6f985ca51096876c4bd2c06ac467eb962507c69932223c3250a005c59367e23429c1101f61d438bdaccd4d004bdff466d1769799e54f5c788c88bba3
6
+ metadata.gz: a8b6084da9eb41be59ecd78290024eda3ed983678fbbefb4d530a873d806142f8f76e19abdfdbc667462ad0519135dc99aae44ba1c5928d19eb2de99f372e5e6
7
+ data.tar.gz: 3567d06827d07626126901acc9101265b10696d3b21433c1b8f1d6f8e83f71bfc2aaadeca62ae630103cf8e0e7adff8a591d108ff1e4085cccf37102b89aeaa2
data/README.md CHANGED
@@ -26,14 +26,14 @@ Here's a quick example, adding the middleware to a Rails app in config/initializ
26
26
 
27
27
  ```ruby
28
28
  Rails.application.config.middleware.use OmniAuth::Builder do
29
- provider :whiplash, ENV.fetch('WHIPLASH_CLIENT_ID'), ENV.fetch('WHIPLASH_CLIENT_SECRET'), scope: ENV.fetch('WHIPLASH_CLIENT_SCOPE')
29
+ provider :whiplash, ENV.fetch('WHIPLASH_CLIENT_ID'), ENV.fetch('WHIPLASH_CLIENT_SECRET'), scope: ENV.fetch('WHIPLASH_CLIENT_SCOPE'), client_options: {site: ENV.fetch('WHIPLASH_API_URL')}
30
30
  end
31
31
  ```
32
32
 
33
33
  If you are using Devise, you can skip the above and instead include this to your Devise configuration in `initializers/devise.rb`:
34
34
 
35
35
  ```ruby
36
- config.omniauth :whiplash, ENV.fetch('WHIPLASH_CLIENT_ID'), ENV.fetch('WHIPLASH_CLIENT_SECRET'), scope: ENV.fetch('WHIPLASH_CLIENT_SCOPE')
36
+ config.omniauth :whiplash, ENV.fetch('WHIPLASH_CLIENT_ID'), ENV.fetch('WHIPLASH_CLIENT_SECRET'), scope: ENV.fetch('WHIPLASH_CLIENT_SCOPE'), client_options: {site: ENV.fetch('WHIPLASH_API_URL')}
37
37
  ```
38
38
 
39
39
  Please refer to the Whiplash API documentation for information regarding scopes.
@@ -16,6 +16,7 @@ module OmniAuth
16
16
  first_name: raw_info["first_name"],
17
17
  last_name: raw_info["last_name"],
18
18
  role: raw_info["role"],
19
+ locale: raw_info["locale"],
19
20
  partner_id: raw_info["partner_id"],
20
21
  warehouse_id: raw_info["warehouse_id"],
21
22
  customer_ids: raw_info["customer_ids"]
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Whiplash
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.5"
4
4
  end
5
5
  end
@@ -19,10 +19,10 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_development_dependency "bundler", "~> 1.10"
23
- spec.add_development_dependency "rake", "~> 10.0"
22
+ spec.add_development_dependency "bundler"
23
+ spec.add_development_dependency "rake"
24
24
  spec.add_development_dependency "rspec"
25
25
 
26
- spec.add_dependency 'omniauth', '~> 1.0'
27
- spec.add_dependency 'omniauth-oauth2', '~> 1.4'
26
+ spec.add_dependency 'omniauth'
27
+ spec.add_dependency 'omniauth-oauth2'
28
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-whiplash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Dickson
@@ -9,36 +9,36 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-06-18 00:00:00.000000000 Z
12
+ date: 2023-01-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '1.10'
20
+ version: '0'
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - "~>"
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: '1.10'
27
+ version: '0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rake
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - "~>"
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: '10.0'
34
+ version: '0'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - "~>"
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: '10.0'
41
+ version: '0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rspec
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -57,30 +57,30 @@ dependencies:
57
57
  name: omniauth
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - "~>"
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
- version: '1.0'
62
+ version: '0'
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - "~>"
67
+ - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: '1.0'
69
+ version: '0'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: omniauth-oauth2
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - "~>"
74
+ - - ">="
75
75
  - !ruby/object:Gem::Version
76
- version: '1.4'
76
+ version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - "~>"
81
+ - - ">="
82
82
  - !ruby/object:Gem::Version
83
- version: '1.4'
83
+ version: '0'
84
84
  description: Omniauth Strategy for Whiplash Merchandising
85
85
  email:
86
86
  - mark@whiplashmerch.com
@@ -124,9 +124,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  requirements: []
126
126
  rubyforge_project:
127
- rubygems_version: 2.4.5.1
127
+ rubygems_version: 2.7.6.2
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: Omniauth Strategy for Whiplash Merchandising
131
131
  test_files: []
132
- has_rdoc: