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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
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.6.7"
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' << 'Validatable' << '--main' << 'README' << '--line-numbers'
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
|