esi 0.2.8 → 0.2.9

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: 3431f7a51bb1cdac9ea31f0ac73bcd1298e6eaed
4
- data.tar.gz: 9a13b9eed3983d20ef6b313f26fa330b925a7297
3
+ metadata.gz: 6df2087298b3987dceaf13c62283d71cb15a0579
4
+ data.tar.gz: 6548999291743fb08017c99a5b1cf7e9f289d633
5
5
  SHA512:
6
- metadata.gz: 355f65bb88f78672271ced9e9ec9002864c274003d65698137e57b051f6c2109e6e6f8d4571761dc540f646b304534f0f64b1609904f7a5cb35c8f376e407412
7
- data.tar.gz: cc0572bc75155d1faeccffbc4641aecd67f32bcb738f8cd1b031e51e4aecbcf0e1bb8406efdcdbe0ebaff31f4840a513bbe2c7d9d773f14d19819b836446a127
6
+ metadata.gz: 6993f2ed69827495f1e5a5df37ca828c9adbbae91642b11a8e85b6f31cb3d37cec66be31772a115f4fac756dec1f1fc424e510c08c258d14c9bc50d3e41eb889
7
+ data.tar.gz: 882a29b85e8ad30c985622b8967eb1fb4ddb8db189169803823417bf0e640215502986be39f3adfe92cae02b249415b81fd084e8dd591545543c6ab1996a6b6d
@@ -1,3 +1,3 @@
1
1
  module Esi
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
@@ -5,7 +5,7 @@ module OmniAuth
5
5
  class Esi < OmniAuth::Strategies::OAuth2
6
6
  option :name, 'esi'
7
7
  option :client_options, { site: ::Esi.config.oauth_host, verify_url: '/oauth/verify' }
8
- option :authorize_options, [:scope]
8
+ option :authorize_options, [:scope, :callback_url]
9
9
 
10
10
  uid { extra_info[:character_id] }
11
11
 
@@ -39,7 +39,7 @@ module OmniAuth
39
39
  params = super
40
40
  params = params.merge(request.params) unless OmniAuth.config.test_mode
41
41
  params[:scope] = params[:scope].join(' ') if params[:scope].is_a?(Array)
42
- params[:redirect_uri] = callback_url
42
+ params[:redirect_uri] = params[:callback_url].presence || callback_url
43
43
  params
44
44
  end
45
45
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Hiemstra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-12 00:00:00.000000000 Z
11
+ date: 2017-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2