After gem update --system
, when I do something related to rubygems, I receive this message:
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /usr/lib/ruby/gems/1.8/specifications/rubygems-update-1.7.2.gemspec:11.
How can I avoid it? I've tried to remove rubygems and reinstall, but that didn't fix it.
Regenerating gem specifications worked for me:
sudo gem pristine --all --no-extensions
See: https://github.com/rubygems/rubygems/blob/master/History.txt
You can also downgrade your version of rubygems:
sudo gem update --system 1.7.1
You probably need to regenerate your gem specifications.
http://blog.segment7.net/2011/05/05/rubygems-1-8-1
Look where your rubygems are installed:
Find the
deprecate.rb
file there, and make theself.skip
class method always return true.or If you're using RVM, the following command will fix it: