Sha256: 8a54ea89172ed8ff15526fc70bd306510be1f984e7098180ba6611ef8693a254

Contents?: true

Size: 923 Bytes

Versions: 7

Compression:

Stored size: 923 Bytes

Contents

$: << File.dirname(File.expand_path(__FILE__))

# Try to load local version of Picnic if possible (for development purposes)
alt_picic_paths = []
alt_picic_paths << File.dirname(File.expand_path(__FILE__))+"/../../../picnic/lib"
alt_picic_paths << File.dirname(File.expand_path(__FILE__))+"/../../vendor/picnic/lib"

begin
  require 'active_record'
rescue LoadError
  require 'rubygems'
  require 'active_record'
end

if alt_picic_paths.any?{|path| File.exists? "#{path}/picnic.rb" }
  alt_picic_paths.each{|path| $: << path}
  require 'picnic'
else
  require 'rubygems'
  
  # make things backwards-compatible for rubygems < 0.9.0
  if respond_to?(:require_gem)
    puts "WARNING: aliasing gem to require_gem in #{__FILE__} -- you should update your RubyGems system!"
    alias gem require_gem
  end
 
  require 'picnic'
end

# used for serializing user extra_attributes (see #service_validate in views.rb)
require 'yaml'

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
gunark-rubycas-server-0.7.999.20090212 lib/casserver/environment.rb
gunark-rubycas-server-0.7.9999.20090212 lib/casserver/environment.rb
gunark-rubycas-server-0.8.0.20090213 lib/casserver/environment.rb
gunark-rubycas-server-0.8.0.20090225 lib/casserver/environment.rb
gunark-rubycas-server-0.8.0.20090227 lib/casserver/environment.rb
wmernagh-rubycas-server-0.7.1.1 lib/casserver/environment.rb
rubycas-server-0.7.1 lib/casserver/environment.rb