echocas-client 2.1.2 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,10 +15,10 @@ module CASClient
15
15
  def filter(controller)
16
16
  raise "Cannot use the CASClient filter because it has not yet been configured." if config.nil?
17
17
 
18
- if controller.env['CAS_FILTERED']
19
- raise "Filtering more than once might lead to redirection loops ! Don't do it (called from #{caller}, previously from #{controller.env['CAS_FILTERED']})"
18
+ if @@cas_filtered
19
+ raise "Filtering more than once might lead to redirection loops ! Don't do it (called from #{caller}, previously from #{@@cas_filtered})"
20
20
  else
21
- controller.env['CAS_FILTERED'] = caller
21
+ @@cas_filtered = caller
22
22
  end
23
23
 
24
24
  if @@fake_user
@@ -139,6 +139,7 @@ module CASClient
139
139
  end
140
140
 
141
141
  def configure(config)
142
+ @@cas_filtered = false
142
143
  @@config = config
143
144
  @@config[:logger] = RAILS_DEFAULT_LOGGER unless @@config[:logger]
144
145
  @@client = CASClient::Client.new(config)
@@ -2,7 +2,7 @@ module CASClient #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 2
4
4
  MINOR = 1
5
- TINY = 2
5
+ TINY = 3
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: echocas-client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
- - 2
10
- version: 2.1.2
9
+ - 3
10
+ version: 2.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matt Zukowski