Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
update libv8 dependency, fall back to libv8 if necessary.
Browse files Browse the repository at this point in the history
  • Loading branch information
cowboyd committed May 27, 2011
1 parent d302bd6 commit ce0ac40
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
7 changes: 6 additions & 1 deletion ext/v8/extconf.rb
@@ -1,6 +1,11 @@
require 'mkmf'
require 'set'
require 'libv8'
begin
require 'libv8'
rescue LoadError
require 'rubygems'
require 'libv8'
end

puts "Compiling The Ruby Racer..."

Expand Down
3 changes: 2 additions & 1 deletion lib/v8/cli.rb
Expand Up @@ -25,8 +25,9 @@ def self.run(exename = 'v8', args = [])
exit(1)
end
if options.version_info
require 'libv8'
puts "The Ruby Racer #{V8::VERSION}"
puts "V8 Version 2.3.3"
puts "V8 Version #{Libv8::V8_VERSION}"
exit
elsif options.selftest
self.test
Expand Down
2 changes: 1 addition & 1 deletion therubyracer.gemspec
Expand Up @@ -21,7 +21,7 @@ Gem::Specification.new do |s|
s.extensions = ["ext/v8/extconf.rb"]
s.require_paths = ["lib", "ext"]

s.add_dependency "libv8", "~> 3.3.8.2"
s.add_dependency "libv8", "~> 3.3.10"

s.add_development_dependency "rake", "~> 0.8.7"
s.add_development_dependency "rspec", ">= 2.0.0"
Expand Down

0 comments on commit ce0ac40

Please sign in to comment.