omniauth-whiplash 0.2.3 → 0.2.4

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: fdf5411e4e40903443ad9335cd96b5000b28ac8b
4
- data.tar.gz: e7efe3df8e629e344398dee89cb5ae32c8eea20b
3
+ metadata.gz: 86eee859c408719bc07a2f462d6051bd4d0bdc81
4
+ data.tar.gz: a0c3d3132d482fb60b8f1e3f8bfb988bd418f3f2
5
5
  SHA512:
6
- metadata.gz: e2437ed42c019b9d21822e5e506ff0eed4dd31500981461a2ab3721aaad7045cf69e38a7475c8802a0e53ed7d846d9d9e74a37fbd0633012bc37305f73f0e9f1
7
- data.tar.gz: a8ed408c6f985ca51096876c4bd2c06ac467eb962507c69932223c3250a005c59367e23429c1101f61d438bdaccd4d004bdff466d1769799e54f5c788c88bba3
6
+ metadata.gz: 87684bb74cc2aa4dd6fc74cdeffea6685d4e039bdc0feb383887aa59d845961abfbf56b8a574c5dd04984d73c895721bebcb3aef43c92dd73741a91f1e2bffbf
7
+ data.tar.gz: 17d180145e640bbec5f7bfa63b2086e8241fa364273663a44cf41d0b5098b3191c553d9b0354d3c3f5c6cff4cded0ac5c51d95e90739aae147d5afc28f237199
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.4"
4
4
  end
5
5
  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.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Dickson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-06-18 00:00:00.000000000 Z
12
+ date: 2019-06-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -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.6.14.1
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: Omniauth Strategy for Whiplash Merchandising
131
131
  test_files: []
132
- has_rdoc: