omniauth-matique 0.1.1 → 0.1.2

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: 980e0dc38689fb49ac61f868d081e8c167b4b5e3
4
- data.tar.gz: 5f986205dfec931feebba5dcc6c4052c8dc42243
3
+ metadata.gz: afb4ed6081fd2540a20e571ee414214e319226cf
4
+ data.tar.gz: ad567a7d23511af93bfc6e54a371d5a9e99e2cbb
5
5
  SHA512:
6
- metadata.gz: 6b767b4eb52be4f98c1a45f64c445ba0bedbb895c1dfb01511810ae62ca744a16bd4052cf965ced8ff963de5186a47bb6cad3e8195ceb63ca2fc37f550faf6a3
7
- data.tar.gz: 92375956494094a3704849d11ae41e80ec3b9530428b88a37afd04974c93185411619cf0f1e7ba10d81b4a7b3adad50372fb71b2dc908f00075df9f01511702a
6
+ metadata.gz: d09e53fc34b5afa6d5fe1f58fa0a1f505d3389c919c083add9dc735e159b71f53e2c33307c270243e907dec8370bc286cc51956b8715459646e5e55599f4ead1
7
+ data.tar.gz: 125e71daa0c62c7c26b7f08b2e6ef0b753a70801c24e68d8b40f5387552edd3af97ef42fcb195e1671ef624f304cf495cdb827c05b7e198b3f4098526f599953
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Matique
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  end
@@ -4,14 +4,14 @@ module OmniAuth
4
4
  module Strategies
5
5
  class Matique < OmniAuth::Strategies::OAuth2
6
6
  # AuthUrl = ENV["HEROKU_AUTH_URL"] || "https://id.heroku.com"
7
- # SITE = 'https://login.matique.de'
8
- SITE = 'http://localhost:3010'
7
+ AUTH_URL = ENV["AUTH_URL"] || 'http://localhost:3010'
8
+ # AUTH_URL = 'https://login.matique.de'
9
9
  STRATEGY = 'matique'
10
10
 
11
11
  option :client_options, {
12
- site: SITE,
13
- authorize_url: "#{SITE}/auth/#{STRATEGY}/authorize",
14
- token_url: "#{SITE}/auth/#{STRATEGY}/access_token"
12
+ site: AUTH_URL,
13
+ authorize_url: "#{AUTH_URL}/auth/#{STRATEGY}/authorize",
14
+ token_url: "#{AUTH_URL}/auth/#{STRATEGY}/access_token"
15
15
  }
16
16
 
17
17
  uid { raw_info['id'] }
@@ -15,6 +15,7 @@ describe OmniAuth::Strategies do
15
15
  end
16
16
 
17
17
  def strategy
18
+ @options ||= nil
18
19
  @strategy ||= begin
19
20
  args = [@client_id, @client_secret, @options].compact
20
21
  OmniAuth::Strategies::Matique.new(nil, *args).tap do |strategy|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-matique
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dittmar Krall
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-30 00:00:00.000000000 Z
11
+ date: 2017-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler