omniauth-polaris 1.0.0 → 1.0.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
2
  SHA1:
3
- metadata.gz: 782f2fe5ef9e563de8acb9bc4bc40514d868fa06
4
- data.tar.gz: 72d665983d951640d341aa4328a3213829237d98
3
+ metadata.gz: 854ec536ec951da3a404a8fb0cff3afa47f4b2e1
4
+ data.tar.gz: f275bc49cc3cf0798fb624e9a68eeda2766bb43a
5
5
  SHA512:
6
- metadata.gz: fcf55973229e7642569371ca24ddc023263998d274a41bdd905823d130d5ae10d528f8718651e5358e82ec4ba6366b777805d68bd643d23f8ba701a03042bf87
7
- data.tar.gz: bb794c07c75c09ad7461c1959dfffbb14776b54bbe059ddf2a751edb6cb9e52a9fa45bbc97ca10e32906721ea6a63df5b58cf58e5a0451428dff1ae1418b1349
6
+ metadata.gz: 193cc616630ee2455da017cdb4dfedcbb560fa80aa5c4e5b4e6f2bf421c3575b4040a9f4082f893a66377ca68f145b6590e3e04b7f4511f2142d9b77b7c465df
7
+ data.tar.gz: d83f04c7c4aff9a7af297661839eb869a4b924da6553b72ce02ce28d0095b4611d976cd89aa865f53d992134dbec970ab0b9f01fcc8eb6c050608b3c32b944b6
data/.gitignore CHANGED
@@ -42,6 +42,7 @@ role_map_test.yml
42
42
 
43
43
  # Specific Files to ignore #
44
44
  ############################
45
+ Gemfile.lock
45
46
  Thumbs.db
46
47
  Icon?
47
48
  .DS_Store?
@@ -0,0 +1 @@
1
+ require: rubocop-rspec
data/Gemfile CHANGED
@@ -1,38 +1,13 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'rails', '3.2.9'
4
3
 
5
- # Bundle edge Rails instead:
6
- # gem 'rails', :git => 'git://github.com/rails/rails.git'
4
+ gem "rubocop", ">= 0.47", require: false
7
5
 
8
- gem 'sqlite3'
6
+ #TODO create a coveralls repo token for this
7
+ gemspec
9
8
 
10
-
11
- # Gems used only for assets and not required
12
- # in production environments by default.
13
- group :assets do
14
- gem 'sass-rails', '~> 3.2.3'
15
- gem 'coffee-rails', '~> 3.2.1'
16
-
17
- # See https://github.com/sstephenson/execjs#readme for more supported runtimes
18
- # gem 'therubyracer', :platforms => :ruby
19
-
20
- gem 'uglifier', '>= 1.0.3'
9
+ group :test do
10
+ gem 'simplecov', require: false
11
+ gem 'rubocop-rspec', require: false
12
+ gem 'rack-test', '~> 1.1.0'
21
13
  end
22
-
23
- gem 'jquery-rails'
24
-
25
- # To use ActiveModel has_secure_password
26
- # gem 'bcrypt-ruby', '~> 3.0.0'
27
-
28
- # To use Jbuilder templates for JSON
29
- # gem 'jbuilder'
30
-
31
- # Use unicorn as the app server
32
- # gem 'unicorn'
33
-
34
- # Deploy with Capistrano
35
- # gem 'capistrano'
36
-
37
- # To use debugger
38
- # gem 'debugger'
data/Rakefile CHANGED
@@ -2,6 +2,7 @@
2
2
  # Add your own tasks in files placed in lib/tasks ending in .rake,
3
3
  # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4
4
 
5
- require File.expand_path('../config/application', __FILE__)
6
-
7
- OmniauthPolaris::Application.load_tasks
5
+ unless Dir[File.expand_path('../config/application', __FILE__)].empty?
6
+ require File.expand_path('../config/application', __FILE__)
7
+ OmniauthPolaris::Application.load_tasks
8
+ end
@@ -1,3 +1,3 @@
1
- require "omniauth-polaris/version"
2
- require "omniauth-polaris/adaptor"
1
+ require 'omniauth-polaris/version'
2
+ require 'omniauth-polaris/adaptor'
3
3
  require 'omniauth/strategies/polaris'
@@ -82,19 +82,15 @@ module OmniAuth
82
82
  end
83
83
 
84
84
  private
85
- def ensure_method(method)
86
- method ||= "get"
85
+
86
+ def ensure_method(method="get")
87
87
  normalized_method = method.to_s.upcase.to_sym
88
- return METHOD[normalized_method] if METHOD.has_key?(normalized_method)
88
+ return METHOD[normalized_method] if METHOD.key?(normalized_method)
89
89
 
90
90
  available_methods = METHOD.keys.collect {|m| m.inspect}.join(", ")
91
91
  format = "%s is not one of the available connect methods: %s"
92
92
  raise ConfigurationError, format % [method.inspect, available_methods]
93
93
  end
94
-
95
-
96
-
97
-
98
94
  end
99
95
  end
100
- end
96
+ end
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Polaris
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.5'.freeze
4
4
  end
5
5
  end
@@ -1,5 +1,4 @@
1
- require 'omniauth'
2
-
1
+ require 'omniauth' unless defined? OmniAuth
3
2
 
4
3
  module OmniAuth
5
4
  module Strategies
@@ -7,7 +6,7 @@ module OmniAuth
7
6
  class MissingCredentialsError < StandardError; end
8
7
  include OmniAuth::Strategy
9
8
  @@config = {
10
- 'barcode' => 'Barcode',
9
+ 'barcode' => 'barcode',
11
10
  'valid_patron' => 'ValidPatron',
12
11
  'patron_id' => 'PatronID',
13
12
  'assigned_branch_id' => 'AssignedBranchID',
@@ -55,54 +54,52 @@ module OmniAuth
55
54
  { :raw_info => @polaris_user_info }
56
55
  }
57
56
 
58
- def map_user(mapper, object)
59
-
60
- user = {}
61
- mapper.each do |key, value|
62
- case value
63
- when String
64
- #user[key] = object[value.downcase.to_sym].first if object[value.downcase.to_sym]
65
- user[key.to_sym] = object[value] if object[value]
66
- when Array
67
- #value.each {|v| (user[key] = object[v.downcase.to_sym].first; break;) if object[v.downcase.to_sym]}
68
- value.each {|v| (user[key] = object[v.downcase.to_sym]; break;) if object[v.downcase.to_sym]}
69
- when Hash
70
- value.map do |key1, value1|
71
- pattern = key1.dup
72
- value1.each_with_index do |v,i|
73
- #part = ''; v.collect(&:downcase).collect(&:to_sym).each {|v1| (part = object[v1].first; break;) if object[v1]}
74
- part = ''; v.collect(&:downcase).collect(&:to_sym).each {|v1| (part = object[v1]; break;) if object[v1]}
75
- pattern.gsub!("%#{i}",part||'')
76
- end
77
- user[key] = pattern
78
- end
79
- end
80
- end
81
- user
82
- end
57
+ # def map_user(mapper, object)
58
+ # Ben 12/24/2018 Doesnt appear this method is in use
59
+ # user = {}
60
+ # mapper.each do |key, value|
61
+ # case value
62
+ # when String
63
+ # #user[key] = object[value.downcase.to_sym].first if object[value.downcase.to_sym]
64
+ # user[key.to_sym] = object[value] if object[value]
65
+ # when Array
66
+ # #value.each {|v| (user[key] = object[v.downcase.to_sym].first; break;) if object[v.downcase.to_sym]}
67
+ # value.each {|v| (user[key] = object[v.downcase.to_sym]; break;) if object[v.downcase.to_sym]}
68
+ # when Hash
69
+ # value.map do |key1, value1|
70
+ # pattern = key1.dup
71
+ # value1.each_with_index do |v,i|
72
+ # #part = ''; v.collect(&:downcase).collect(&:to_sym).each {|v1| (part = object[v1].first; break;) if object[v1]}
73
+ # part = ''; v.collect(&:downcase).collect(&:to_sym).each {|v1| (part = object[v1]; break;) if object[v1]}
74
+ # pattern.gsub!("%#{i}", part || '')
75
+ # end
76
+ # user[key] = pattern
77
+ # end
78
+ # end
79
+ # end
80
+ # user
81
+ # end
83
82
 
84
83
 
85
84
  def self.map_user(mapper, object)
86
-
87
85
  user = {}
88
86
  mapper.each do |key, value|
