Sha256: f1923204111d17afcd1d63ce8fb2c55a36b14b8463bc9e7775307a84d39943c9

Contents?: true

Size: 1.04 KB

Versions: 13

Compression:

Stored size: 1.04 KB

Contents

# -*- ruby -*-

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

Hoe.plugin :seattlerb
Hoe.plugin :isolate

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

  self.rubyforge_name = "seattlerb"

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

  pluggable!
  require_rubygems_version '>= 1.4'

  dependency "rake", "~> 0.8" # 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

[:redocs, :docs].each do |t|
  task t do
    cp "Hoe.pdf", "doc"
    sh "chmod ug+w doc/Hoe.pdf"
  end
end

# vim: syntax=ruby

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
hoe-3.0.8 Rakefile
hoe-3.0.7 Rakefile
hoe-3.0.6 Rakefile
hoe-3.0.5 Rakefile
hoe-3.0.4 Rakefile
hoe-3.0.3 Rakefile
hoe-3.0.2 Rakefile
hoe-3.0.1 Rakefile
hoe-3.0.0 Rakefile
hoe-2.16.1 Rakefile
hoe-2.16.0 Rakefile
hoe-2.15.0 Rakefile
hoe-2.14.0 Rakefile