lib/hoe.rb in hoe-3.5.2 vs lib/hoe.rb in hoe-3.5.3
- old
+ new
@@ -89,11 +89,11 @@
class Hoe
include Rake::DSL if defined?(Rake::DSL)
# duh
- VERSION = '3.5.2'
+ VERSION = "3.5.3"
@@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package,
:publish, :gemcutter, :signing, :test]
@bad_plugins = []
@@ -251,11 +251,11 @@
warn "NOTE: Hoe#url is deprecated, use urls. It will be removed on or after 2012-06-01."
warn "Used from #{caller.first}"
@url
end
- def url=o
+ def url=o # :nodoc:
warn "NOTE: Hoe#url= is deprecated, use urls=. It will be removed on or after 2012-06-01."
warn "Used from #{caller.first}"
@url=o
end
@@ -412,18 +412,24 @@
initialize_plugins
activate_plugin_deps
end
+ ##
+ # Run all initialize_* methods for plugins
+
def initialize_plugins
Hoe.plugins.each do |plugin|
msg = "initialize_#{plugin}"
warn msg if $DEBUG
send msg if self.respond_to? msg
end
end
+ ##
+ # Run all activate_*_deps methods for plugins
+
def activate_plugin_deps
Hoe.plugins.each do |plugin|
msg = "activate_#{plugin}_deps"
warn msg if $DEBUG
send msg if self.respond_to? msg
@@ -871,8 +877,8 @@
end
end
end
end
-def Gem.bin_wrapper name # HACK
+def Gem.bin_wrapper name # :nodoc: HACK
File.join Gem.bindir, Gem.default_exec_format % name
end unless Gem.respond_to? :bin_wrapper