开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