Sha256: 719c23f86d16fdc4cc6cb517a082ec1fdb473903356c1f90ac7a84530695ee71

Contents?: true

Size: 1.59 KB

Versions: 4

Compression:

Stored size: 1.59 KB

Contents

require 'rubygems'
require 'hoe'

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

ENV["NODOT"] = "NODOT" # Never generate those crappy rdoc diagrams

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(--op doc --main README.txt --promiscuous --accessor class_inheritable_accessor=R --inline-source --line-numbers --title) << title << %w(lib),
    :extra_rdoc_files => FileList[%w(README.txt TUTORIAL.txt TESTING.txt), "docs/*.txt"],
  }
  s.spec_extras.merge!(HoeInclude)
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
automate-it-0.9.2 Hoe.rake
automate-it-0.9.1 Hoe.rake
automate-it-0.9.0 Hoe.rake
automateit-0.80624 Hoe.rake