Sha256: ba5fa264e7eec3aeb0364c269c7f899abecb2345aefcf0a97f27421d393e0e9c

Contents?: true

Size: 720 Bytes

Versions: 2

Compression:

Stored size: 720 Bytes

Contents

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

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

begin
  require 'picnic'
rescue LoadError => e
  # make sure that the LoadError was about picnic and not something else
  raise e unless e.to_s =~ /picnic/
  
  require 'rubygems'
  
  # make things backwards-compatible for rubygems < 0.9.0
  unless Object.method_defined? :gem
    alias gem require_gem
  end
  
  gem 'picnic'
  
  require 'picnic'
end

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

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
gunark-rubycas-server-0.6.99.336 lib/casserver/environment.rb
wmernagh-rubycas-server-0.6.99.336 lib/casserver/environment.rb