diff options
author | Ryan Davis <ryand@zenspider.com> | 2009-06-01 02:30:04 -0800 |
---|---|---|
committer | Ryan Davis <ryand@zenspider.com> | 2009-06-01 02:30:04 -0800 |
commit | 3c0d06fea696a6639cf75e66afe28f37fc37abf4 (patch) | |
tree | 17b2467dc52a4b2e7de294a630cc3f7802f9cadd /Rakefile | |
parent | e61fb39969dad52e1ca5ee67205991fdb76ef2cc (diff) | |
download | hoe-3c0d06fea696a6639cf75e66afe28f37fc37abf4.tar.gz |
! Added a plugin system and extracted nearly everything into separate plugins.
! Added Clean, Debug, Deps, Flay, Flog, Inline, Package, Publish, Rake, Rcov, Signing, and Test plugins
+ Filled in all the blanks on rdoc.
+ Added Hoe::spec replacing old Hoe.new spec form. Now with DSL flavors!
+ Deprecated Hoe.new spec form.
+ Refactored nearly all the spec logic down to much smaller/cleaner pieces.
+ Version number is now auto-searchable by grepping in all the files.
+ Added pluggable! to declare your package depends on rubygems 1.3.1+.
+ Added DEFAULT_CONFIG so plugins can add to it.
+ Updated templates to use new form. No clue how best to update yours. :P
[git-p4: depot-paths = "//src/hoe/dev/": change = 4987]
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 31 |
1 files changed, 12 insertions, 19 deletions
@@ -1,31 +1,24 @@ # -*- ruby -*- +$: << 'lib' + require './lib/hoe.rb' +# TODO: +# Hoe.plugin :perforce +# Hoe.plugin :minitest + Hoe.add_include_dirs("../../minitest/dev/lib") -Hoe.new("hoe", Hoe::VERSION) do |hoe| - hoe.rubyforge_name = "seattlerb" +Hoe.spec "hoe" do + developer "Ryan Davis", "ryand-ruby@zenspider.com" - hoe.developer("Ryan Davis", "ryand-ruby@zenspider.com") + self.rubyforge_name = "seattlerb" + self.testlib = :minitest - hoe.testlib = :minitest - hoe.blog_categories << "Seattle.rb" << "Ruby" -end + blog_categories << "Seattle.rb" << "Ruby" -desc "Generate a list of tasks for doco. RDOC=1 for commented output" -task :tasks do - tasks = `rake -T`.scan(/rake (\w+)\s+# (.*)/) - tasks.reject! { |t,d| t =~ /^(clobber|tasks|re(package|docs))/ } - max = tasks.map { |x,y| x.size }.max - - tasks.each do |t,d| - if ENV['RDOC'] then - puts "# %-#{max+2}s %s" % [t + "::", d] - else - puts "* %-#{max}s - %s" % [t, d] - end - end + pluggable! end # vim: syntax=Ruby |