Rakefile in bio-gff3-0.8.7 vs Rakefile in bio-gff3-0.9.0

- old
+ new

@@ -1,14 +1,14 @@ require 'rubygems' -# require 'bundler' -# begin -# Bundler.setup(:default, :development) -# rescue Bundler::BundlerError => e -# $stderr.puts e.message -# $stderr.puts "Run `bundle install` to install missing gems" -# exit e.status_code -# end +require 'bundler' +begin + Bundler.setup(:default, :development) +rescue Bundler::BundlerError => e + $stderr.puts e.message + $stderr.puts "Run `bundle install` to install missing gems" + exit e.status_code +end require 'rake' require 'jeweler' Jeweler::Tasks.new do |gem| # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options @@ -31,11 +31,12 @@ Jeweler::RubygemsDotOrgTasks.new require 'rake/testtask' Rake::TestTask.new(:test) do |test| test.libs << 'lib' << 'test' - test.pattern = 'test/**/test_*.rb' + # test.pattern = 'test/**/test_*.rb' # breaks in 1.9.3 + test.test_files = Dir.glob("test/**/test_*.rb") test.verbose = true Kernel.system('rspec spec/*.rb') end #require 'spec/rake/spectask' @@ -45,23 +46,23 @@ # t.warning = true # t.rcov = true #end -require 'rcov/rcovtask' -Rcov::RcovTask.new do |test| - test.libs << 'test' - test.pattern = 'test/**/test_*.rb' - test.verbose = true -end +# require 'rcov/rcovtask' +# Rcov::RcovTask.new do |test| +# test.libs << 'test' +# test.pattern = 'test/**/test_*.rb' +# test.verbose = true +# end task :default => :test -require 'rake/rdoctask' -Rake::RDocTask.new do |rdoc| - version = File.exist?('VERSION') ? File.read('VERSION') : "" +# require 'rake/rdoctask' +# Rake::RDocTask.new do |rdoc| +# version = File.exist?('VERSION') ? File.read('VERSION') : "" - rdoc.rdoc_dir = 'rdoc' - rdoc.title = "bio-gff3 #{version}" - rdoc.rdoc_files.include('README*') - rdoc.rdoc_files.include('lib/**/*.rb') -end +# rdoc.rdoc_dir = 'rdoc' +# rdoc.title = "bio-gff3 #{version}" +# rdoc.rdoc_files.include('README*') +# rdoc.rdoc_files.include('lib/**/*.rb') +# end