Rakefile in timeframe-0.0.11 vs Rakefile in timeframe-0.1.0

- old
+ new

@@ -4,28 +4,23 @@ end require 'bundler' Bundler::GemHelper.install_tasks -require 'spec/rake/spectask' -Spec::Rake::SpecTask.new(:spec) do |spec| - spec.libs << 'lib' << 'spec' - spec.spec_files = FileList['spec/**/*_spec.rb'] -end +require 'rake/testtask' -Spec::Rake::SpecTask.new(:rcov) do |spec| - spec.libs << 'lib' << 'spec' - spec.pattern = 'spec/**/*_spec.rb' - spec.rcov = true +Rake::TestTask.new do |t| + t.libs.push 'lib' + t.test_files = FileList['spec/**/*spec.rb'] + t.verbose = true end -task :default => :spec -require 'rake/rdoctask' -Rake::RDocTask.new do |rdoc| - version = File.exist?('VERSION') ? File.read('VERSION') : "" +task :default => :test +require 'rdoc/task' +RDoc::Task.new do |rdoc| rdoc.rdoc_dir = 'rdoc' - rdoc.title = "timeframe #{version}" + rdoc.title = "timeframe" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end