Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 32 lines (27 sloc) 0.962 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
require "rake"
require "rake/clean"
require "spec/rake/spectask"

CLEAN.include ["*.gem", "rdoc"]
RDOC_OPTS = ['--inline-source', '--line-numbers', '--title', 'Sequel validation_helpers_block: Allows easy determination of which validation rules apply to a given column, at the expense of increased verbosity', '--main', 'Sequel::Plugins::ValidationHelpersBlock']

rdoc_task_class = begin
  require "rdoc/task"
  RDOC_OPTS.concat(['-f', 'hanna'])
  RDoc::Task
rescue LoadError
  require "rake/rdoctask"
  Rake::RDocTask
end

rdoc_task_class.new do |rdoc|
  rdoc.rdoc_dir = "rdoc"
  rdoc.options += RDOC_OPTS
  rdoc.rdoc_files.add %w"lib/sequel_validation_helpers_block.rb LICENSE"
end

desc "Run specs"
Spec::Rake::SpecTask.new("spec") do |t|
  t.spec_files = ["spec/sequel_validation_helpers_block_spec.rb"]
end
task :default=>[:spec]

desc "Package sequel_validation_helpers_block"
task :package do
  sh %{gem build sequel_validation_helpers_block.gemspec}
end
Something went wrong with that request. Please try again.