Sha256: 66bfd3a5b2c72d375ca1a8b50ee83605478345020f6447422c67649cf13a3772

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 KB

Contents

require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

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

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

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

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gemspec|
    gemspec.name = "nullify_blanks"
    gemspec.summary = "Nullify blank columns in ActiveRecord"
    gemspec.email = "andyw@pixeltrix.co.uk"
    gemspec.homepage = "http://github.com/pixeltrix/nullify_blanks/"
    gemspec.description = "Ruby on Rails plugin to ensure nullable databases columns are set to null rather than empty strings."
    gemspec.authors = ["Andrew White"]
  end
  Jeweler::GemcutterTasks.new
rescue LoadError
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nullify_blanks-1.0.0 Rakefile