lib/hoe.rb in hoe-3.0.3 vs lib/hoe.rb in hoe-3.0.4

- old
+ new

@@ -89,11 +89,11 @@ class Hoe include Rake::DSL if defined?(Rake::DSL) # duh - VERSION = '3.0.3' + VERSION = '3.0.4' @@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package, :publish, :gemcutter, :signing, :test] @bad_plugins = [] @@ -240,15 +240,20 @@ # Deprecated: Optional: The url(s) of the project. (can be array). # Auto-populates to a list of urls read from the beginning of # README.txt. # - attr_accessor :url + def url + 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 - require 'rubygems/deprecate' - extend Gem::Deprecate - deprecate :url, :urls, 2012, 6 - deprecate :url=, :urls=, 2012, 6 + def url=o + 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 ## # Optional: The urls of the project. This can be an array or # (preferably) a hash. Auto-populates to the urls read from the # beginning of README.txt.