开发者

How can I hide or remove deprecation notices from gem 1.8.x?

开发者 https://www.devze.com 2023-03-03 21:58 出处:网络
The gem command (version 1.8.1 and probably 1.8.0) spews out a tonne of deprecation notices on every invocation.开发者_JAVA技巧 It is painful to page through a screen of warnings to look at test outpu

The gem command (version 1.8.1 and probably 1.8.0) spews out a tonne of deprecation notices on every invocation.开发者_JAVA技巧 It is painful to page through a screen of warnings to look at test output.

Is there an easy way to hide deprecation notices ? Especially the warning :

NOTE: Gem::Specification#default_executable= is deprecated with no replacement.


If you're using RVM, the following command will fix it:

rvm rubygems current

0

精彩评论

暂无评论...
验证码 换一张
取 消