mirror of
https://github.com/rubyjs/therubyrhino
synced 2023-03-27 23:21:34 -04:00
clean up the Rakefile, fix rspec task
This commit is contained in:
parent
c0884cdbbf
commit
48d29043c8
4 changed files with 5 additions and 24 deletions
8
Rakefile
8
Rakefile
|
@ -1,11 +1,11 @@
|
||||||
|
require 'java'
|
||||||
require 'bundler/setup'
|
require 'bundler/setup'
|
||||||
Bundler::GemHelper.install_tasks
|
Bundler::GemHelper.install_tasks
|
||||||
|
|
||||||
for file in Dir['tasks/*.rake']
|
|
||||||
load file
|
|
||||||
end
|
|
||||||
|
|
||||||
desc "remove all build artifacts"
|
desc "remove all build artifacts"
|
||||||
task :clean do
|
task :clean do
|
||||||
sh "rm -rf pkg/"
|
sh "rm -rf pkg/"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
require 'rspec/core/rake_task'
|
||||||
|
RSpec::Core::RakeTask.new
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
if RUBY_PLATFORM =~ /java/
|
|
||||||
require 'java'
|
|
||||||
else
|
|
||||||
puts "Java RubyGem only! You are not running within jruby."
|
|
||||||
puts "Try: jruby -S rake #{ARGV.join(' ')}"
|
|
||||||
exit(1)
|
|
||||||
end
|
|
|
@ -1,13 +0,0 @@
|
||||||
begin
|
|
||||||
require 'spec'
|
|
||||||
require 'spec/rake/spectask'
|
|
||||||
desc "Run the specs under spec/models"
|
|
||||||
Spec::Rake::SpecTask.new do |t|
|
|
||||||
t.spec_opts = ['--options', "spec/spec.opts"]
|
|
||||||
t.spec_files = FileList['spec/**/*_spec.rb']
|
|
||||||
end
|
|
||||||
rescue LoadError
|
|
||||||
desc "bundle install to run rspecs"
|
|
||||||
task :spec
|
|
||||||
end
|
|
||||||
|
|
|
@ -15,6 +15,7 @@ Gem::Specification.new do |s|
|
||||||
s.rubyforge_project = %q{therubyrhino}
|
s.rubyforge_project = %q{therubyrhino}
|
||||||
s.summary = %q{Embed the Rhino JavaScript interpreter into JRuby}
|
s.summary = %q{Embed the Rhino JavaScript interpreter into JRuby}
|
||||||
|
|
||||||
|
s.add_development_dependency "rake"
|
||||||
s.add_development_dependency "rspec"
|
s.add_development_dependency "rspec"
|
||||||
s.add_development_dependency "jruby-openssl"
|
s.add_development_dependency "jruby-openssl"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue