Sha256: 489c6b4e4545c43b87bc1ebb8d76441ef39100eb3bb16e5545e656142a48ee7d

Contents?: true

Size: 1.41 KB

Versions: 1

Compression:

Stored size: 1.41 KB

Contents

require 'rake'
require 'rake/testtask'
require 'rake/clean'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'tools/rakehelp'
require 'fileutils'
include FileUtils

setup_tests
setup_clean ["pkg", "lib/*.bundle", "*.gem", ".config"]

setup_rdoc ['README', 'LICENSE', 'COPYING', 'lib/**/*.rb', 'doc/**/*.rdoc']

desc "Does a full compile, test run"
task :default => [:test, :package]

version="0.2.0"
name="mmmultiworks"

setup_gem(name, version) do |spec|
  spec.summary = "The Mosquito Mole Multiworks task library"
  spec.description = spec.summary
  spec.author="Matt Bauer"
  spec.add_dependency('daemons', '>= 0.3.13.0')
  spec.add_dependency('capistrano', '>= 1.1.0')
  spec.add_dependency('mongrel', '>= 0.3.13.0')
  spec.add_dependency('mongrel_cluster', '>= 0.2')
  spec.has_rdoc = false
  spec.files += Dir.glob("bin/*")
  spec.files += Dir.glob("resources/**/*")
  spec.default_executable = "mmmultiworks"
  spec.executables = ["mmmultiworks"]
end

task :install => [:test, :package] do
  sh %{sudo gem install pkg/#{name}-#{version}.gem}
end

task :uninstall => [:clean] do
  sh %{sudo gem uninstall #{name}}
end

desc "Publish the release files to RubyForge."
task :release => [ :package ] do
  `rubyforge login`

  for ext in %w( gem tgz )
    release_command = "rubyforge add_release mmmultiworks #{name} 'REL #{version}' pkg/#{name}-#{version}.#{ext}"
    puts release_command
    system(release_command)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mmmultiworks-0.2.0 Rakefile