Sha256: 6d982ded6c61fc2678f67dc01591664dd3cff2d1b3953ff46695069a4827daa1

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

require 'rubygems'
require 'echoe'
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

desc 'Default: run unit tests.'
task :default => :test

desc 'Test the has_draft plugin.'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
end

desc 'Generate documentation for the has_draft plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'HasDraft'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README')
  rdoc.rdoc_files.include('lib/**/*.rb')
end


Echoe.new('has_draft', '0.1.1') do |p|
  p.description    = "Allows for your ActiveRecord models to have drafts which are stored in a separate duplicate table."
  p.url            = "http://github.com/railsgarden/has_draft"
  p.author         = "Ben Hughes"
  p.email          = "ben@railsgarden.com"
  p.ignore_pattern = ["tmp/*", "script/*"]
  p.development_dependencies = []
end

Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
railsgarden-has_draft-0.1.1 Rakefile