Skip to content

Commit

Permalink
Get everything ready for packaging
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.jamisbuck.org/projects/switchtower-ext@3 e3b5881a-3c0d-0410-9405-fd48df27f097
  • Loading branch information
jamis committed Feb 21, 2006
1 parent f5bfac1 commit 76e8aa2
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 2 deletions.
31 changes: 31 additions & 0 deletions Rakefile
@@ -0,0 +1,31 @@
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/packagetask'
require 'rake/gempackagetask'
require 'rake/contrib/rubyforgepublisher'

require "./lib/switchtower/ext/version"

PKG_NAME = "switchtower-ext"
PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
PKG_VERSION = SwitchTower::Ext::Version::STRING + PKG_BUILD
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"

GEM_SPEC = eval(File.read("#{File.dirname(__FILE__)}/#{PKG_NAME}.gemspec"))

Rake::GemPackageTask.new(GEM_SPEC) do |p|
p.gem_spec = GEM_SPEC
p.need_tar = true
p.need_zip = true
end

desc "Build the RDoc API documentation"
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = "doc"
rdoc.title = "SwitchTower Extensions -- A collection of tasks and methods for switchtower"
rdoc.options << '--line-numbers --inline-source --main README'
rdoc.rdoc_files.include 'README'
rdoc.rdoc_files.include 'lib/**/*.rb'
rdoc.template = "jamis"
end
11 changes: 11 additions & 0 deletions lib/switchtower/ext/version.rb
@@ -0,0 +1,11 @@
module SwitchTower
module Ext
module Version #:nodoc:
MAJOR = 1
MINOR = 0
TINY = 0

STRING = [MAJOR, MINOR, TINY].join(".")
end
end
end
6 changes: 4 additions & 2 deletions switchtower-ext.gemspec
@@ -1,10 +1,12 @@
require './lib/switchtower/ext/version'

Gem::Specification.new do |s|

s.name = 'switchtower-ext'
s.version = "0.0.1"
s.version = PKG_VERSION
s.platform = Gem::Platform::RUBY
s.summary = <<-DESC.strip.gsub(/\n/, " ")
SwitchTower Extensions are a set of useful task libraries and methods that
SwitchTower Extensions is a set of useful task libraries and methods that
other developers may reference in their own recipe files.
DESC

Expand Down

0 comments on commit 76e8aa2

Please sign in to comment.