has_rdoc is deprecated warning message after doing bundle update
Just finished updating my bundler and now I keep getting this messages:
NOTE: Gem::Specification#has_rdoc= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#has_rdoc= called from /Users/eumir/.rvm/gems/ruby-1.9.2-head@waftt/bundler/gems/watir-9e41fd458687/watir/watir.gemspec:43
I've googled for this eror and all it returns are pages to agile web development(looks like a tutorial but it has all the errors pasted in it...weird)
http://intertw开发者_开发技巧ingly.net/projects/AWDwR4/checkdepot-193-30/section-10.1.html
Anyway, is the only way to turn this off, going into each of my "outdated" gems' gemspecs and takign out that has_rdoc thing?
You are seeing this error because the Gemspec for Watir calls has_rdoc
, which is deprecated in the latest RubyGems API.
I'd imagine by the time has_rdoc
is removed from the API, the Watir team will have removed this call.
This warning does not affect your app or your tests, so can be safely ignored for now.
You could certainly downgrade rubygems back to a version that has not yet deprecated has_rdoc.
Rubygems is progressing super rapidly at the moment, and if you don't want to deal with more issues in other gems until the authors of the gems catch up, you might want to integrate rubygems versioning into your deployments/development provisioning strategy.
gem update --system 1.6.9 #has_rdoc is deprecated beginning in 1.7.0
(1)
1 https://github.com/thoughtafter/simple-rss/pull/1
Updating rubygems did it for me
sudo gem update --system
精彩评论