diff --git a/Gemfile b/Gemfile index 7e52338..4fd8186 100644 --- a/Gemfile +++ b/Gemfile @@ -7,10 +7,3 @@ gem "rake" gem "rspec", "~> 2.0" gem "rake-compiler" gem 'gem-compiler' unless Object.const_defined?(:RUBY_ENGINE) && RUBY_ENGINE == 'rbx' - -group :libv8 do - gem 'libv8', "~> 3.11.8" -end - - - diff --git a/ext/v8/extconf.rb b/ext/v8/extconf.rb index 4107921..6590f43 100644 --- a/ext/v8/extconf.rb +++ b/ext/v8/extconf.rb @@ -16,10 +16,14 @@ end if enable_config('debug') $CFLAGS += " -O0 -ggdb3" end -if have_rubygem_libv8? - build_with_rubygem_libv8 -else - build_with_system_libv8 + +begin +require 'libv8' +rescue LoadError +require 'rubygems' +gem 'libv8' +require 'libv8' end +Libv8.configure_makefile create_makefile('v8/init') diff --git a/lib/v8/version.rb b/lib/v8/version.rb index 66b9c3e..89c6ac7 100644 --- a/lib/v8/version.rb +++ b/lib/v8/version.rb @@ -1,3 +1,3 @@ module V8 - VERSION = "0.11.0" + VERSION = "0.11.1beta1" end diff --git a/therubyracer.gemspec b/therubyracer.gemspec index cef1bae..9ed3e58 100644 --- a/therubyracer.gemspec +++ b/therubyracer.gemspec @@ -17,4 +17,5 @@ Gem::Specification.new do |gem| gem.version = V8::VERSION gem.add_dependency 'ref' + gem.add_dependency 'libv8', '~> 3.11.8.5' end