blob: 917f07a3e582a3bf8dedd9c71a917303c7774865 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# -*- ruby -*-
require './lib/hoe.rb'
Hoe.plugin :seattlerb
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'
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 u+w doc/Hoe.pdf"
end
end
# vim: syntax=ruby
|