Sha256: 46ee3083c6158e7fed977598628c4764b8a224d82c21f5bdb1a63fa742ea383c

Contents?: true

Size: 1.09 KB

Versions: 6

Compression:

Stored size: 1.09 KB

Contents

# -*- ruby -*-

$:.unshift "lib"
require "./lib/hoe.rb"

Hoe.plugin :seattlerb
Hoe.plugin :isolate
Hoe.plugin :rdoc

Hoe.add_include_dirs "../../minitest/dev/lib"

Hoe.spec "hoe" do
  developer "Ryan Davis", "ryand-ruby@zenspider.com"

  self.group_name = "seattlerb"

  blog_categories << "Seattle.rb" << "Ruby"

  license "MIT"

  pluggable!
  require_rubygems_version ">= 1.4"

  dependency "rake", [">= 0.8", "< 13.0"] # FIX: to force it to exist pre-isolate
end

task :plugins do
  puts `find lib/hoe -name \*.rb | xargs grep -h module.Hoe::`.
    gsub(/module/, "*")
end

task :known_plugins do
  dep         = Gem::Dependency.new(/^hoe-/, Gem::Requirement.default)
  fetcher     = Gem::SpecFetcher.fetcher
  spec_tuples = fetcher.find_matching dep

  max = spec_tuples.map { |(tuple, _source)| tuple.first.size }.max

  spec_tuples.each do |(tuple, source)|
    spec = Gem::SpecFetcher.fetcher.fetch_spec(tuple, URI.parse(source))
    puts "* %-#{max}s - %s (%s)" % [spec.name, spec.summary, spec.authors.first]
  end
end

task :docs do
  cp "Hoe.pdf", "doc"
  sh "chmod ug+w doc/Hoe.pdf"
end

# vim: syntax=ruby

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hoe-3.17.2 Rakefile
hoe-3.17.1 Rakefile
hoe-3.17.0 Rakefile
hoe-3.16.2 Rakefile
hoe-3.16.1 Rakefile
hoe-3.16.0 Rakefile