casino 4.0.0.pre.1 → 4.0.0.pre.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cff1dc935c7025b688e522670e88365067743fe9
|
4
|
+
data.tar.gz: c71e6328c03e6b292a1ca53c638b9bda81506ea0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1009bfa6723df53a565108180bb64d626c946337b757a9171e94643b9fab01953cd796d6e8e9d0fe23baaf01efb04a114c566cc884f6f2f52893eab06b3b15c0
|
7
|
+
data.tar.gz: 891046eea81564fcef89956a4d9ee423ef6816f91cf4ac99432db5189040a304a2113d103535b6b52e9e2b634dc7b36bb8ac50ad178bf08a45386fcf31700de1
|
@@ -27,7 +27,7 @@ module CASino::AuthenticationProcessor
|
|
27
27
|
|
28
28
|
def authenticators
|
29
29
|
@authenticators ||= {}.tap do |authenticators|
|
30
|
-
CASino.config
|
30
|
+
CASino.config[:authenticators].each do |name, auth|
|
31
31
|
next unless auth.is_a?(Hash)
|
32
32
|
|
33
33
|
authenticator = if auth[:class]
|
@@ -4,7 +4,7 @@ namespace :casino do
|
|
4
4
|
namespace :authentication do
|
5
5
|
desc 'Test authentication.'
|
6
6
|
task test: :environment do |task, args|
|
7
|
-
include CASino::
|
7
|
+
include CASino::AuthenticationProcessor
|
8
8
|
print "Username: "
|
9
9
|
username = STDIN.gets.chomp
|
10
10
|
print "Password (won't be shown): "
|
@@ -5,7 +5,7 @@ namespace :casino do
|
|
5
5
|
|
6
6
|
desc 'Add a service rule (prefix the url parameter with "regex:" to add a regular expression)'
|
7
7
|
task :add, [:name, :url] => :environment do |task, args|
|
8
|
-
include CASino::
|
8
|
+
include CASino::ServiceTicketProcessor
|
9
9
|
service_rule = CASino::ServiceRule.new name: args[:name]
|
10
10
|
match = /^regex:(.*)/.match(args[:url])
|
11
11
|
if match.nil?
|
data/lib/casino/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: casino
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.pre.
|
4
|
+
version: 4.0.0.pre.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nils Caspar
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-04-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capybara
|