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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54e9021aa07360eb6b3949229e6aaf50fae68a36
4
- data.tar.gz: 32c384a00846090d210a1ec3aeaf5444ee03348b
3
+ metadata.gz: 83270e43417a39dc8b49a1214ed0905194c08a6b
4
+ data.tar.gz: a66a140997f45bb14c66053a367c1cc66a6a0986
5
5
  SHA512:
6
- metadata.gz: 668c4fee6fcdafd8911ff5bdf23211ca7710051ed6d1c895f71f79569efbd4bcdb4a226c43d5e41747c19fd5e250b79f860ec36e52adb1e9b779ae4b03b3bbd5
7
- data.tar.gz: 092abd9dac8abac21f85c059bbebc7b8be6458d8dda5b362b6d06c29cdc563c2b5f41a6a0aa35045bc66c5e8f0e1af3d8f2d433d728f181e36b94ce239f52d96
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[node.name] = node.text
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
 
@@ -1,3 +1,3 @@
1
1
  module RackCAS
2
- VERSION = '0.11.1'
2
+ VERSION = '0.12.0'
3
3
  end
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.11.1
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-10-08 00:00:00.000000000 Z
11
+ date: 2015-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack