1
0
Fork 0
mirror of https://github.com/rails/execjs synced 2023-03-27 23:21:20 -04:00

fix for rbx

workaround for cowboyd/therubyracer#157
This commit is contained in:
stereobooster 2012-05-15 17:21:38 +03:00
parent a0ab2e9f96
commit b829dcd8b8
2 changed files with 12 additions and 5 deletions

View file

@ -8,6 +8,6 @@ group :test do
# see https://github.com/nu7hatch/mustang/issues/18 # see https://github.com/nu7hatch/mustang/issues/18
gem 'mustang', :platform => :ruby, gem 'mustang', :platform => :ruby,
:git => "https://github.com/nu7hatch/mustang.git", :ref => "2a3bcfbd9fd0f34e9b004fcd92188f326b40ec2a" :git => "https://github.com/nu7hatch/mustang.git", :ref => "2a3bcfbd9fd0f34e9b004fcd92188f326b40ec2a"
gem 'therubyracer', :platform => :ruby gem 'therubyracer', :platform => :mri
gem 'therubyrhino', :platform => :jruby gem 'therubyrhino', :platform => :jruby
end end

View file

@ -14,16 +14,23 @@ Gem::Specification.new do |s|
s.add_dependency "multi_json", "~>1.0" s.add_dependency "multi_json", "~>1.0"
s.add_development_dependency "rake" s.add_development_dependency "rake"
if RUBY_VERSION < "1.9" && (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby") # mri_18
if (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby") && RUBY_VERSION < "1.9"
# see https://github.com/jbarnette/johnson/issues/21 # see https://github.com/jbarnette/johnson/issues/21
s.add_development_dependency "johnson" s.add_development_dependency "johnson"
end end
if (!defined?(RUBY_ENGINE) || RUBY_ENGINE != "jruby") # mri
s.add_development_dependency "mustang" if (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby")
# disabled for rbx, because of https://github.com/cowboyd/therubyracer/issues/157
s.add_development_dependency "therubyracer" s.add_development_dependency "therubyracer"
else end
# jruby
if (defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby")
s.add_development_dependency "therubyrhino", ">=1.73.3" s.add_development_dependency "therubyrhino", ">=1.73.3"
else
s.add_development_dependency "mustang"
end end
s.authors = ["Sam Stephenson", "Josh Peek"] s.authors = ["Sam Stephenson", "Josh Peek"]