require 'rubygems' require 'rake' require 'rake/testtask' require 'rake/rdoctask' begin require 'jeweler' Jeweler::Tasks.new do |g| g.name = 'cache_flow' g.summary = %(Easily cache ActiveRecord's to_xml and to_json outputs) g.description = %(Easily cache ActiveRecord's to_xml and to_json outputs) g.email = 'steve@laserlemon.com' g.homepage = 'http://github.com/laserlemon/cache_flow' g.authors = %w(laserlemon) g.add_development_dependency 'thoughtbot-shoulda' end rescue LoadError puts 'Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com' end Rake::TestTask.new do |t| t.libs = %w(test) t.pattern = 'test/**/*_test.rb' end task :default => :test Rake::RDocTask.new do |r| version = File.exist?('VERSION') ? File.read('VERSION') : nil r.rdoc_dir = 'rdoc' r.title = ['cache_flow', version].compact.join(' ') r.rdoc_files.include('README*') r.rdoc_files.include('lib/**/*.rb') end