diff options
author | Ryan Davis <ryand@zenspider.com> | 2012-04-26 13:55:06 -0800 |
---|---|---|
committer | Ryan Davis <ryand@zenspider.com> | 2012-04-26 13:55:06 -0800 |
commit | 2070813906c6e5c2c7a0304ed4db77980a6ba447 (patch) | |
tree | 727c0d9fc19160575d991f05f1044456f4f02894 /lib | |
parent | d0486d00193cd0ac5a9977f0cd2569d544d18ba5 (diff) | |
download | hoe-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.rb | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -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 |