Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 42 lines (37 sloc) 1.024 kb
f781966 Initial import.
matt.zukowski authored
1 require 'uri'
2 require 'cgi'
3 require 'net/https'
4 require 'rexml/document'
5
cf320e3 working response parsing
matt.zukowski authored
6 begin
7 require 'active_support'
8 rescue LoadError
9 require 'rubygems'
10 require 'active_support'
11 end
f781966 Initial import.
matt.zukowski authored
12
50d50d4 committing so that I can start testing this as a Rails plugin
matt.zukowski authored
13 $: << File.expand_path(File.dirname(__FILE__))
14
f781966 Initial import.
matt.zukowski authored
15 module CASClient
50d50d4 committing so that I can start testing this as a Rails plugin
matt.zukowski authored
16 class CASException < Exception
f781966 Initial import.
matt.zukowski authored
17 end
50d50d4 committing so that I can start testing this as a Rails plugin
matt.zukowski authored
18
19 # Wraps a real Logger. If no real Logger is set, then this wrapper
20 # will quietly swallow any logging calls.
21 class Logger
22 def initialize(real_logger=nil)
23 set_logger(real_logger)
24 end
25 # Assign the 'real' Logger instance that this dummy instance wraps around.
26 def set_real_logger(real_logger)
27 @real_logger = real_logger
28 end
29 # Log using the appropriate method if we have a logger
30 # if we dont' have a logger, gracefully ignore.
31 def method_missing(name, *args)
32 if @real_logger && @real_logger.respond_to?(name)
33 @real_logger.send(name, *args)
f781966 Initial import.
matt.zukowski authored
34 end
35 end
36 end
50d50d4 committing so that I can start testing this as a Rails plugin
matt.zukowski authored
37 end
38
39 require 'casclient/tickets'
40 require 'casclient/responses'
41 require 'casclient/client'
42 require 'casclient/version'
Something went wrong with that request. Please try again.