lastobelus-rubycas-client 2.0.6 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,16 +24,16 @@ module CASClient
24
24
  return nil
25
25
  when Net::HTTPBadRequest then
26
26
  log.error("RestClient.get_ticket_granting_ticket_resource: CAS server returned BadRequest")
27
- raise BadRequestException, res.body
27
+ raise BadRequestException, resp.body
28
28
  else
29
29
  log.warn "RestClient.get_ticket_granting_ticket_resource: an unexpected error occurred #{resp}"
30
- raise CASException, res.inspect
30
+ raise CASException, resp.inspect
31
31
  end
32
32
  end
33
33
 
34
34
  def ticket_id_from_resource_url(*ticket_resource)
35
35
  ticket_resource = ticket_resource.flatten.to_s
36
- match = ticket_resource.match(/(TGT[^\/]+cas)/)
36
+ match = ticket_resource.match(/(TGT-\d+-.+-.+)/)
37
37
  raise Exception, "could not extract ticket id from #{ticket_resource}" unless match
38
38
  return match[1]
39
39
  end
@@ -2,7 +2,7 @@ module CASClient #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 2
4
4
  MINOR = 0
5
- TINY = 6
5
+ TINY = 7
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lastobelus-rubycas-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.6
4
+ version: 2.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Zukowski