Rakefile in erubi-1.10.0 vs Rakefile in erubi-1.11.0
- old
+ new
@@ -40,11 +40,11 @@
### Specs
spec = proc do |env|
env.each{|k,v| ENV[k] = v}
- sh "#{FileUtils::RUBY} test/test.rb"
+ sh "#{FileUtils::RUBY} #{'-w' if RUBY_VERSION >= '3'} test/test.rb"
env.each{|k,v| ENV.delete(k)}
end
desc "Run specs"
task "spec" do
@@ -54,14 +54,9 @@
task :default=>:spec
desc "Run specs with coverage"
task "spec_cov" do
spec.call('COVERAGE'=>'1')
-end
-
-desc "Run specs with -w, some warnings filtered"
-task "spec_w" do
- sh "#{FileUtils::RUBY} test/test_w.rb"
end
### Other
desc "Start an IRB shell using the extension"