rack-cas 0.11.1 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rack-cas/service_validation_response.rb +6 -1
- data/lib/rack-cas/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83270e43417a39dc8b49a1214ed0905194c08a6b
|
4
|
+
data.tar.gz: a66a140997f45bb14c66053a367c1cc66a6a0986
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ad09daebe8d74b9cbad0f65e089b6fed7bebf216b23da8964fcc0d4d8f25e8ac4f0416a78c726f870f07d0cbd979a5e01e0a5e82be26f658a353cfcf2d81a74
|
7
|
+
data.tar.gz: aa771bf5377a74bad5b90d473952a353c6b9e937c03b0a6bac4f5ce955446e8dcfe4bcf5e1882a51ab4a46fe453429b8032bf96101502ffe55f23ae226fa8e56
|
@@ -37,7 +37,12 @@ module RackCAS
|
|
37
37
|
if attr_node = xml.at('/cas:serviceResponse/cas:authenticationSuccess/cas:attributes')
|
38
38
|
attr_node.children.each do |node|
|
39
39
|
if node.is_a? Nokogiri::XML::Element
|
40
|
-
attrs
|
40
|
+
if attrs.has_key?(node.name)
|
41
|
+
attrs[node.name] = [attrs[node.name]] if attrs[node.name].is_a? String
|
42
|
+
attrs[node.name] << node.text
|
43
|
+
else
|
44
|
+
attrs[node.name] = node.text
|
45
|
+
end
|
41
46
|
end
|
42
47
|
end
|
43
48
|
|
data/lib/rack-cas/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-cas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Crownoble
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|