89
- case value
90
- when String
91
- #user[key] = object[value.downcase.to_sym].first if object[value.downcase.to_sym]
92
- user[key.to_sym] = object[value] if object[value]
93
- when Array
94
- #value.each {|v| (user[key] = object[v.downcase.to_sym].first; break;) if object[v.downcase.to_sym]}
95
- value.each {|v| (user[key] = object[v.downcase.to_sym]; break;) if object[v.downcase.to_sym]}
96
- when Hash
97
- value.map do |key1, value1|
98
- pattern = key1.dup
99
- value1.each_with_index do |v,i|
100
- #part = ''; v.collect(&:downcase).collect(&:to_sym).each {|v1| (part = object[v1].first; break;) if object[v1]}
101
- part = ''; v.collect(&:downcase).collect(&:to_sym).each {|v1| (part = object[v1]; break;) if object[v1]}
102
- pattern.gsub!("%#{i}",part||'')
103
- end
104
- user[key] = pattern
87
+ case value.class.to_s
88
+ when String
89
+ user[key.to_sym] = object[value.to_sym] if object[value.to_sym]
90
+ when Array
91
+ #value.each {|v| (user[key] = object[v.downcase.to_sym].first; break;) if object[v.downcase.to_sym]}
92
+ value.each {|v| (user[key] = object[v.downcase.to_sym]; break;) if object[v.downcase.to_sym]}
93
+ when Hash
94
+ value.map do |key1, value1|
95
+ pattern = key1.dup
96
+ value1.each_with_index do |v,i|
97
+ #part = ''; v.collect(&:downcase).collect(&:to_sym).each {|v1| (part = object[v1].first; break;) if object[v1]}
98
+ part = ''; v.collect(&:downcase).collect(&:to_sym).each {|v1| (part = object[v1]; break;) if object[v1]}
99
+ pattern.gsub!("%#{i}", part || '')
105
100
  end
101
+ user[key] = pattern
102
+ end
106
103
  end
107
104
  end
108
105
  user
@@ -111,4 +108,4 @@ module OmniAuth
111
108
  end
112
109
  end
113
110
 
114
- OmniAuth.config.add_camelization 'polaris', 'Polaris'
111
+ OmniAuth.config.add_camelization 'polaris', 'Polaris'
@@ -1,25 +1,29 @@
1
1
  # -*- encoding: utf-8 -*-
2
- require File.expand_path('../lib/omniauth-polaris/version', __FILE__)
3
-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'omniauth-polaris/version'
4
5
  Gem::Specification.new do |gem|
5
- gem.authors = ["Steven Anderson"]
6
- gem.email = ["sanderson@bpl.org"]
6
+ gem.name = "omniauth-polaris"
7
+ gem.version = OmniAuth::Polaris::VERSION
8
+ gem.authors = ["Steven Anderson", "Ben Barber"]
9
+ gem.email = ["sanderson@bpl.org", "bbarber@bpl.org"]
7
10
  gem.description = %q{A Polaris API strategy for OmniAuth.}
8
11
  gem.summary = %q{A Polaris API strategy for OmniAuth.}
9
12
  gem.homepage = "https://github.com/boston-library/omniauth-polaris"
10
13
 
11
- gem.add_runtime_dependency 'omniauth', '~> 1.0'
12
- gem.add_runtime_dependency 'rest-client', '~> 1.6.7'
13
- gem.add_development_dependency 'rspec', '~> 2.7'
14
- gem.add_development_dependency 'simplecov'
15
- gem.add_development_dependency 'rack-test'
16
- gem.add_development_dependency 'libnotify'
17
- gem.add_development_dependency 'ruby-debug19'
18
-
19
- gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
- gem.files = `git ls-files`.split("\n")
21
- gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
22
- gem.name = "omniauth-polaris"
23
- gem.require_paths = ["lib"]
24
- gem.version = OmniAuth::Polaris::VERSION
14
+ gem.required_ruby_version = '~> 2.4'
15
+
16
+
17
+ gem.add_dependency 'rest-client', '~> 2.0.2'
18
+
19
+ gem.add_development_dependency 'omniauth', '~> 1.8.1'
20
+ gem.add_development_dependency 'bundler', '>= 1.3.0'
21
+ gem.add_development_dependency 'awesome_print'
22
+ gem.add_development_dependency 'rspec', '~> 3.8'
23
+ gem.add_development_dependency 'libnotify', '~> 0.9.3'
24
+
25
+ gem.files = `git ls-files -z`.split("\x0")
26
+ gem.executables = gem.files.grep(%r{^bin/}) { |f| File.basename(f) }
27
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
28
+ gem.require_paths = ['lib']
25
29
  end
