Rakefile in review-1.0.0 vs Rakefile in review-1.1.0

- old
+ new

@@ -1,33 +1,17 @@ +require 'bundler' +Bundler::GemHelper.install_tasks + require 'rubygems' -require 'rake' require 'rake/testtask' require 'rake/clean' -begin - require 'jeweler' - Jeweler::Tasks.new do |gem| - gem.name = "review" - gem.summary = %Q{ReVIEW: a easy-to-use digital publishing system} - gem.description = %Q{ReVIEW is a digital publishing system for books and ebooks. It supports InDesign, EPUB and LaTeX.} - gem.email = "kmuto@debian.org" - gem.homepage = "http://github.com/kmuto/review" - gem.authors = ["kmuto", "takahashim"] - # gem.add_development_dependency "thoughtbot-shoulda", ">= 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" -end - - task :default => [:test] Rake::TestTask.new("test") do |t| t.libs << "test" - t.pattern = "test/test_*.rb" + t.test_files = Dir.glob("test/**/test_*.rb") t.verbose = true end begin require 'rcov/rcovtask' @@ -39,14 +23,16 @@ t.verbose = true end rescue LoadError end -require 'rake/rdoctask' -Rake::RDocTask.new do |rdoc| - version = File.exist?('VERSION') ? File.read('VERSION') : "" - - rdoc.rdoc_dir = 'rdoc' - rdoc.title = "review #{version}" - rdoc.rdoc_files.include('README*') - rdoc.rdoc_files.include('lib/**/*.rb') +begin + require 'rdoc/task' + Rake::RDocTask.new do |rdoc| + version = File.exist?('VERSION') ? File.read('VERSION') : "" + rdoc.rdoc_dir = 'rdoc' + rdoc.title = "review #{version}" + rdoc.rdoc_files.include('README*') + rdoc.rdoc_files.include('lib/**/*.rb') + end +rescue LoadError end