Sha256: cc538319372bf5167ed851929bc24be712b6b2259eae7eb5c073835480e5ad20

Contents?: true

Size: 1.47 KB

Versions: 1

Compression:

Stored size: 1.47 KB

Contents

require 'rubygems'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'rake/contrib/sshpublisher'

task :default => :test

task :test do
  require File.dirname(__FILE__) + '/test/all_tests.rb'
end

desc 'Generate RDoc'
Rake::RDocTask.new do |task|
  task.main = 'README'
  task.title = 'Validatable'
  task.rdoc_dir = 'doc'
  task.options << "--line-numbers" << "--inline-source"
  task.rdoc_files.include('README', 'lib/**/*.rb')
  %x[erb README_TEMPLATE > README] if File.exists?('README_TEMPLATE')
end

desc "Upload RDoc to RubyForge"
task :publish_rdoc => [:rdoc] do
  Rake::SshDirPublisher.new("jaycfields@rubyforge.org", "/var/www/gforge-projects/validatable", "doc").upload
end

Gem::manage_gems

specification = Gem::Specification.new do |s|
	s.name   = "validatable"
  s.summary = "Validatable is a library for adding validations."
	s.version = "1.5.2"
	s.author = 'Jay Fields'
	s.description = "Validatable is a library for adding validations."
	s.email = 'validatable-developer@rubyforge.org'
  s.homepage = 'http://validatable.rubyforge.org'
  s.rubyforge_project = 'validatable'

  s.has_rdoc = true
  s.extra_rdoc_files = ['README']
  s.rdoc_options << '--title' << 'SQL DSL' << '--main' << 'README' << '--line-numbers'

  s.autorequire = 'validatable'
  s.files = FileList['{lib,test}/**/*.rb', '[A-Z]*$', 'rakefile.rb'].to_a
	s.test_file = "test/all_tests.rb"
end

Rake::GemPackageTask.new(specification) do |package|
  package.need_zip = false
  package.need_tar = false
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
validatable-1.5.2 rakefile.rb