require 'rubygems' require 'rake' begin require 'jeweler' Jeweler::Tasks.new do |gem| gem.name = "activerecord-postgres-copy" gem.summary = %Q{This version is obsolete, please use the postgres-copy gem} gem.description = %Q{This version is obsolete, please use the postgres-copy gem} gem.email = "diogob@gmail.com" gem.homepage = "http://github.com/diogob/postgres-copy" gem.authors = ["Diogo Biazus"] gem.add_development_dependency "rspec", ">= 1.2.9" gem.add_dependency "activerecord", ">= 3.0.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 require "rspec/core/rake_task" # RSpec 2.0 RSpec::Core::RakeTask.new(:spec) do |spec| spec.pattern = 'spec/*_spec.rb' spec.rspec_opts = ["--backtrace", "--color", "--format progress", "-r ./spec/spec_helper.rb"] end task :default => :spec require 'rake/rdoctask' Rake::RDocTask.new do |rdoc| version = File.exist?('VERSION') ? File.read('VERSION') : "" rdoc.rdoc_dir = 'rdoc' rdoc.title = "activerecord-postgres-copy #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end