Rakefile in roo-1.13.2 vs Rakefile in roo-2.0.0beta1

- old
+ new

@@ -1,23 +1,23 @@ -require 'jeweler' - -Jeweler::Tasks.new do |gem| - # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options - gem.name = "roo" - gem.summary = "Roo can access the contents of various spreadsheet files." - gem.description = "Roo can access the contents of various spreadsheet files. It can handle\n* OpenOffice\n* Excel\n* Google spreadsheets\n* Excelx\n* LibreOffice\n* CSV" - gem.email = "ruby.ruby.ruby.roo@gmail.com" - gem.homepage = "http://github.com/Empact/roo" - gem.authors = ['Thomas Preymesser', 'Hugh McGowan', 'Ben Woosley'] - - gem.license = 'MIT' - gem.required_ruby_version = '>= 1.9.0' - - gem.test_files = FileList["{spec,test}/**/*.*"] -end - -require 'rake/testtask' -Rake::TestTask.new do |t| - t.libs << "test" - t.test_files = FileList['test/test*.rb'] - t.verbose = true -end +require 'bundler/gem_tasks' + +require 'rake/testtask' +require 'rspec/core/rake_task' +require 'coveralls/rake/task' + +# Test unit +Rake::TestTask.new do |t| + t.libs << 'test' + t.test_files = FileList['test/test*.rb'] + t.verbose = true +end + +# RSpec +RSpec::Core::RakeTask.new(:spec) + +# Coveralls +Coveralls::RakeTask.new + +default_task = [:test, :spec] +default_task << 'coveralls:push' if ENV['TRAVIS'] + +task default: default_task