Skip to content
Browse files

Use echoe to manage the Rakefile

  • Loading branch information...
1 parent 1cb79a2 commit 93153ef7ed49ace49303cc0a90ca07f60cc991fc @jamis jamis committed Jun 14, 2008
Showing with 37 additions and 61 deletions.
  1. +9 −12 ChangeLog → CHANGELOG.rdoc
  2. +9 −0 Manifest
  3. +19 −26 Rakefile
  4. +0 −23 capistrano-ext.gemspec
View
21 ChangeLog → CHANGELOG.rdoc
@@ -1,33 +1,30 @@
-*unreleased*
-
-* Don't clobber pre-existing stage definitions on multistage:prepare [Jamis Buck]
+== unreleased
+* Don't clobber pre-existing stage definitions on
+ multistage:prepare [Jamis Buck]
* Made multistage module autodetect stages. [Jamis Buck]
-*1.2.0* (July 6, 2007)
+== 1.2.0 (July 6, 2007)
* Added multistage as a packaged staging option. [Jamis Buck]
-*1.1.1* (May 12, 2007)
+== 1.1.1 (May 12, 2007)
* Tweak to work with Capistrano 2 [Jamis Buck]
-*1.1.0* (September 14, 2006)
+== 1.1.0 (September 14, 2006)
* Add uptime task [Jamis Buck]
-
* Fix padding on long machine names [Michael Schoen]
-
* Fix matching of machine names [Michael Schoen]
-
* Fix matching of load averages [Michael Schoen]
-*1.0.1* (March 6, 2006)
+== 1.0.1 (March 6, 2006)
* Rename capistrano-ext
-
-* Put request monitor script in user's home directory, instead of /tmp, to accomodate multiple users
+* Put request monitor script in user's home directory, instead of /tmp,
+ to accomodate multiple users
View
9 Manifest
@@ -0,0 +1,9 @@
+CHANGELOG.rdoc
+lib/capistrano/ext/assets/request-counter.rb
+lib/capistrano/ext/monitor.rb
+lib/capistrano/ext/multistage.rb
+lib/capistrano/ext/version.rb
+MIT-LICENSE
+README
+setup.rb
+Manifest
View
45 Rakefile
@@ -1,32 +1,25 @@
-require 'rake'
-require 'rake/testtask'
-require 'rake/rdoctask'
-require 'rake/packagetask'
-require 'rake/gempackagetask'
-require 'rake/contrib/rubyforgepublisher'
+begin
+ require 'echoe'
+rescue LoadError
+ abort "You'll need to have `echoe' installed to use capistrano-ext's Rakefile"
+end
require "./lib/capistrano/ext/version"
-PKG_NAME = "capistrano-ext"
-PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
-PKG_VERSION = Capistrano::Ext::Version::STRING + PKG_BUILD
-PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
+version = Capistrano::Ext::Version::STRING.dup
+if ENV['SNAPSHOT'].to_i == 1
+ version << "." << Time.now.utc.strftime("%Y%m%d%H%M%S")
+end
-GEM_SPEC = eval(File.read("#{File.dirname(__FILE__)}/#{PKG_NAME}.gemspec"))
+Echoe.new('capistrano-ext', version) do |p|
+ p.changelog = "CHANGELOG.rdoc"
-Rake::GemPackageTask.new(GEM_SPEC) do |p|
- p.gem_spec = GEM_SPEC
- p.need_tar = true
- p.need_zip = true
- p.package_files.include 'README', 'MIT-LICENSE', 'setup.rb', 'ChangeLog'
-end
+ p.author = "Jamis Buck"
+ p.email = "jamis@jamisbuck.org"
+ p.summary = "Useful task libraries and methods for Capistrano"
+ p.url = "http://www.capify.org"
-desc "Build the RDoc API documentation"
-Rake::RDocTask.new do |rdoc|
- rdoc.rdoc_dir = "doc"
- rdoc.title = "Capistrano Extensions -- A collection of tasks and methods for capistrano"
- rdoc.options << '--line-numbers --inline-source --main README'
- rdoc.rdoc_files.include 'README'
- rdoc.rdoc_files.include 'lib/**/*.rb'
- rdoc.template = "jamis"
-end
+ p.need_zip = true
+
+ p.dependencies = ["capistrano >=1.0.0"]
+end
View
23 capistrano-ext.gemspec
@@ -1,23 +0,0 @@
-require './lib/capistrano/ext/version'
-
-Gem::Specification.new do |s|
-
- s.name = 'capistrano-ext'
- s.version = PKG_VERSION
- s.platform = Gem::Platform::RUBY
- s.summary = <<-DESC.strip.gsub(/\n/, " ")
- Capistrano Extensions is a set of useful task libraries and methods that
- other developers may reference in their own recipe files.
- DESC
-
- s.files = Dir.glob("lib/**/*")
- s.files << 'ChangeLog' << 'README' << 'MIT-LICENSE'
- s.require_path = 'lib'
-
- s.add_dependency 'capistrano', ">= 1.0.0"
-
- s.author = "Jamis Buck"
- s.email = "jamis@37signals.com"
- s.homepage = "http://www.capify.com"
-
-end

0 comments on commit 93153ef

Please sign in to comment.
Something went wrong with that request. Please try again.