rubycas-client 2.3.2 → 2.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  = RubyCAS-Client Changelog
2
2
 
3
- == Version 2.3.2 :: 2011-11-11
3
+ == Version 2.3.3 :: 2011-11-11
4
4
 
5
5
  * Bug Fixes
6
6
  * Removed a puts that didn't get cleaned up
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.2
1
+ 2.3.3
@@ -66,7 +66,8 @@ module CASClient
66
66
 
67
67
  @extra_attributes = {}
68
68
  @xml.elements.to_a('//cas:authenticationSuccess/cas:attributes/* | //cas:authenticationSuccess/*[local-name() != \'proxies\' and local-name() != \'proxyGrantingTicket\' and local-name() != \'user\' and local-name() != \'attributes\']').each do |el|
69
- @extra_attributes.merge! el.name => el.text
69
+ inner_text = el.cdatas.length > 0 ? el.cdatas.join('') : el.text
70
+ @extra_attributes.merge! el.name => inner_text
70
71
  end
71
72
 
72
73
  # unserialize extra attributes
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "rubycas-client"
8
- s.version = "2.3.2"
8
+ s.version = "2.3.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matt Zukowski", "Matt Walker", "Matt Campbell"]
@@ -11,7 +11,7 @@ describe CASClient::ValidationResponse do
11
11
  <cas:first_name>Jack</cas:first_name>
12
12
  <cas:mobile_phone></cas:mobile_phone>
13
13
  <cas:global_roles><![CDATA[]]></cas:global_roles>
14
- <cas:foo_data><![CDATA[{ foo: "bar" }]]></cas:foo_data>
14
+ <cas:foo_data> <![CDATA[[{"id":10529}]]]></cas:foo_data>
15
15
  </cas:attributes>
16
16
  </cas:authenticationSuccess>
17
17
  </cas:serviceResponse>
@@ -33,7 +33,7 @@ RESPONSE_TEXT
33
33
  end
34
34
 
35
35
  it "sets the value of JSON attributes to their parsed value" do
36
- subject.extra_attributes["foo_data"]["foo"].should == "bar"
36
+ subject.extra_attributes["foo_data"][0]["id"].should == 10529
37
37
  end
38
38
  end
39
39
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubycas-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.2
4
+ version: 2.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -15,7 +15,7 @@ date: 2011-11-11 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport
18
- requirement: &70128146526380 !ruby/object:Gem::Requirement
18
+ requirement: &70335023438480 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: '0'
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *70128146526380
26
+ version_requirements: *70335023438480
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json
29
- requirement: &70128146525800 !ruby/object:Gem::Requirement
29
+ requirement: &70335023437940 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ~>
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: 1.6.1
35
35
  type: :development
36
36
  prerelease: false
37
- version_requirements: *70128146525800
37
+ version_requirements: *70335023437940
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: rspec
40
- requirement: &70128146525180 !ruby/object:Gem::Requirement
40
+ requirement: &70335023437440 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ~>
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: 2.7.0
46
46
  type: :development
47
47
  prerelease: false
48
- version_requirements: *70128146525180
48
+ version_requirements: *70335023437440
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: bundler
51
- requirement: &70128146524640 !ruby/object:Gem::Requirement
51
+ requirement: &70335023436920 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ~>
@@ -56,10 +56,10 @@ dependencies:
56
56
  version: 1.0.0
57
57
  type: :development
58
58
  prerelease: false
59
- version_requirements: *70128146524640
59
+ version_requirements: *70335023436920
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: jeweler
62
- requirement: &70128146524100 !ruby/object:Gem::Requirement
62
+ requirement: &70335023436400 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ~>
@@ -67,10 +67,10 @@ dependencies:
67
67
  version: 1.6.2
68
68
  type: :development
69
69
  prerelease: false
70
- version_requirements: *70128146524100
70
+ version_requirements: *70335023436400
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: actionpack
73
- requirement: &70128146523500 !ruby/object:Gem::Requirement
73
+ requirement: &70335023435900 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ! '>='
@@ -78,10 +78,10 @@ dependencies:
78
78
  version: '0'
79
79
  type: :development
80
80
  prerelease: false
81
- version_requirements: *70128146523500
81
+ version_requirements: *70335023435900
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: rake
84
- requirement: &70128146522900 !ruby/object:Gem::Requirement
84
+ requirement: &70335023435380 !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
87
87
  - - ! '>='
@@ -89,10 +89,10 @@ dependencies:
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
- version_requirements: *70128146522900
92
+ version_requirements: *70335023435380
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: rcov
95
- requirement: &70128146522320 !ruby/object:Gem::Requirement
95
+ requirement: &70335023434860 !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
98
98
  - - ! '>='
@@ -100,7 +100,7 @@ dependencies:
100
100
  version: '0'
101
101
  type: :development
102
102
  prerelease: false
103
- version_requirements: *70128146522320
103
+ version_requirements: *70335023434860
104
104
  description:
105
105
  email:
106
106
  executables: []
@@ -177,7 +177,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
177
177
  version: '0'
178
178
  segments:
179
179
  - 0
180
- hash: 631183831459328070
180
+ hash: -2365484882712424697
181
181
  required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  none: false
183
183
  requirements: