=begin Using Jeweler for Gem Packaging... * Update the version and release version to github: $ rake version:bump:patch && rake release && rake gemcutter:release * Build and install the latest version locally: $ rake install =end require 'rake' require 'rake/testtask' #require 'rake/rdoctask' begin require 'jeweler' Jeweler::Tasks.new do |s| s.name = "uhl-cap-recipes" s.summary = %Q{Battle-tested capistrano recipes for passenger, delayed_job, and more} s.email = "crazycode@gmail.com" s.homepage = "http://github.com/crazycode/uhl-cap-recipes" s.description = "capistrano recipes for my works" s.authors = ["crazycode"] s.rubyforge_project = 'uhl-cap-recipes' s.add_dependency "capistrano", '~> 0' s.add_dependency "json", '~> 0' s.add_dependency "addressable", '~> 0' end Jeweler::GemcutterTasks.new rescue LoadError puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" end begin require 'rcov/rcovtask' Rcov::RcovTask.new do |t| t.libs << 'test' t.test_files = FileList['test/**/*_test.rb'] t.verbose = true end rescue LoadError end desc "Run all specs in spec directory" task :spec do |t| options = "--colour --format progress --loadby --reverse" files = FileList['spec/**/*_spec.rb'] system("spec #{options} #{files}") end task :default => :spec