Gem :: Specification.reset期间未解决的规格: [英] Unresolved specs during Gem::Specification.reset:

查看:424
本文介绍了Gem :: Specification.reset期间未解决的规格:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


$ b

  $ guard $ b $在启动Guard时,我得到了这个输出: b WARN:在Gem :: Specification.reset期间未解决的规范:
lumberjack(> = 1.0.2)
ffi(> = 0.5.0)
WARN:清除未解析的规范。
如果这导致问题,请报告错误。

这是什么意思,我该如何解决它?



Guardfile的内容:

  guard'livereload'do 
watch(%r {。+ \。(css | js | html)$})
end
guard'sass',:input => 'css',:style => :compressed,:extension => '.min.css'


解决方案

我看到这个问题通过自行运行 RSpec 。根据我的理解,这意味着您的系统上安装了多个已列出的gem版本,RSpec不确定要使用哪一个版本。



您可以尝试:

在卸载较旧版本的gem后,警告消失。  gem cleanup lumberjack 

或者:

  gem list lumberjack 

gem uninstall lumberjack

如果您使用的是Bundler,您可以尝试 bundle exec guard (或者在我的情况下 bundle exec rspec )。


When launching Guard, I'm getting this output:

$ guard
WARN: Unresolved specs during Gem::Specification.reset:
      lumberjack (>= 1.0.2)
      ffi (>= 0.5.0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.

What does this mean, and how do I fix it?

Contents of Guardfile:

guard 'livereload' do
    watch(%r{.+\.(css|js|html)$})
end
guard 'sass', :input => 'css', :style => :compressed, :extension => '.min.css'

解决方案

I was seeing this issue by just running RSpec on its own. From what I understand, this means that you have more than one version of the listed gems installed on your system, and RSpec is unsure which one to use. After uninstalling older version of the gems, the warnings went away.

You can try:

gem cleanup lumberjack

Or:

gem list lumberjack

gem uninstall lumberjack

If you're using Bundler, you can try bundle exec guard (or in my case bundle exec rspec).

这篇关于Gem :: Specification.reset期间未解决的规格:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