Sha256: 5b934e91e7de8d4e6812d1d8b559f51174e1c0afce9f3c8bf520abe61b5e745a

Contents?: true

Size: 1.49 KB

Versions: 2

Compression:

Stored size: 1.49 KB

Contents

require 'rubygems'
require 'hoe'

$LOAD_PATH.unshift('lib')
require 'automateit'
@interpreter = AutomateIt.new

HoeInclude = {
  :executables => Dir['bin/*'].reject{|t|t.match(/~/)}.map{|t|File.basename(t)},
  :files => (%w(add2path.sh gpl.txt CHANGES.txt Hoe.rake Manifest.txt Rakefile README.txt TESTING.txt TODO.txt TUTORIAL.txt) + FileList["{bin,examples,docs,helpers,lib,misc,spec}/**/*"]).to_a.reject{|t| File.directory?(t)},
  :test_files => FileList["{spec}/**/*"].to_a,
}

desc "Create manifest"
task :manifest do
  # Diff: rake -f Hoe.rake check_manifest
  items = Set.new(HoeInclude[:files])
  File.open("Manifest.txt", "w+"){|h| h.write(items.to_a.sort.join("\n")+"\n")}
end

Hoe.new("AutomateIt", AutomateIt::VERSION.to_s) do |s|
  slogan = "AutomateIt is an open source tool for automating the setup and maintenance of servers, applications and their dependencies."
  title = "AutomateIt: Open source server automation"
  s.author = "Igal Koshevoy"
  s.changes = s.paragraphs_of('CHANGES.txt', 0).join("\n")
  s.description = slogan
  s.email = "igal@pragmaticraft.com"
  s.extra_deps = [["open4", ">= 0.9"]]
  s.name = "automateit"
  s.summary = slogan
  s.url = "http://automateit.org/"
  s.spec_extras = {
    :platform => Gem::Platform::RUBY,
    :rdoc_options => %w(--main README.txt --promiscuous --accessor class_inheritable_accessor=R --title) << title << %w(lib docs),
    :extra_rdoc_files => FileList[%w(README.txt TUTORIAL.txt TESTING.txt), "docs/*.txt"],
  }
  s.spec_extras.merge!(HoeInclude)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
automateit-0.71230 Hoe.rake
automateit-0.80116 Hoe.rake