@@ -4,12 +4,12 @@ describe "OmniAuth::Polaris::Adaptor" do
4
4
  describe 'initialize' do
5
5
  it 'should throw exception when must have field is not set' do
6
6
  #[:host, :port, :method, :bind_dn]
7
- lambda { OmniAuth::Polaris::Adaptor.new({http_uri: "http://blah.org/PAPIService/REST/public/v1/1000/100/1/patron/", method: 'GET'})}.should raise_error(ArgumentError)
7
+ expect{ OmniAuth::Polaris::Adaptor.new({http_uri: "http://blah.org/PAPIService/REST/public/v1/1000/100/1/patron/", method: 'GET'})}.to raise_error(ArgumentError)
8
8
  end
9
9
 
10
10
  it 'should throw exception when method is not supported' do
11
- lambda { OmniAuth::Polaris::Adaptor.new({http_uri: "http://blah.org/PAPIService/REST/public/v1/1000/100/1/patron/", method: 'POST', access_key: 'F9998888-A000-1111-C22C-CC3333BB4444', access_id: 'API'})}.should raise_error(OmniAuth::Polaris::Adaptor::ConfigurationError)
11
+ expect { OmniAuth::Polaris::Adaptor.new({http_uri: "http://blah.org/PAPIService/REST/public/v1/1000/100/1/patron/", method: 'POST', access_key: 'F9998888-A000-1111-C22C-CC3333BB4444', access_id: 'API'})}.to raise_error(OmniAuth::Polaris::Adaptor::ConfigurationError)
12
12
  end
13
13
  end
14
14
 
15
- end
15
+ end
@@ -16,68 +16,68 @@ describe "OmniAuth::Strategies::Polaris" do
16
16
  end
17
17
 
18
18
  it 'should add a camelization for itself' do
19
- OmniAuth::Utils.camelize('polaris').should == 'Polaris'
19
+ expect( OmniAuth::Utils.camelize('polaris') ).to eq('Polaris')
20
20
  end
21
21
 
22
22
  describe '/auth/polaris' do
23
23
  before(:each){ get '/auth/polaris' }
24
24
 
25
25
  it 'should display a form' do
26
- last_response.status.should == 200
27
- last_response.body.should be_include("<form")
26
+ expect(last_response.status).to eql(200)
27
+ expect(last_response.body).to include("<form")
28
28
  end
29
29
 
30
30
  it 'should have the callback as the action for the form' do
31
- last_response.body.should be_include("action='/auth/polaris/callback'")
31
+ expect(last_response.body).to include("action='/auth/polaris/callback'")
32
32
  end
33
33
 
34
34
  it 'should have a text field for each of the fields' do
35
- last_response.body.scan('<input').size.should == 2
35
+ expect(last_response.body.scan('<input').size).to eq(2)
36
36
  end
37
37
  it 'should have a label of the form title' do
38
- last_response.body.scan('MyPolaris Form').size.should > 1
38
+ expect(last_response.body.scan('MyPolaris Form').size).to be > 1
39
39
  end
40
40
 
41
41
  end
42
42
 
43
43
  describe 'post /auth/polaris/callback' do
44
44
  before(:each) do
45
- @adaptor = mock(OmniAuth::Polaris::Adaptor, {:barcode => '29999999999999'})
46
- OmniAuth::Polaris::Adaptor.stub(:new).and_return(@adaptor)
45
+ @adaptor = double(OmniAuth::Polaris::Adaptor, {:barcode => '29999999999999'})
46
+ allow(OmniAuth::Polaris::Adaptor).to receive(:new).and_return(@adaptor)
47
47
  end
48
48
  context 'failure' do
49
49
  before(:each) do
50
- @adaptor.stub(:bind_as).and_return(false)
50
+ allow(@adaptor).to receive(:bind_as).and_return(false)
51
51
  end
52
52
  it 'should raise MissingCredentialsError' do
53
- lambda{post('/auth/polaris/callback', {})}.should raise_error OmniAuth::Strategies::Polaris::MissingCredentialsError
53
+ expect{ post('/auth/polaris/callback', {}) }.to raise_error OmniAuth::Strategies::Polaris::MissingCredentialsError
54
54
  end
55
55
  it 'should redirect to error page' do
56
56
  post('/auth/polaris/callback', {:barcode => 'ping', :pin => 'password'})
