Permalink
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (35 sloc) 1.26 KB
require 'rubygems'
require 'rake/gempackagetask'
require 'rake/testtask'
spec = Gem::Specification.new do |s|
s.name = 'capistrano_rsync_with_remote_cache'
s.version = '2.4.0'
s.has_rdoc = true
s.extra_rdoc_files = %w(README.rdoc)
s.rdoc_options = %w(--main README.rdoc)
s.summary = "A deployment strategy for Capistrano 2.0 which combines rsync with a remote cache, allowing fast deployments from SCM servers behind firewalls."
s.authors = ['Patrick Reagan', 'Mark Cornick']
s.email = 'patrick.reagan@viget.com'
s.homepage = 'http://www.viget.com/extend/'
s.files = %w(README.rdoc Rakefile) + Dir.glob("{lib,test}/**/*")
s.add_dependency('capistrano', '>=2.1.0')
s.add_runtime_dependency('rake')
s.add_runtime_dependency('mocha')
s.add_runtime_dependency('shoulda')
s.add_runtime_dependency('jnunemaker-matchy')
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
desc "Generate gemspec"
task :gemspec do
File.open("capistrano_rsync_with_remote_cache.gemspec", "w") do |file|
file.write(spec.to_ruby)
end
end
Rake::TestTask.new do |t|
t.libs << 'test'
t.test_files = FileList["test/**/*_test.rb"]
t.verbose = true
end
task :default => :test