1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

require rubygems before activating libv8

This commit is contained in:
Charles Lowell 2012-06-20 07:24:08 -05:00
parent ffdceb0d2a
commit a318291c5a

View file

@ -2,10 +2,13 @@
LIBV8_COMPATIBILITY = '~> 3.11.8'
def have_rubygem_libv8?
require 'rubygems'
gem 'libv8', LIBV8_COMPATIBILITY
return true
rescue Gem::LoadError
return false
rescue LoadError
return false
end
def build_with_system_libv8