rubycas-client 0.12.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/CHANGES +8 -0
  2. data/lib/cas.rb +1 -1
  3. metadata +3 -3
data/CHANGES CHANGED
@@ -1,5 +1,13 @@
1
1
  = RubyCAS-Client Changelog
2
2
 
3
+ == Version 1.0.0 :: 2007-07-26
4
+
5
+ * RubyCAS-Client has matured to the point where it is probably safe to
6
+ take it out of beta and release version 1.0.
7
+ * Non-SSL CAS URLs will now work. This may be useful for demo purposes,
8
+ but certainly shouldn't be used in production. The client automatically
9
+ disables SSL if the CAS URL starts with http (rather than https). [rubywmq]
10
+
3
11
  == Version 0.12.0
4
12
 
5
13
  * Prior to redirecting to the CAS login page, the client now stores the
data/lib/cas.rb CHANGED
@@ -62,7 +62,7 @@ module CAS
62
62
  def self.retrieve(uri_str)
63
63
  prs = URI.parse(uri_str)
64
64
  https = Net::HTTP.new(prs.host,prs.port)
65
- https.use_ssl = true
65
+ https.use_ssl = (prs.scheme == 'https') # patch by rubywmg to allow non-SSL URLs for demo purposes
66
66
  https.start { |conn|
67
67
  # TODO: make sure that HTTP status code in the response is 200... maybe throw exception if is 500?
68
68
  conn.get("#{prs.path}?#{prs.query}").body.strip
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.0
2
+ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: rubycas-client
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.12.0
7
- date: 2007-04-04 00:00:00 -04:00
6
+ version: 1.0.0
7
+ date: 2007-07-26 00:00:00 -04:00
8
8
  summary: Client library for the CAS single-sign-on protocol.
9
9
  require_paths:
10
10
  - lib