57
- last_response.should be_redirect
58
- last_response.headers['Location'].should =~ %r{invalid_credentials}
57
+ expect(last_response).to be_redirect
58
+ expect(last_response.headers['Location']).to match(%r{invalid_credentials})
59
59
  end
60
60
  end
61
61
 
62
62
  context 'success' do
63
63
  let(:auth_hash){ last_request.env['omniauth.auth'] }
64
64
  before(:each) do
65
- @adaptor.stub(:bind_as).and_return({:PAPIErrorCode => "0", :barcode => '29999999999999', :ValidPatron => 'true', :PatronID => '111111', :PatronCodeID => '27',
65
+ allow(@adaptor).to receive(:bind_as).and_return({:PAPIErrorCode => "0", :barcode => '29999999999999', :ValidPatron => 'true', :PatronID => '111111', :PatronCodeID => '27',
66
66
  :AssignedBranchID => '3', :PatronBarcode => '29999999999999', :AssignedBranchName => 'BPL - Central', :ExpirationDate => '2015-09-20T00:00:00', :OverridePasswordUsed =>'false'})
67
67
  #
68
68
  post('/auth/polaris/callback', {:barcode => '29999021413588', :pin => '0407'})
69
69
  end
70
70
 
71
- it 'should raise MissingCredentialsError' do
72
- should_not raise_error OmniAuth::Strategies::Polaris::MissingCredentialsError
73
- end
71
+ # it 'should raise MissingCredentialsError' do
72
+ # should_not raise_error OmniAuth::Strategies::Polaris::MissingCredentialsError
73
+ # end
74
74
  it 'should map user info' do
75
- auth_hash.info.barcode.should == '29999999999999'
76
- auth_hash.info.valid_patron.should == 'true'
77
- auth_hash.info.patron_id.should == '111111'
78
- auth_hash.info.assigned_branch_id.should == '3'
79
- auth_hash.info.assigned_branch_name.should == 'BPL - Central'
75
+ expect(auth_hash.info.barcode).to eq('29999999999999')
76
+ expect(auth_hash.info.valid_patron).to eq('true')
77
+ expect(auth_hash.info.patron_id).to eq('111111')
78
+ expect(auth_hash.info.assigned_branch_id).to eq('3')
79
+ expect(auth_hash.info.assigned_branch_name).to eq('BPL - Central')
80
80
  end
81
81
  end
82
82
  end
83
- end
83
+ end
@@ -6,8 +6,9 @@ require 'rspec'
6
6
  require 'rack/test'
7
7
  require 'omniauth'
8
8
  require 'omniauth-polaris'
9
+ require 'awesome_print'
9
10
 
10
11
  RSpec.configure do |config|
11
12
  config.include Rack::Test::Methods
12
13
  config.extend OmniAuth::Test::StrategyMacros, :type => :strategy
13
- end
14
+ end
metadata CHANGED
@@ -1,121 +1,110 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-polaris
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Anderson
8
+ - Ben Barber
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2015-06-09 00:00:00.000000000 Z
12
+ date: 2019-01-03 00:00:00.000000000 Z
12
13
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: omniauth
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ~>
18
- - !ruby/object:Gem::Version
19
- version: '1.0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ~>
25
- - !ruby/object:Gem::Version
26
- version: '1.0'
27
14
  - !ruby/object:Gem::Dependency
28
15
  name: rest-client
29
16
  requirement: !ruby/object:Gem::Requirement
30
17
  requirements:
31
- - - ~>
18
+ - - "~>"
32
19
  - !ruby/object:Gem::Version
33
- version: 1.6.7
20
+ version: 2.0.2
34
21
  type: :runtime
35
22
  prerelease: false
36
23
  version_requirements: !ruby/object:Gem::Requirement
37
24
  requirements:
38
- - - ~>
25
+ - - "~>"
39
26
  - !ruby/object:Gem::Version
40
- version: 1.6.7
27
+ version: 2.0.2
41
28
  - !ruby/object:Gem::Dependency
42
- name: rspec
29
+ name: omniauth
43
30
  requirement: !ruby/object:Gem::Requirement
44
31
  requirements:
45
- - - ~>
32
+ - - "~>"
46
33
  - !ruby/object:Gem::Version
47
- version: '2.7'
34
+ version: 1.8.1
48
35
  type: :development
49
36
  prerelease: false
50
37
  version_requirements: !ruby/object:Gem::Requirement
51
38
  requirements:
52
- - - ~>
39
+ - - "~>"
53
40
  - !ruby/object:Gem::Version
54
- version: '2.7'
41
+ version: 1.8.1
55
42
  - !ruby/object:Gem::Dependency
56
- name: simplecov
43
+ name: bundler
57
44
  requirement: !ruby/object:Gem::Requirement
58
45
  requirements:
59
- - - '>='
46
+ - - ">="
60
47
  - !ruby/object:Gem::Version
61
- version: '0'
48
+ version: 1.3.0
62
49
  type: :development
63
50
  prerelease: false
64
51
  version_requirements: !ruby/object:Gem::Requirement
65
52
  requirements:
66
- - - '>='
53
+ - - ">="
67
54
  - !ruby/object:Gem::Version
68
- version: '0'
55
+ version: 1.3.0
69
56
  - !ruby/object:Gem::Dependency
70
- name: rack-test
57
+ name: awesome_print
71
58
  requirement: !ruby/object:Gem::Requirement
72
59
  requirements:
73
- - - '>='
60
+ - - ">="
74
61
  - !ruby/object:Gem::Version
75
62
  version: '0'
76
63
  type: :development
77
64
  prerelease: false
78
65
  version_requirements: !ruby/object:Gem::Requirement
79
66
  requirements:
80
- - - '>='
67
+ - - ">="
81
68
  - !ruby/object:Gem::Version
82
69
  version: '0'
83
70
  - !ruby/object:Gem::Dependency
84
- name: libnotify
71
+ name: rspec
85
72
  requirement: !ruby/object:Gem::Requirement
86
73
  requirements:
87
- - - '>='
74
+ - - "~>"
88
75
  - !ruby/object:Gem::Version
89
- version: '0'
76
+ version: '3.8'
90
77
  type: :development
91
78
  prerelease: false
92
79
  version_requirements: !ruby/object:Gem::Requirement
93
80
  requirements:
94
- - - '>='
81
+ - - "~>"
95
82
  - !ruby/object:Gem::Version
96
- version: '0'
83
+ version: '3.8'
97
84
  - !ruby/object:Gem::Dependency
98
- name: ruby-debug19
85
+ name: libnotify
99
86
  requirement: !ruby/object:Gem::Requirement
100
87
  requirements:
101
- - - '>='
88
+ - - "~>"
102
89
  - !ruby/object:Gem::Version
103
- version: '0'
90
+ version: 0.9.3
104
91
  type: :development
105
92
  prerelease: false
106
93
  version_requirements: !ruby/object:Gem::Requirement
107
94
  requirements:
108
- - - '>='
95
+ - - "~>"
109
96
  - !ruby/object:Gem::Version
110
- version: '0'
97
+ version: 0.9.3
111
98
  description: A Polaris API strategy for OmniAuth.
112
99
  email:
113
100
  - sanderson@bpl.org
101
+ - bbarber@bpl.org
114
102
  executables: []
115
103
  extensions: []
116
104
  extra_rdoc_files: []
117
105
  files:
118
- - .gitignore
106
+ - ".gitignore"
107
+ - ".rubocop.yml"
119
108
  - Gemfile
120
109
  - README.rdoc
121
110
  - Rakefile
@@ -136,19 +125,21 @@ require_paths:
136
125
  - lib
137
126
  required_ruby_version: !ruby/object:Gem::Requirement
138
127
  requirements:
139
- - - '>='
128
+ - - "~>"
140
129
  - !ruby/object:Gem::Version
141
- version: '0'
130
+ version: '2.4'
142
131
  required_rubygems_version: !ruby/object:Gem::Requirement
143
132
  requirements:
144
- - - '>='
133
+ - - ">="
145
134
  - !ruby/object:Gem::Version
146
135
  version: '0'
147
136
  requirements: []
148
137
  rubyforge_project:
149
- rubygems_version: 2.0.3
138
+ rubygems_version: 2.6.14.3
150
139
  signing_key:
151
140
  specification_version: 4
152
141
  summary: A Polaris API strategy for OmniAuth.
153
- test_files: []
154
- has_rdoc:
142
+ test_files:
143
+ - spec/omniauth-ldap/adaptor_spec.rb
144
+ - spec/omniauth/strategies/polaris_spec.rb
145
+ - spec/spec_helper.rb