Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (17 sloc) 0.443 kb
#!/usr/bin/ruby -*- ruby -*-
BEGIN {
require 'pathname'
require 'rbconfig'
basedir = Pathname.new( __FILE__ ).dirname.expand_path
libdir = basedir + "lib"
puts ">>> Adding #{libdir} to load path..."
$LOAD_PATH.unshift( libdir.to_s )
}
# Try to require the 'pg' library
begin
$stderr.puts "Loading pg..."
require 'pg'
rescue => e
$stderr.puts "Ack! pg library failed to load: #{e.message}\n\t" +
e.backtrace.join( "\n\t" )
end
Jump to Line
Something went wrong with that request. Please try again.