Skip to content

Commit

Permalink
Finishing porting the gemspec/rakefile to Jeweler.
Browse files Browse the repository at this point in the history
  • Loading branch information
leehambley committed Nov 3, 2009
1 parent 1c7acac commit 5e39c56
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 132 deletions.
104 changes: 0 additions & 104 deletions Manifest

This file was deleted.

50 changes: 24 additions & 26 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,35 +1,33 @@
require "./lib/capistrano/version"

begin
require 'echoe'
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.version
gem.name = "capistrano"
gem.summary = %Q{Capistrano – Welcome to easy deployment with Ruby over SSH}
gem.description = %Q{Capistrano is a utility and framework for executing commands in parallel on multiple remote machines, via SSH.}
gem.homepage = "http:https://github.com/capistrano/capistrano"
gem.email = [ "[email protected]", "[email protected]" ]
gem.authors = [ "Jamis Buck", "Lee Hambley" ]
gem.add_dependency "net-ssh", ">=2.0.14"
gem.add_dependency "net-sftp", ">=2.0.0"
gem.add_dependency "net-scp", ">=1.0.0"
gem.add_dependency "net-ssh-gateway", ">=1.0.0"
gem.add_dependency "highline"
gem.add_development_dependency "mocha", ">= 0"
end
rescue LoadError
abort "You'll need to have `echoe' installed to use Capistrano's Rakefile"
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end

version = Capistrano::Version::STRING.dup
if ENV['SNAPSHOT'].to_i == 1
version << "." << Time.now.utc.strftime("%Y%m%d%H%M%S")
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/*_test.rb'
test.verbose = true
end

Echoe.new('capistrano', version) do |p|
p.include_gemspec = true
p.changelog = "CHANGELOG.rdoc"
task :test => :check_dependencies
task :default => :test

p.author = ["Jamis Buck", "Lee Hambley"]
p.email = ["[email protected]", "[email protected]"]

p.summary = <<-DESC.strip.gsub(/\n\s+/, " ")
Capistrano is a utility and framework for executing commands in parallel
on multiple remote machines, via SSH.
DESC

p.url = "http:https://www.capify.org"
p.need_zip = true
p.rdoc_pattern = /^(lib|README.rdoc|CHANGELOG.rdoc)/

p.dependencies = ["net-ssh >=2.0.14",
"net-sftp >=2.0.0",
"net-scp >=1.0.0",
"net-ssh-gateway >=1.0.0",
"highline"]
end
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.5.10
2 changes: 1 addition & 1 deletion lib/capistrano/task_definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ def continue_on_error?
@on_error == :continue
end
end
end
end
2 changes: 1 addition & 1 deletion lib/capistrano/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Capistrano
class Version < Net::SSH::Version
MAJOR = 2
MINOR = 5
TINY = 9
TINY = 10

# The current version, as a Version instance
CURRENT = new(MAJOR, MINOR, TINY)
Expand Down

0 comments on commit 5e39c56

Please sign in to comment.