2010-05-22 02:23:22 -04:00
|
|
|
|
2009-10-14 23:51:50 -04:00
|
|
|
begin
|
|
|
|
require 'spec'
|
|
|
|
rescue LoadError
|
|
|
|
require 'rubygems' unless ENV['NO_RUBYGEMS']
|
|
|
|
gem 'rspec'
|
|
|
|
require 'spec'
|
|
|
|
end
|
|
|
|
|
2009-11-14 00:05:52 -05:00
|
|
|
#
|
|
|
|
# $: is the load path $LOAD_PATH
|
|
|
|
#
|
2009-10-14 23:51:50 -04:00
|
|
|
$:.unshift(File.dirname(__FILE__) + '/../lib')
|
2010-06-02 09:10:24 -04:00
|
|
|
$:.unshift(File.dirname(__FILE__) + '/../contrib')
|
2009-11-14 00:05:52 -05:00
|
|
|
$:.unshift(File.dirname(__FILE__) + '/..')
|
2009-10-14 23:51:50 -04:00
|
|
|
require 'v8'
|
2010-05-17 08:13:23 -04:00
|
|
|
|
2010-05-17 08:28:39 -04:00
|
|
|
require 'erb'
|
2010-05-17 08:13:23 -04:00
|
|
|
def rputs(msg)
|
2010-05-26 12:54:56 -04:00
|
|
|
puts "<pre>#{ERB::Util.h(msg)}</pre>"
|
2010-05-19 08:55:11 -04:00
|
|
|
$stdout.flush
|
2010-05-17 08:13:23 -04:00
|
|
|
end
|