Sha256: 33b73072a92e2fd75a460b22d56bae0e3eb515ad8f96c142da2b5f4f95ad46f3

Contents?: true

Size: 1.53 KB

Versions: 7

Compression:

Stored size: 1.53 KB

Contents

require 'rubygems'
require 'rake'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name        = "activerecord-draft_records"
    gem.summary     = "Add support for draft models (incomplete models) to ActiveRecord"
    gem.email       = "divoxx@gmail.com"
    gem.homepage    = "http://github.com/divoxx/activerecord-draft_records"
    gem.authors     = ["Rodrigo Kochenburger"]
    gem.description = <<-DESC
Sometimes it's necessary to store incomplete records, without fullfilling all validations, to complete
and then validate the record. ActiveRecord::DraftRecords allows you to persist an record even if it's
invalid by tagging it as a draft.
    DESC

    gem.add_development_dependency "rspec", ">= 1.2.9"
    gem.add_development_dependency "database_cleaner", ">= 0.5.2"
  end
  Jeweler::GemcutterTasks.new
rescue LoadError
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end

require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
  spec.libs << 'lib' << 'spec'
  spec.spec_files = FileList['spec/**/*_spec.rb']
end

Spec::Rake::SpecTask.new(:rcov) do |spec|
  spec.libs << 'lib' << 'spec'
  spec.pattern = 'spec/**/*_spec.rb'
  spec.rcov = true
end

task :spec => :check_dependencies

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-draft_records #{version}"
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
activerecord-draft_records-0.5.1 Rakefile
activerecord-draft_records-0.5.0 Rakefile
activerecord-draft_records-0.4.0 Rakefile
activerecord-draft_records-0.3.0 Rakefile
activerecord-draft_records-0.2.0 Rakefile
activerecord-draft_records-0.1.1 Rakefile
activerecord-draft_records-0.1.0 Rakefile