Rakefile in roxml-3.2.2 vs Rakefile in roxml-3.3.0
- old
+ new
@@ -24,23 +24,19 @@
end
Jeweler::GemcutterTasks.new
Dir['tasks/**/*.rake'].each { |t| load t }
-task :default => [:test, :spec, 'test:load']
-task :all => [:libxml, :nokogiri, 'test:load']
+task :default => [:test, :spec]
+task :all => [:libxml, :nokogiri]
task :libxml => ['test:libxml', 'spec:libxml']
task :nokogiri => ['test:nokogiri', 'spec:nokogiri']
require 'rdoc/task'
RDoc::Task.new do |rdoc|
- if File.exist?('VERSION')
- version = File.read('VERSION')
- else
- version = ""
- end
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "roxml #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
@@ -89,14 +85,9 @@
desc "Test ROXML under the LibXML parser"
task :libxml do
$LOAD_PATH << '.'
require 'spec/support/libxml'
Rake::Task["test"].invoke
- end
-
- task :load do
- `ruby test/load_test.rb`
- puts "Load Success!" if $?.success?
end
desc "Runs tests under RCOV"
task :rcov do
system "rcov -T --no-html -x '^/' #{FileList['test/unit/*_test.rb']}"