lib/hoe.rb in hoe-3.6.0 vs lib/hoe.rb in hoe-3.6.1
- old
+ new
@@ -89,11 +89,11 @@
class Hoe
include Rake::DSL if defined?(Rake::DSL)
# duh
- VERSION = "3.6.0"
+ VERSION = "3.6.1"
@@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package,
:publish, :gemcutter, :signing, :test]
@bad_plugins = []
@@ -553,10 +553,18 @@
s.extra_rdoc_files += s.files.grep(/\.(txt|rdoc|md)$/)
s.extra_rdoc_files.reject! { |f| f =~ %r%^(test|spec|vendor|template|data|tmp)/% }
s.extra_rdoc_files += @extra_rdoc_files
end
+ check_for_version
+
+ spec.licenses = licenses unless licenses.empty?
+
+ run_spec_extras
+ end
+
+ def check_for_version # :nodoc:
unless self.version then
version = nil
version_re = /VERSION += +([\"\'])([\d][\w\.]+)\1/
spec.files.each do |file|
@@ -572,14 +580,14 @@
warn "** Add 'VERSION = \"x.y.z\"' to your code,"
warn " add a version to your hoe spec,"
warn " or fix your Manifest.txt"
end
end
+ end
- spec.licenses = licenses unless licenses.empty?
-
+ def run_spec_extras # :nodoc:
# Do any extra stuff the user wants
- spec_extras.each do |msg, val|
+ self.spec_extras.each do |msg, val|
case val
when Proc
val.call spec.send(msg)
else
spec.send "#{msg}=", val