如何避免RubyGems的废弃消息?

前端之家收集整理的这篇文章主要介绍了如何避免RubyGems的废弃消息?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
宝石更新 – 系统后,当我做一些有关 rubygems的事情,我收到这个消息:

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.

我该如何避免呢?我已经尝试删除rubygems并重新安装,但没有修复它.

解决方法

您可能需要重新生成您的宝石规格.

After installing RubyGems 1.8.1 you will see deprecations when loading your exsting gems. Run gem pristine –all –no-extensions to regenerate your gem specifications safely.

http://blog.segment7.net/2011/05/05/rubygems-1-8-1

原文链接:https://www.f2er.com/ruby/271830.html

猜你在找的Ruby相关文章