# encoding: utf-8 require 'rubygems' require 'bundler' begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts "Run `bundle install` to install missing gems" exit e.status_code end require 'rake' 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 = "capistrano-db-rollback" gem.homepage = "http://github.com/leenasn/capistrano-db-rollback" gem.license = "MIT" gem.summary = %Q{Capistrano task for rolling back DB migrations to the previous release version} gem.description = %Q{It assumes that the schema.rb is checked in with the correct version into the repository. Reads the version from the schema.rb file and runs the db:migrate with that task} gem.email = "leena.sn@multunus.com" gem.authors = ["Leena"] # dependencies defined in Gemfile end Jeweler::RubygemsDotOrgTasks.new task :default => :test require 'rake/rdoctask' Rake::RDocTask.new do |rdoc| version = File.exist?('VERSION') ? File.read('VERSION') : "" rdoc.rdoc_dir = 'rdoc' rdoc.title = "capistrano-db-rollback #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end