Rakefile in scaffolder-0.2.6 vs Rakefile in scaffolder-0.4.0

- old
+ new

@@ -1,56 +1,37 @@ 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 'rake' -begin - require 'jeweler' - Jeweler::Tasks.new do |gem| - gem.name = "scaffolder" - gem.summary = %Q{Scaffolder for genome sequence data} - gem.description = %Q{Organise genome sequence data into scaffolds using YAML configuration files.} - gem.email = "mail@michaelbarton.me.uk" - gem.homepage = "http://github.com/michaelbarton/scaffolder" - gem.authors = ["Michael Barton"] - gem.add_dependency "bio", ">= 0" - gem.add_development_dependency "rr", ">= 0.10.11" - gem.add_development_dependency "shoulda", ">= 0" - gem.add_development_dependency "redgreen", ">= 0" - gem.add_development_dependency "yard", ">= 0" - # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings - end - Jeweler::GemcutterTasks.new -rescue LoadError - puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler" +require 'jeweler' +Jeweler::Tasks.new do |gem| + gem.name = "scaffolder" + gem.homepage = "http://www.michaelbarton.me.uk/scaffolder/" + gem.license = "MIT" + gem.summary = %Q{Genome scaffolding for human beings.} + gem.description = %Q{Organise sequence contigs into genome scaffolds using simple human-readable YAML files.} + gem.email = "mail@michaelbarton.me.uk" + gem.authors = ["Michael Barton"] end +Jeweler::RubygemsDotOrgTasks.new require 'rake/testtask' Rake::TestTask.new(:test) do |test| test.libs << 'lib' << 'test' test.pattern = 'test/**/test_*.rb' test.verbose = true end -begin - require 'rcov/rcovtask' - Rcov::RcovTask.new do |test| - test.libs << 'test' - test.pattern = 'test/**/test_*.rb' - test.verbose = true - end -rescue LoadError - task :rcov do - abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov" - end -end +require 'cucumber/rake/task' +Cucumber::Rake::Task.new(:features) -task :test => :check_dependencies +require 'yard' +YARD::Rake::YardocTask.new task :default => :test - -begin - require 'yard' - YARD::Rake::YardocTask.new -rescue LoadError - task :yardoc do - abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard" - end -end