Rakefile in scaffolder-0.4.4 vs Rakefile in scaffolder-0.5.0

- old
+ new

@@ -5,34 +5,23 @@ 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.name = "scaffolder" - gem.homepage = "http://next.gs" - 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@next.gs" - gem.authors = ["Michael Barton"] - gem.test_files = Dir['test/**/*.rb'] -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 - +require 'rake/dsl_definition' +require 'rspec/core' +require 'rspec/core/rake_task' require 'cucumber/rake/task' -Cucumber::Rake::Task.new(:features) +Bundler::GemHelper.install_tasks + require 'yard' YARD::Rake::YardocTask.new -task :default => :test +RSpec::Core::RakeTask.new(:spec) do |spec| + spec.pattern = FileList['spec/**/*_spec.rb'] +end + +Cucumber::Rake::Task.new(:features) + +task :default => :spec