Sha256: 6084701eb05588f410890a39fe3bd831c565fd9bbea8a468a75cb937b61b3e11

Contents?: true

Size: 1.03 KB

Versions: 2

Compression:

Stored size: 1.03 KB

Contents

require 'rubygems'
require 'bundler/setup'

require 'rake'
require 'appraisal'
require 'rspec/core/rake_task'
require 'rdoc/task'

desc 'Default: run unit tests.'
task :default => [:clean, :test]

desc "Run Specs"
RSpec::Core::RakeTask.new(:spec) do |t|
end

task :test => :spec

desc 'Test the paperclip plugin under all supported Rails versions.'
task :all do |t|
  if ENV['BUNDLE_GEMFILE']
    exec('rake test')
  else
    Rake::Task["appraisal:install"].execute
    exec('rake appraisal test')
  end
end

desc "Clean up files."
task :clean do |t|
  FileUtils.rm_rf "tmp"
  Dir.glob("nilify_blanks-*.gem").each {|f| FileUtils.rm f }
  Dir.glob("spec/db/*.sqlite3").each {|f| FileUtils.rm f }
end

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nilify_blanks-1.0.2 Rakefile
nilify_blanks-1.0.1 Rakefile