Rakefile in timeliness-0.3.3 vs Rakefile in timeliness-0.3.4

- old
+ new

@@ -1,18 +1,13 @@ -require 'rubygems' +require 'bundler' +Bundler::GemHelper.install_tasks + require 'rake/rdoctask' require 'rspec/core/rake_task' -GEM_NAME = "timeliness" - -desc 'Default: run specs.' -task :default => :spec - desc "Run specs" -RSpec::Core::RakeTask.new do |t| - t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default. -end +RSpec::Core::RakeTask.new(:spec) desc "Generate code coverage" RSpec::Core::RakeTask.new(:coverage) do |t| t.rcov = true t.rcov_opts = ['--exclude', 'spec'] @@ -25,9 +20,7 @@ rdoc.options << '--line-numbers' << '--inline-source' rdoc.rdoc_files.include('README') rdoc.rdoc_files.include('lib/**/*.rb') end -desc "Create a gemspec file" -task :build do - `gem build #{GEM_NAME}.gemspec` -end +desc 'Default: run specs.' +task :default => :spec