rubycas-client 2.3.3 → 2.3.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,11 @@
1
1
  = RubyCAS-Client Changelog
2
2
 
3
+ == Version 2.3.5 :: 2011-11-17
4
+
5
+ * Bug Fixes
6
+ * read_service_url will no longer include POST parameters on the
7
+ service url
8
+
3
9
  == Version 2.3.3 :: 2011-11-11
4
10
 
5
11
  * Bug Fixes
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.3
1
+ 2.3.5
@@ -322,14 +322,16 @@ module CASClient
322
322
  def returning_from_gateway?(controller)
323
323
  controller.session[:cas_sent_to_gateway]
324
324
  end
325
-
325
+
326
326
  def read_service_url(controller)
327
327
  if config[:service_url]
328
328
  log.debug("Using explicitly set service url: #{config[:service_url]}")
329
329
  return config[:service_url]
330
330
  end
331
-
332
- params = controller.params.dup
331
+
332
+ params = {}.with_indifferent_access
333
+ params.merge controller.request.query_parameters
334
+ params.merge controller.request.path_parameters
333
335
  params.delete(:ticket)
334
336
  service_url = controller.url_for(params)
335
337
  log.debug("Guessed service url: #{service_url.inspect}")
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "rubycas-client"
8
- s.version = "2.3.3"
8
+ s.version = "2.3.5"
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"]
12
- s.date = "2011-11-11"
12
+ s.date = "2011-11-17"
13
13
  s.extra_rdoc_files = [
14
14
  "LICENSE.txt",
15
15
  "README.rdoc"
@@ -5,12 +5,22 @@ require 'casclient/frameworks/rails/filter'
5
5
  describe CASClient::Frameworks::Rails::Filter do
6
6
 
7
7
  def controller_with_session(request = nil, session={})
8
+
9
+ query_parameters = {:ticket => "bogusticket", :renew => false}
10
+ parameters = query_parameters.dup
11
+
12
+ #TODO this really need to be replaced with a "real" rails controller
8
13
  request ||= mock_post_request
14
+ request.stub(:query_parameters) {query_parameters}
15
+ request.stub(:path_parameters) {{}}
9
16
  controller = double("Controller")
10
17
  controller.stub(:session) {session}
11
18
  controller.stub(:request) {request}
12
19
  controller.stub(:url_for) {"bogusurl"}
13
- controller.stub(:params) {{:ticket => "bogusticket", :renew => false}}
20
+ controller.stub(:query_parameters) {query_parameters}
21
+ controller.stub(:path_parameters) {{}}
22
+ controller.stub(:parameters) {parameters}
23
+ controller.stub(:params) {parameters}
14
24
  controller
15
25
  end
16
26
 
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.3
4
+ version: 2.3.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2011-11-11 00:00:00.000000000Z
14
+ date: 2011-11-17 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport
18
- requirement: &70335023438480 !ruby/object:Gem::Requirement
18
+ requirement: &70130070436840 !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: *70335023438480
26
+ version_requirements: *70130070436840
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json
29
- requirement: &70335023437940 !ruby/object:Gem::Requirement
29
+ requirement: &70130070436280 !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: *70335023437940
37
+ version_requirements: *70130070436280
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: rspec
40
- requirement: &70335023437440 !ruby/object:Gem::Requirement
40
+ requirement: &70130070435760 !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: *70335023437440
48
+ version_requirements: *70130070435760
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: bundler
51
- requirement: &70335023436920 !ruby/object:Gem::Requirement
51
+ requirement: &70130070435180 !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: *70335023436920
59
+ version_requirements: *70130070435180
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: jeweler
62
- requirement: &70335023436400 !ruby/object:Gem::Requirement
62
+ requirement: &70130070434580 !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: *70335023436400
70
+ version_requirements: *70130070434580
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: actionpack
73
- requirement: &70335023435900 !ruby/object:Gem::Requirement
73
+ requirement: &70130070434100 !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: *70335023435900
81
+ version_requirements: *70130070434100
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: rake
84
- requirement: &70335023435380 !ruby/object:Gem::Requirement
84
+ requirement: &70130070433500 !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: *70335023435380
92
+ version_requirements: *70130070433500
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: rcov
95
- requirement: &70335023434860 !ruby/object:Gem::Requirement
95
+ requirement: &70130070432960 !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: *70335023434860
103
+ version_requirements: *70130070432960
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: -2365484882712424697
180
+ hash: -4466061466971345462
181
181
  required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  none: false
183
183
  requirements: