omniauth-matique 0.1.7 → 0.1.9

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: e48cb0b561ff78279781e9b5cef8619f4167cf4d631cfe3b8bf8c6f1c9a65343
4
- data.tar.gz: 2e843cc7a3f4ac5226e722dadec8bb13d816b6b35044315193dc41a9031f7ae4
3
+ metadata.gz: ee4300f0314b4477302a48d487530ce1dad27752103a39cff0c881d1e1ff66eb
4
+ data.tar.gz: 8d29362a20a9a3b6b17fca715f717a60e560c298ba2c911303dc7a40f18d6fb3
5
5
  SHA512:
6
- metadata.gz: 36f3b583714621b43fc2019c8c944b2ac166dd240635d0e1bb4b520b609ae4a4b50d56ba9b35d972e896b20ddb0264c71f0357e2127ebf5d8554dcfa1ca94ef5
7
- data.tar.gz: 20fef38023b607218daaa159e6f9bc39f71700639f6c3c635f9979bd0fbc21d555425e61cd72621fe21be4812d6d79862ab191eeb3ee5092beca0aa30e028ac6
6
+ metadata.gz: 7d968317c00c514c6835d711228152dd93e3e4727ce94a376c27811b0ea99ea46982a2d86f0eca1fdccd504eee8b8e5187747339c66c29fef0c8d8d48c81d780
7
+ data.tar.gz: 90e392e2191727806cc79af4bdee0de91a77e1f3be102d5d12662930718df383688963ef95a345793c87533ac8bcedd683ca61b9c3c1ab53cca8e041d1712cbc
@@ -0,0 +1,26 @@
1
+ # see also https://github.com/whitequark/parser/blob/master/.github/workflows/test.yml
2
+ name: Rake
3
+
4
+ on: [push]
5
+
6
+ jobs:
7
+ test:
8
+ strategy:
9
+ fail-fast: false
10
+ matrix:
11
+ os: [ubuntu-latest]
12
+ ruby: ["2.7", "3.0", "3.2", head]
13
+ test_command: ["bundle exec rake test"]
14
+ runs-on: ${{ matrix.os }}
15
+
16
+ steps:
17
+ - uses: actions/checkout@v3
18
+ - uses: ruby/setup-ruby@v1
19
+ with:
20
+ ruby-version: ${{ matrix.ruby }}
21
+ - name: Bundle install
22
+ run: |
23
+ bundle config path /home/runner/bundle
24
+ bundle install
25
+ bundle update
26
+ - run: ${{ matrix.test_command }}
data/.gitignore CHANGED
@@ -1,5 +1,6 @@
1
1
  .bundle/
2
2
  coverage/
3
+ .watchr
3
4
 
4
5
  *.gem
5
6
  *.log
data/.ruby-gemset CHANGED
@@ -1 +1 @@
1
- rails-6.0
1
+ rails-7.0
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.6.6
1
+ ruby-3.2.2
data/Gemfile CHANGED
@@ -1,10 +1,10 @@
1
- source 'https://rubygems.org'
1
+ source "https://rubygems.org"
2
2
  gemspec
3
3
 
4
- gem 'rails'
4
+ gem "rails"
5
5
 
6
6
  group :test do
7
- gem 'observr'
8
- gem 'rubocop', require: false
9
- gem 'simplecov', require: false
7
+ gem "observr"
8
+ gem "rubocop", require: false
9
+ gem "simplecov", require: false
10
10
  end
data/MIT-LICENSE CHANGED
@@ -1,4 +1,6 @@
1
- Copyright 2016-2020 Dittmar Krall www.matique.com
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016-2023 Dittmar Krall (www.matiq.com)
2
4
 
3
5
  Permission is hereby granted, free of charge, to any person obtaining
4
6
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,21 +1,20 @@
1
- Omniauth-Matique
2
- ================
1
+ # Omniauth-Matique
2
+
3
3
  [![Gem Version](https://badge.fury.io/rb/omniauth-matique.svg)](https://badge.fury.io/rb/omniauth-matique)
4
- [![Build Status](https://travis-ci.org/matique/omniauth-matique.png?branch=master)](https://travis-ci.org/matique/omniauth-matique)
5
4
 
6
5
  # OmniAuth Matique Strategy
7
6
 
8
- Strategy to authenticate with matique UG via OAuth2 in OmniAuth.
7
+ Strategy to authenticate with matiq UG (haftungsbeschränkt)
8
+ via OAuth2 in OmniAuth.
9
9
 
10
10
  ## Installation
11
11
 
12
- Add to your `Gemfile`:
13
-
12
+ As usual:
14
13
  ```ruby
15
- gem 'omniauth-matique'
14
+ # Gemfile
15
+ gem "omniauth-matique"
16
16
  ```
17
-
18
- Then `bundle install`.
17
+ and run "bundle install".
19
18
 
20
19
  ## Usage
21
20
 
@@ -56,4 +55,9 @@ See also:
56
55
  - http://codetheory.in/rails-devise-omniauth-sso/
57
56
  - https://github.com/intridea/omniauth.git
58
57
 
59
- Copyright (c) 2016..2019 Dittmar Krall, released under the MIT license.
58
+ ## Miscellaneous
59
+
60
+ Copyright (c) 2016-2023 Dittmar Krall (www.matiq.com),
61
+ released under the MIT license:
62
+
63
+ * https://opensource.org/licenses/MIT
data/Rakefile CHANGED
@@ -1,10 +1,10 @@
1
- require 'rake/testtask'
1
+ require "rake/testtask"
2
2
 
3
- desc 'Run the tests.'
3
+ desc "Run the tests."
4
4
  Rake::TestTask.new do |t|
5
- t.libs << 'lib'
6
- t.libs << 'test'
7
- t.pattern = 'test/**/*_test.rb'
5
+ t.libs << "lib"
6
+ t.libs << "test"
7
+ t.pattern = "test/**/*_test.rb"
8
8
  t.verbose = false
9
9
  end
10
10
 
@@ -1,28 +1,27 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'omniauth-oauth2'
3
+ require "omniauth-oauth2"
4
4
 
5
5
  module OmniAuth
6
6
  module Strategies
7
7
  class Matique < OmniAuth::Strategies::OAuth2
8
- # AUTH_URL = 'https://login.matique.de'
9
- AUTH_URL = ENV['AUTH_URL'] || 'http://localhost:3010'
10
- STRATEGY = 'matique'
8
+ AUTH_URL = ENV["AUTH_URL"] || "http://localhost:3010"
9
+ STRATEGY = "matique"
11
10
 
12
11
  option :client_options, {
13
- site: AUTH_URL,
12
+ site: AUTH_URL,
14
13
  authorize_url: "#{AUTH_URL}/auth/#{STRATEGY}/authorize",
15
- token_url: "#{AUTH_URL}/auth/#{STRATEGY}/access_token"
14
+ token_url: "#{AUTH_URL}/auth/#{STRATEGY}/access_token"
16
15
  }
17
16
 
18
- uid { raw_info['id'].to_s }
17
+ uid { raw_info["id"].to_s }
19
18
 
20
19
  info do
21
20
  {
22
- name: raw_info['name'],
23
- username: raw_info['username'],
24
- email: raw_info['email'],
25
- image: raw_info['avatar_url']
21
+ name: raw_info["name"],
22
+ username: raw_info["username"],
23
+ email: raw_info["email"],
24
+ image: raw_info["avatar_url"]
26
25
  }
27
26
  end
28
27
 
@@ -1,11 +1,11 @@
1
- # rubocop: disable all
2
-
3
1
  module OmniAuth
4
2
  module Matique
5
- VERSION = '0.1.7' # 2020-07-17
6
- # VERSION = '0.1.6' # 2020-04-27
7
- # VERSION = '0.1.5' # 2019-10-06
8
- # VERSION = '0.1.4' # 2019-03-02
9
- # VERSION = '0.1.3'
3
+ VERSION = "0.1.9" # 2023-04-25
4
+ # VERSION = "0.1.8" # 2021-06-23
5
+ # VERSION = "0.1.7" # 2020-07-17
6
+ # VERSION = "0.1.6" # 2020-04-27
7
+ # VERSION = "0.1.5" # 2019-10-06
8
+ # VERSION = "0.1.4" # 2019-03-02
9
+ # VERSION = "0.1.3"
10
10
  end
11
11
  end
@@ -1,29 +1,30 @@
1
- lib = File.expand_path('../lib', __FILE__)
1
+ lib = File.expand_path("../lib", __FILE__)
2
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
- require 'omniauth-matique/version'
3
+ require "omniauth-matique/version"
4
4
 
5
5
  Gem::Specification.new do |s|
6
- s.name = 'omniauth-matique'
7
- s.version = OmniAuth::Matique::VERSION
8
- s.summary = 'OmniAuth strategy for matique'
9
- s.description = <<-'END'
10
- Strategy to authenticate with matique UG via OAuth2 in OmniAuth.
6
+ s.name = "omniauth-matique"
7
+ s.version = OmniAuth::Matique::VERSION
8
+ s.summary = "OmniAuth strategy for matiq"
9
+ s.description = <<-END
10
+ Strategy to authenticate with matiq UG (haftungsbeschränkt)
11
+ via OAuth2 in OmniAuth.
11
12
  END
12
- s.authors = ['Dittmar Krall']
13
- s.email = ['dittmar.krall@matique.de']
14
- s.homepage = 'https://github.com/matique/omniauth-matique'
13
+ s.authors = ["Dittmar Krall"]
14
+ s.email = ["dittmar.krall@matiq.com"]
15
+ s.homepage = "https://github.com/matique/omniauth-matique"
15
16
 
16
- s.license = 'MIT'
17
- s.platform = Gem::Platform::RUBY
17
+ s.license = "MIT"
18
+ s.platform = Gem::Platform::RUBY
18
19
 
19
- s.files = `git ls-files -z`.split("\x0")
20
- s.test_files = s.files.grep(%r{^(test|spec|features)/})
21
- s.require_paths = ['lib']
20
+ s.metadata["source_code_uri"] = "https://github.com/matique/omniauth-matique"
22
21
 
23
- s.add_development_dependency 'bundler'
24
- s.add_development_dependency 'rake', '~> 13'
25
- s.add_dependency 'omniauth-oauth2', '~> 1'
22
+ s.files = `git ls-files -z`.split("\x0")
23
+ s.require_paths = ["lib"]
26
24
 
27
- s.add_development_dependency 'minitest', '~> 5'
28
- s.add_development_dependency 'mocha', '~> 1'
25
+ s.add_development_dependency "rake", "~> 13"
26
+ s.add_dependency "omniauth-oauth2", "~> 1"
27
+
28
+ s.add_development_dependency "minitest", "~> 5"
29
+ s.add_development_dependency "mocha", "~> 1"
29
30
  end
data/test/matique_test.rb CHANGED
@@ -1,51 +1,51 @@
1
- require 'test_helper'
2
- require 'omniauth-matique'
1
+ require "test_helper"
2
+ require "omniauth-matique"
3
3
 
4
4
  # based on omniauth-github, omniauth-clef and others
5
5
 
6
6
  describe OmniAuth::Strategies::Matique do
7
7
  let(:strategy) { OmniAuth::Strategies::Matique.new({}) }
8
- let(:over) { OmniAuth::Strategies::Matique.new('KEY', 'SECRET',
8
+ let(:over) {
9
+ OmniAuth::Strategies::Matique.new("KEY", "SECRET",
9
10
  client_options: {
10
- site: 'S',
11
- authorize_url: 'A',
12
- token_url: 'T'
13
- }
14
- )
11
+ site: "S",
12
+ authorize_url: "A",
13
+ token_url: "T"
14
+ })
15
15
  }
16
16
 
17
- it 'Client has correct default client_options' do
18
- # site = "https://login.matique.de"
17
+ it "Client has correct default client_options" do
18
+ # site = "https://login.matiq.com"
19
19
  site = "http://localhost:3010"
20
- assert_equal "#{site}", strategy.client.site
20
+ assert_equal site.to_s, strategy.client.site
21
21
  assert_equal "#{site}/auth/matique/authorize",
22
- strategy.client.options[:authorize_url]
22
+ strategy.client.options[:authorize_url]
23
23
  assert_equal "#{site}/auth/matique/access_token",
24
- strategy.client.options[:token_url]
24
+ strategy.client.options[:token_url]
25
25
  end
26
26
 
27
27
  it "client options should be overwritable" do
28
- assert_equal 'S', over.options.client_options.site
29
- assert_equal 'A', over.options.client_options.authorize_url
30
- assert_equal 'T', over.options.client_options.token_url
28
+ assert_equal "S", over.options.client_options.site
29
+ assert_equal "A", over.options.client_options.authorize_url
30
+ assert_equal "T", over.options.client_options.token_url
31
31
  end
32
32
 
33
- describe 'raw_info' do
33
+ describe "raw_info" do
34
34
  def setup
35
35
  super
36
36
  @raw_info ||= {
37
- 'email' => 'test@example.com',
38
- 'id' => '123'
37
+ "email" => "test@example.com",
38
+ "id" => "123"
39
39
  }
40
40
  strategy.stubs(:raw_info).returns(@raw_info)
41
41
  end
42
42
 
43
- it 'uid returns the id from raw_info' do
44
- assert_equal '123', strategy.uid
43
+ it "uid returns the id from raw_info" do
44
+ assert_equal "123", strategy.uid
45
45
  end
46
46
 
47
- it 'access email from the raw_info' do
48
- assert_equal 'test@example.com', strategy.info[:email]
47
+ it "access email from the raw_info" do
48
+ assert_equal "test@example.com", strategy.info[:email]
49
49
  refute_nil strategy.extra[:raw_info]
50
50
  end
51
51
  end
@@ -1,17 +1,16 @@
1
1
  # adapted from gem omniauth-facebook/omniauth-clef
2
2
 
3
- require 'test_helper'
3
+ require "test_helper"
4
4
 
5
5
  describe OmniAuth::Strategies do
6
-
7
6
  def setup
8
- @request = stub('Request')
7
+ @request = stub("Request")
9
8
  @request.stubs(:params).returns({})
10
9
  @request.stubs(:cookies).returns({})
11
10
  @request.stubs(:env).returns({})
12
11
 
13
- @client_id = '123'
14
- @client_secret = '53cr3tz'
12
+ @client_id = "123"
13
+ @client_secret = "53cr3tz"
15
14
  end
16
15
 
17
16
  def strategy
@@ -19,75 +18,75 @@ describe OmniAuth::Strategies do
19
18
  @strategy ||= begin
20
19
  args = [@client_id, @client_secret, @options].compact
21
20
  OmniAuth::Strategies::Matique.new(nil, *args).tap do |strategy|
22
- strategy.stubs(:request).returns(@request)
21
+ strategy.stubs(:request).returns(@request)
23
22
  end
24
23
  end
25
24
  end
26
25
 
27
26
  describe "ClientTests" do
28
- it 'should be initialized with symbolized client_options' do
29
- @options = { client_options: { 'authorize_url' => 'https://example.com' } }
30
- assert_equal 'https://example.com',
31
- strategy.client.options[:authorize_url]
27
+ it "should be initialized with symbolized client_options" do
28
+ @options = {client_options: {"authorize_url" => "https://example.com"}}
29
+ assert_equal "https://example.com",
30
+ strategy.client.options[:authorize_url]
32
31
  end
33
32
  end
34
33
 
35
34
  describe "AuthorizeParamsTests" do
36
- it 'should include any authorize params passed in the :authorize_params option' do
37
- @options = { :authorize_params => { :foo => 'bar', :baz => 'zip' } }
38
- assert_equal 'bar', strategy.authorize_params['foo']
39
- assert_equal 'zip', strategy.authorize_params['baz']
35
+ it "should include any authorize params passed in the :authorize_params option" do
36
+ @options = {authorize_params: {foo: "bar", baz: "zip"}}
37
+ assert_equal "bar", strategy.authorize_params["foo"]
38
+ assert_equal "zip", strategy.authorize_params["baz"]
40
39
  end
41
40
 
42
- it 'should include top-level options that are marked as :authorize_options' do
43
- @options = { :authorize_options => [:scope, :foo], :scope => 'bar', :foo => 'baz' }
44
- assert_equal 'bar', strategy.authorize_params['scope']
45
- assert_equal 'baz', strategy.authorize_params['foo']
41
+ it "should include top-level options that are marked as :authorize_options" do
42
+ @options = {authorize_options: [:scope, :foo], scope: "bar", foo: "baz"}
43
+ assert_equal "bar", strategy.authorize_params["scope"]
44
+ assert_equal "baz", strategy.authorize_params["foo"]
46
45
  end
47
-
48
- it 'should exclude top-level options that are not passed' do
49
- @options = { :authorize_options => [:bar] }
46
+
47
+ it "should exclude top-level options that are not passed" do
48
+ @options = {authorize_options: [:bar]}
50
49
  refute_has_key :bar, strategy.authorize_params
51
- refute_has_key 'bar', strategy.authorize_params
50
+ refute_has_key "bar", strategy.authorize_params
52
51
  end
53
52
  end
54
53
 
55
54
  describe "CSRFAuthorizeParamsTests" do
56
- it 'should store random state in the session when none is present in authorize or request params' do
57
- assert_includes strategy.authorize_params.keys, 'state'
58
- refute_empty strategy.authorize_params['state']
59
- refute_empty strategy.session['omniauth.state']
60
- assert_equal strategy.authorize_params['state'], strategy.session['omniauth.state']
55
+ it "should store random state in the session when none is present in authorize or request params" do
56
+ assert_includes strategy.authorize_params.keys, "state"
57
+ refute_empty strategy.authorize_params["state"]
58
+ refute_empty strategy.session["omniauth.state"]
59
+ assert_equal strategy.authorize_params["state"], strategy.session["omniauth.state"]
61
60
  end
62
61
 
63
- it 'should not store state in the session when present in authorize params vs. a random one' do
64
- @options = { :authorize_params => { :state => 'bar' } }
65
- refute_empty strategy.authorize_params['state']
66
- refute_equal 'bar', strategy.authorize_params[:state]
67
- refute_empty strategy.session['omniauth.state']
68
- refute_equal 'bar', strategy.session['omniauth.state']
62
+ it "should not store state in the session when present in authorize params vs. a random one" do
63
+ @options = {authorize_params: {state: "bar"}}
64
+ refute_empty strategy.authorize_params["state"]
65
+ refute_equal "bar", strategy.authorize_params[:state]
66
+ refute_empty strategy.session["omniauth.state"]
67
+ refute_equal "bar", strategy.session["omniauth.state"]
69
68
  end
70
69
 
71
- it 'should not store state in the session when present in request params vs. a random one' do
72
- @request.stubs(:params).returns({ 'state' => 'foo' })
73
- refute_empty strategy.authorize_params['state']
74
- refute_equal 'foo', strategy.authorize_params[:state]
75
- refute_empty strategy.session['omniauth.state']
76
- refute_equal 'foo', strategy.session['omniauth.state']
70
+ it "should not store state in the session when present in request params vs. a random one" do
71
+ @request.stubs(:params).returns({"state" => "foo"})
72
+ refute_empty strategy.authorize_params["state"]
73
+ refute_equal "foo", strategy.authorize_params[:state]
74
+ refute_empty strategy.session["omniauth.state"]
75
+ refute_equal "foo", strategy.session["omniauth.state"]
77
76
  end
78
77
  end
79
78
 
80
79
  describe "TokenParamsTests" do
81
- it 'should include any authorize params passed in the :token_params option' do
82
- @options = { :token_params => { :foo => 'bar', :baz => 'zip' } }
83
- assert_equal 'bar', strategy.token_params['foo']
84
- assert_equal 'zip', strategy.token_params['baz']
80
+ it "should include any authorize params passed in the :token_params option" do
81
+ @options = {token_params: {foo: "bar", baz: "zip"}}
82
+ assert_equal "bar", strategy.token_params["foo"]
83
+ assert_equal "zip", strategy.token_params["baz"]
85
84
  end
86
85
 
87
- it 'should include top-level options that are marked as :token_options' do
88
- @options = { :token_options => [:scope, :foo], :scope => 'bar', :foo => 'baz' }
89
- assert_equal 'bar', strategy.token_params['scope']
90
- assert_equal 'baz', strategy.token_params['foo']
86
+ it "should include top-level options that are marked as :token_options" do
87
+ @options = {token_options: [:scope, :foo], scope: "bar", foo: "baz"}
88
+ assert_equal "bar", strategy.token_params["scope"]
89
+ assert_equal "baz", strategy.token_params["foo"]
91
90
  end
92
91
  end
93
92
  end
@@ -1,12 +1,12 @@
1
1
  # inspired by omniauth-github, omniauth-clef and others
2
2
 
3
- require 'test_helper'
4
- require 'omniauth-matique'
3
+ require "test_helper"
4
+ require "omniauth-matique"
5
5
 
6
- describe OmniAuth::Strategies::Matique, 'raw_info test' do
7
- let(:strategy) { OmniAuth::Strategies::Matique.new({}) }
8
- let(:access_token) { stub('OAuth2::AccessToken') }
9
- let(:get_param) { '/auth/matique/user.json?oauth_token=123' }
6
+ describe OmniAuth::Strategies::Matique, "raw_info test" do
7
+ let(:strategy) { OmniAuth::Strategies::Matique.new({}) }
8
+ let(:access_token) { stub("OAuth2::AccessToken") }
9
+ let(:get_param) { "/auth/matique/user.json?oauth_token=123" }
10
10
 
11
11
  def setup
12
12
  super
@@ -14,28 +14,27 @@ describe OmniAuth::Strategies::Matique, 'raw_info test' do
14
14
  access_token.stubs(:token).returns(123)
15
15
  end
16
16
 
17
- it 'performs a GET to https://...' do
18
- access_token.expects(:get).with(get_param).
19
- returns(stub_everything('OAuth2::Response'))
17
+ it "performs a GET to https://..." do
18
+ access_token.expects(:get).with(get_param)
19
+ .returns(stub_everything("OAuth2::Response"))
20
20
  strategy.raw_info
21
21
  end
22
22
 
23
- it 'returns a Hash' do
24
- raw_response = stub('Faraday::Response')
23
+ it "returns a Hash" do
24
+ raw_response = stub("Faraday::Response")
25
25
  raw_response.stubs(:body).returns('{ "ohai": "thar" }')
26
26
  raw_response.stubs(:status).returns(200)
27
- raw_response.stubs(:headers).returns({'Content-Type' => 'application/json' })
27
+ raw_response.stubs(:headers).returns({"Content-Type" => "application/json"})
28
28
  oauth2_response = OAuth2::Response.new(raw_response)
29
29
  access_token.stubs(:get).with(get_param).returns(oauth2_response)
30
30
  assert_kind_of Hash, strategy.raw_info
31
- assert_equal 'thar', strategy.raw_info['ohai']
31
+ assert_equal "thar", strategy.raw_info["ohai"]
32
32
  end
33
33
 
34
- it 'returns an empty hash when the response is false' do
35
- oauth2_response = stub('OAuth2::Response', :parsed => false)
34
+ it "returns an empty hash when the response is false" do
35
+ oauth2_response = stub("OAuth2::Response", parsed: false)
36
36
  access_token.stubs(:get).with(get_param).returns(oauth2_response)
37
37
  access_token.stubs(:get).with(get_param).returns(oauth2_response)
38
38
  assert_kind_of Hash, strategy.raw_info
39
39
  end
40
-
41
40
  end
data/test/test_helper.rb CHANGED
@@ -1,14 +1,14 @@
1
- if ENV['COVERAGE']
2
- require 'simplecov'
1
+ if ENV["COVERAGE"]
2
+ require "simplecov"
3
3
  SimpleCov.start do
4
- add_filter '/test/'
4
+ add_filter "/test/"
5
5
  end
6
6
  end
7
7
 
8
- require 'bundler/setup'
9
- require 'minitest/autorun'
10
- require 'mocha/minitest'
11
- require 'omniauth/strategies/matique'
8
+ require "bundler/setup"
9
+ require "minitest/autorun"
10
+ require "mocha/minitest"
11
+ require "omniauth/strategies/matique"
12
12
 
13
13
  OmniAuth.config.test_mode = true
14
14
 
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-matique
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dittmar Krall
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-17 00:00:00.000000000 Z
11
+ date: 2023-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rake
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -80,19 +66,19 @@ dependencies:
80
66
  - - "~>"
81
67
  - !ruby/object:Gem::Version
82
68
  version: '1'
83
- description: " Strategy to authenticate with matique UG via OAuth2 in OmniAuth.\n"
69
+ description: |2
70
+ Strategy to authenticate with matiq UG (haftungsbeschränkt)
71
+ via OAuth2 in OmniAuth.
84
72
  email:
85
- - dittmar.krall@matique.de
73
+ - dittmar.krall@matiq.com
86
74
  executables: []
87
75
  extensions: []
88
76
  extra_rdoc_files: []
89
77
  files:
78
+ - ".github/workflows/rake.yml"
90
79
  - ".gitignore"
91
- - ".rubocop.yml"
92
80
  - ".ruby-gemset"
93
81
  - ".ruby-version"
94
- - ".travis.yml"
95
- - ".watchr"
96
82
  - Gemfile
97
83
  - MIT-LICENSE
98
84
  - README.md
@@ -108,7 +94,8 @@ files:
108
94
  homepage: https://github.com/matique/omniauth-matique
109
95
  licenses:
110
96
  - MIT
111
- metadata: {}
97
+ metadata:
98
+ source_code_uri: https://github.com/matique/omniauth-matique
112
99
  post_install_message:
113
100
  rdoc_options: []
114
101
  require_paths:
@@ -124,12 +111,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
111
  - !ruby/object:Gem::Version
125
112
  version: '0'
126
113
  requirements: []
127
- rubygems_version: 3.1.4
114
+ rubygems_version: 3.4.10
128
115
  signing_key:
129
116
  specification_version: 4
130
- summary: OmniAuth strategy for matique
131
- test_files:
132
- - test/matique_test.rb
133
- - test/oauth2strategy_test.rb
134
- - test/raw_info_test.rb
135
- - test/test_helper.rb
117
+ summary: OmniAuth strategy for matiq
118
+ test_files: []
data/.rubocop.yml DELETED
@@ -1,11 +0,0 @@
1
- inherit_from:
2
- - ~/configs/.rubocop.yml
3
-
4
- AllCops:
5
- Include:
6
- - 'lib/**/*.rb'
7
- Exclude:
8
- - 'test/**/*'
9
-
10
- Layout/HashAlignment:
11
- Enabled: false
data/.travis.yml DELETED
@@ -1,21 +0,0 @@
1
- language: ruby
2
- sudo: false
3
-
4
- bundler_args: --without production
5
- #before_install: gem update bundler --no-document
6
- script: 'bundle exec rake test'
7
-
8
- rvm:
9
- - 2.6.6
10
- # - 2.6.5
11
- # - 2.6.4
12
- # - 2.6.3
13
- # - 2.6.1
14
- # - 2.5.1
15
- # - 2.4.1
16
- # - 2.3.0
17
- # - 2.2.3
18
- # - 2.0.0
19
-
20
- notifications:
21
- email: false
data/.watchr DELETED
@@ -1,48 +0,0 @@
1
- HH = '#' * 22 unless defined?(HH)
2
- H = '#' * 5 unless defined?(H)
3
-
4
- def usage
5
- puts <<-EOS
6
- Ctrl-\\ or ctrl-4 Running all tests
7
- Ctrl-C Exit
8
- EOS
9
- end
10
-
11
- def run(cmd)
12
- puts "#{HH} #{Time.now} #{HH}"
13
- puts "#{H} #{cmd}"
14
- system "/usr/bin/time --format '#{HH} Elapsed time %E' #{cmd}"
15
- end
16
-
17
- def run_it(type, file)
18
- case type
19
- when 'test'; run %(ruby -I test #{file})
20
- # when 'spec'; run %(rspec -X #{file})
21
- else; puts "#{H} unknown type: #{type}, file: #{file}"
22
- end
23
- end
24
-
25
- def run_all_tests
26
- puts "\n#{HH} Running all tests #{HH}\n"
27
- %w[test spec].each { |dir| run "rake #{dir}" if File.exist?(dir) }
28
- end
29
-
30
- def run_matching_files(base)
31
- base = base.split('_').first
32
- %w[test spec].each { |type|
33
- files = Dir["#{type}/**/*.rb"].select { |file| file =~ /#{base}_.*\.rb/ }
34
- run_it type, files.join(' ') unless files.empty?
35
- }
36
- end
37
-
38
- %w[test spec].each { |type|
39
- watch("#{type}/#{type}_helper\.rb") { run_all_tests }
40
- watch('lib/.*\.rb') { run_all_tests }
41
- watch("#{type}/.*/*_#{type}\.rb") { |match| run_it type, match[0] }
42
- }
43
-
44
- # Ctrl-\ or ctrl-4
45
- Signal.trap('QUIT') { run_all_tests }
46
- # Ctrl-C
47
- Signal.trap('INT') { abort("Interrupted\n") }
48
- usage