cas_rest_client 1.0 → 1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,6 +6,11 @@ class CasRestClient
6
6
 
7
7
  def initialize(cas_opts)
8
8
  @cas_opts = DEFAULT_OPTIONS.merge(cas_opts)
9
+ begin
10
+ get_tgt
11
+ rescue RestClient::BadRequest => e
12
+ raise RestClient::Request::Unauthorized.new
13
+ end
9
14
  end
10
15
 
11
16
  def get(uri, options = {})
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cas_rest_client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
- - 0
9
- version: "1.0"
8
+ - 1
9
+ version: "1.1"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Antonio Marques, Roberto Klein
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-07-28 00:00:00 -03:00
17
+ date: 2010-07-30 00:00:00 -03:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency