Sha256: e5778833e7d03b8a860862e4ad2cce0ab47f32987a28922f7b537afef139bef2
Contents?: true
Size: 1.13 KB
Versions: 2
Compression:
Stored size: 1.13 KB
Contents
require 'rubygems' require 'bundler/setup' require 'rake' require 'appraisal' require 'rspec/core/rake_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 begin require 'rdoc/task' 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 rescue LoadError puts 'RDocTask is not supported for this platform' 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.1.0 | Rakefile |
nilify_blanks-1.0.3 | Rakefile |