当使用的最高反射率和最高反射率栏插件和交换宝石的版本替代,是否有额外的东西我必须要改变在spec_helper.rb或什么东西让的规格,在我看到的应用程序的改变?

我不能再把我的前成功运行了删除后的插件和安装的宝石(1.1.8).

更具体地说,这是我做了什么:

  1. 删除以前安装的最高反射率和最高反射率栏插件从供应商dir
  2. sudo安装的两个最高反射率和最高反射率-轨宝石(1.1.8的最新本文撰写)

时运行的脚本/autospec,我得到这个消息:

/Library/Ruby/Site/1.8/把.rb:578: report_activate_error': RubyGem version error: hoe(1.5.0 not >= 1.7.0) (Gem::LoadError) from /Library/Ruby/Site/1.8/rubygems.rb:134:in激活' 从/Library/Ruby/Site/1.8/把.rb:158: activate' from /Library/Ruby/Site/1.8/rubygems.rb:157:in每个' 从/Library/Ruby/Site/1.8/把.rb:157: activate' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in需要' 从/Library/Ruby/Gems/1.8/gems/activesupport-2.1.0,包括/lib/active_support/依赖性。rb:509: require' from /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:innew_constants_in' 从/Library/Ruby/Gems/1.8/gems/activesupport-2.1.0,包括/lib/active_support/依赖性。rb:509: require' from /Volumes/tangoflash/code/tangoflash/spec/spec_helper.rb:5 from spec/helpers/sessions_helper_spec.rb:1:in需要' 从规范/助手/sessions_helper_spec.rb:1

当尝试运行一个单一的最高反射率如通过件,我获得:

/Library/Ruby/Site/1.8/把.rb:578: report_activate_error': RubyGem version error: hoe(1.5.0 not >= 1.7.0) (Gem::LoadError) from /Library/Ruby/Site/1.8/rubygems.rb:134:in激活从/Library/Ruby/Site/1.8/把.rb:158: activate' from /Library/Ruby/Site/1.8/rubygems.rb:157:in每个'从/Library/Ruby/Site/1.8/把.rb:157: activate' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in需要'从用户/allanlibunao/Library/应用程序支助/件/捆/最高反射率.tmbundle/支持/lib/规范/伴侣。rb:14/tmp/temp_textmate.KQTYKh:3:`需要'从/tmp/temp_textmate.KQTYKh:3

任何帮助将是真棒。

有帮助吗?

解决方案

从你的错误信息,它看起来像是你没有一个新版本的 hoe 宝石的安装。尝试做一个 gem install hoe --version '> 1.7.0 看看是否有帮助。这可以当你安装了 rspecrspec-rails 宝石,你没有得到依赖以及可能还有其他的依赖,如果坐失踪。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top