Sha256: 8e66484e76fc5c781585738348b42cf46f6efadc381dd6cec9ef7e798f1c2dfd

Contents?: true

Size: 599 Bytes

Versions: 11

Compression:

Stored size: 599 Bytes

Contents

if File.exists?(picnic = File.expand_path(File.dirname(File.expand_path(__FILE__))+'/../../vendor/picnic/lib'))
  puts "Loading picnic from #{picnic.inspect}..."
  $: << picnic
elsif File.exists?(picnic = File.expand_path(File.dirname(File.expand_path(__FILE__))+'/../../../picnic/lib'))
  puts "Loading picnic from #{picnic.inspect}..."
  $: << picnic
else
  puts "Loading picnic from rubygems..."
  require 'rubygems'
  
  begin
    # Try to load dev version of picnic if available (for example 'zuk-picnic' from Github)
    gem /^.*?-picnic$/
  rescue Gem::LoadError
    gem 'picnic'
  end
end


Version data entries

11 entries across 11 versions & 4 rubygems

Version Path
arpitjain11-rubycas-server-0.8.0.20090612 lib/casserver/load_picnic.rb
arpitjain11-rubycas-server-0.8.0.20090613 lib/casserver/load_picnic.rb
gunark-rubycas-server-0.8.0.20090427 lib/casserver/load_picnic.rb
gunark-rubycas-server-0.8.0.20090430 lib/casserver/load_picnic.rb
gunark-rubycas-server-0.8.0.20090506 lib/casserver/load_picnic.rb
gunark-rubycas-server-0.8.0.20090715 lib/casserver/load_picnic.rb
gunark-rubycas-server-0.8.0.20090812 lib/casserver/load_picnic.rb
kch-rubycas-server-0.8.0.20090715 lib/casserver/load_picnic.rb
brontes3d-rubycas-server-0.8.0.20100111 lib/casserver/load_picnic.rb
brontes3d-rubycas-server-0.8.0.20091208 lib/casserver/load_picnic.rb
brontes3d-rubycas-server-0.8.0.20090812 lib/casserver/load_picnic.rb