mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
21 lines
354 B
Ruby
21 lines
354 B
Ruby
|
|
begin
|
|
require 'spec'
|
|
rescue LoadError
|
|
require 'rubygems' unless ENV['NO_RUBYGEMS']
|
|
gem 'rspec'
|
|
require 'spec'
|
|
end
|
|
|
|
#
|
|
# $: is the load path $LOAD_PATH
|
|
#
|
|
$:.unshift(File.dirname(__FILE__) + '/../lib')
|
|
$:.unshift(File.dirname(__FILE__) + '/..')
|
|
require 'v8'
|
|
|
|
require 'erb'
|
|
def rputs(msg)
|
|
puts "<div>#{ERB::Util.h(msg)}</div>"
|
|
$stdout.flush
|
|
end
|