From 8be240196ca68897bff6dd53df4ca453f00f62e7 Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Thu, 1 Apr 2010 22:44:17 -0500 Subject: [PATCH] make sure that the v8 bin loads v8 from the right library. --- bin/v8 | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/bin/v8 b/bin/v8 index 5662b9b..3bed48e 100755 --- a/bin/v8 +++ b/bin/v8 @@ -1,13 +1,8 @@ #!/usr/bin/env ruby lib = File.expand_path(File.dirname(__FILE__) + '/../lib') -$:.unshift(lib) if File.exists?(lib) unless $:.member?(lib) +$:.unshift(lib) if File.exists?(lib) -begin - require 'v8' -rescue LoadError - require 'rubygems' - require 'v8' -end +require 'v8' require 'v8/cli' V8::CLI.run(File.basename(__FILE__), ARGV)