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

travis doesn't support 1.9.1

workaround for jbarnette/johnson#21
workaround for nu7hatch/mustang#18
fix for ruby 1.8 (Disabled)
This commit is contained in:
stereobooster 2012-05-15 17:16:57 +03:00
parent 457c4f2032
commit 9bf032ca79
4 changed files with 23 additions and 12 deletions

View file

@ -2,12 +2,15 @@ env: CI=1
rvm: rvm:
- 1.8.7 - 1.8.7
- 1.9.1
- 1.9.2 - 1.9.2
- jruby - 1.9.3
- rbx - jruby-18mode
- jruby-19mode
- rbx-18mode
- rbx-19mode
- ree - ree
- ruby-head - ruby-head
- jruby-head
notifications: notifications:
disabled: true disabled: true

View file

@ -5,7 +5,9 @@ gemspec
group :test do group :test do
gem 'johnson', :platform => :mri_18 gem 'johnson', :platform => :mri_18
gem 'json' gem 'json'
gem 'mustang', :platform => :ruby # see https://github.com/nu7hatch/mustang/issues/18
gem 'mustang', :platform => :ruby,
:git => "https://github.com/nu7hatch/mustang.git", :ref => "2a3bcfbd9fd0f34e9b004fcd92188f326b40ec2a"
gem 'therubyracer', :platform => :ruby gem 'therubyracer', :platform => :ruby
gem 'therubyrhino', :platform => :jruby gem 'therubyrhino', :platform => :jruby
end end

View file

@ -7,7 +7,7 @@ require "execjs/runtimes"
tests = namespace :test do |tests| tests = namespace :test do |tests|
ExecJS::Runtimes.names.each do |name| ExecJS::Runtimes.names.each do |name|
next if name == :Disabled next if (name == :Disabled || name == "Disabled")
task(name.downcase) do task(name.downcase) do
ENV["EXECJS_RUNTIME"] = name.to_s ENV["EXECJS_RUNTIME"] = name.to_s

View file

@ -7,18 +7,24 @@ Gem::Specification.new do |s|
s.homepage = "https://github.com/sstephenson/execjs" s.homepage = "https://github.com/sstephenson/execjs"
s.summary = "Run JavaScript code from Ruby" s.summary = "Run JavaScript code from Ruby"
s.description = <<-EOS s.description = "ExecJS lets you run JavaScript code from Ruby."
ExecJS lets you run JavaScript code from Ruby.
EOS
s.files = Dir["README.md", "LICENSE", "lib/**/*"] s.files = Dir["README.md", "LICENSE", "lib/**/*"]
s.add_dependency "multi_json", "~>1.0" s.add_dependency "multi_json", "~>1.0"
s.add_development_dependency "johnson"
s.add_development_dependency "mustang"
s.add_development_dependency "rake" s.add_development_dependency "rake"
s.add_development_dependency "therubyracer"
s.add_development_dependency "therubyrhino" if RUBY_VERSION < "1.9" && (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby")
# see https://github.com/jbarnette/johnson/issues/21
s.add_development_dependency "johnson"
end
if (!defined?(RUBY_ENGINE) || RUBY_ENGINE != "jruby")
s.add_development_dependency "mustang"
s.add_development_dependency "therubyracer"
else
s.add_development_dependency "therubyrhino"
end
s.authors = ["Sam Stephenson", "Josh Peek"] s.authors = ["Sam Stephenson", "Josh Peek"]
s.email = ["sstephenson@gmail.com", "josh@joshpeek.com"] s.email = ["sstephenson@gmail.com", "josh@joshpeek.com"]