lib/hoe.rb in hoe-4.2.0 vs lib/hoe.rb in hoe-4.2.2

- old
+ new

@@ -85,11 +85,11 @@ class Hoe include Rake::DSL if defined?(Rake::DSL) # duh - VERSION = "4.2.0" + VERSION = "4.2.2" @@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package, :publish, :gemcutter, :signing, :test] @bad_plugins = [] @@ -674,9 +674,11 @@ .lines .chunk { |l| l[/^(?:=+|#+)/] || "" } .map(&:last) .each_slice(2) .to_h { |k, v| + raise "No body for %p section" % [k[0].strip] \ + unless v kp = k.map { |s| s.strip.chomp(":").sub(/(?:=+|#+)\s*/, '').downcase }.join("\n") [kp, v.join.strip]