1
0
Fork 0
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:
Charles Lowell 2011-11-28 15:21:09 -06:00
parent c0884cdbbf
commit 48d29043c8
4 changed files with 5 additions and 24 deletions

View file

@ -1,11 +1,11 @@
require 'java'
require 'bundler/setup'
Bundler::GemHelper.install_tasks
for file in Dir['tasks/*.rake']
load file
end
desc "remove all build artifacts"
task :clean do
sh "rm -rf pkg/"
end
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new

View file

@ -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

View file

@ -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

View file

@ -15,6 +15,7 @@ Gem::Specification.new do |s|
s.rubyforge_project = %q{therubyrhino}
s.summary = %q{Embed the Rhino JavaScript interpreter into JRuby}
s.add_development_dependency "rake"
s.add_development_dependency "rspec"
s.add_development_dependency "jruby-openssl"
end