-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathRakefile
45 lines (38 loc) · 1.61 KB
/
Rakefile
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
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
gem 'jeweler', '~> 1.2.0'
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "capistrano-extensions"
gem.summary = %q(A base set of Capistrano extensions-- aids with the file_column plugin, the GemInstaller gem, multiple deployable environments, logfile helpers, and database/asset synchronization from production to local environment)
gem.authors = ["John Trupiano"]
gem.email = "jtrupiano@gmail.com"
gem.homepage = "http://github.com/jtrupiano/capistrano-extensions"
gem.description = %q(A base set of Capistrano extensions-- aids with the file_column plugin, the GemInstaller gem, multiple deployable environments, logfile helpers, and database/asset synchronization from production to local environment)
gem.rubyforge_project = "johntrupiano"
gem.add_dependency "capistrano", "~> 2.5.5"
gem.add_dependency "geminstaller", "~> 0.5.1"
end
# preprare for
Jeweler::RubyforgeTasks.new do |rubyforge|
rubyforge.remote_doc_path = "capistrano-extensions"
rubyforge.doc_task = "rdoc"
end
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the capistrano-extensions plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
desc 'Generate documentation'
Rake::RDocTask.new do |rdoc|
config = YAML.load(File.read('VERSION.yml'))
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "capistrano-extensions #{config[:major]}.#{config[:minor]}.#{config[:patch]}"
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end