summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorRyan Davis <ryand@zenspider.com>2010-12-07 17:25:45 -0800
committerRyan Davis <ryand@zenspider.com>2010-12-07 17:25:45 -0800
commitc16831d377cae4aed028ee8a722768efb4a9012c (patch)
tree96e1af4769a35422e7771defdc34b1f54c225dd0 /Rakefile
parent9ab5385f6a5f4a0382d8939464362b50bdb462d2 (diff)
downloadhoe-c16831d377cae4aed028ee8a722768efb4a9012c.tar.gz
+ Added known_plugins task and updated included and 3rd party plugins doco
[git-p4: depot-paths = "//src/hoe/dev/": change = 6037]
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 0611da0..aa40086 100644
--- a/Rakefile
+++ b/Rakefile
@@ -24,6 +24,19 @@ task :plugins do
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"