summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRyan Davis <ryand@zenspider.com>2012-04-26 13:55:06 -0800
committerRyan Davis <ryand@zenspider.com>2012-04-26 13:55:06 -0800
commit2070813906c6e5c2c7a0304ed4db77980a6ba447 (patch)
tree727c0d9fc19160575d991f05f1044456f4f02894 /lib
parentd0486d00193cd0ac5a9977f0cd2569d544d18ba5 (diff)
downloadhoe-2070813906c6e5c2c7a0304ed4db77980a6ba447.tar.gz
- Removed rubygems/deprecated and rolled my own for users on older rubygems
[git-p4: depot-paths = "//src/hoe/dev/": change = 7389]
Diffstat (limited to 'lib')
-rw-r--r--lib/hoe.rb15
1 files changed, 10 insertions, 5 deletions
diff --git a/lib/hoe.rb b/lib/hoe.rb
index ce900ec..78d123b 100644
--- a/lib/hoe.rb
+++ b/lib/hoe.rb
@@ -242,12 +242,17 @@ class Hoe
# 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