lib/casserver.rb in rubycas-server-0.4.0 vs lib/casserver.rb in rubycas-server-0.4.1
- old
+ new
@@ -6,9 +6,15 @@
# add current directory to load path
$CASSERVER_HOME = File.dirname(File.expand_path(__FILE__))
$: << $CASSERVER_HOME
require 'rubygems'
+
+# make things backwards-compatible for rubygems < 0.9.0
+unless Object.method_defined? :gem
+ alias gem require_gem
+end
+
gem 'camping', '~> 1.5'
require 'camping'
require 'active_support'
require 'yaml'