[英]could not find gem spree-stock-manager, source does not contain any versions
I've been searching for a solution to this problem but been unable to find it. 我一直在寻找这个问题的解决方案,但一直无法找到它。
I'm trying to add spree-stock-manager to my vanilla spree test store (1.2.0). 我正在尝试将spree-stock-manager添加到我的vanilla spree测试商店(1.2.0)。
When I run 'bundle install' i get 当我运行'捆绑安装'时,我得到了
Could not find gem 'spree-stock-manager (>= 0) ruby' in git://github.com/olivierbuffon/spree-stock-manager.git (at master). Source does not contain any versions of 'spree-stock-manager (>= 0) ruby'
I tried downloading and installing it as a local gem into vendor/gems and also added a specific version to my Gemfile (suggestion from Stackoverflow). 我尝试将其作为本地gem下载并安装到vendor / gems中,并在我的Gemfile中添加了一个特定版本(来自Stackoverflow的建议)。 Same result only said (= 1.1.0) instead of (>= 0).
相同的结果只说(= 1.1.0)而不是(> = 0)。
I looked into the .gemspec for spree_stock_manager and it said 我查看了spree_stock_manager的.gemspec,它说
s.add_dependency 'spree_core', '~> 1.1.0'
so that should include spree_core 1.2.0, right? 所以应该包括spree_core 1.2.0,对吗?
Other info: Mac OSX, rvm, rails 3.2.9 其他信息:Mac OSX,rvm,rails 3.2.9
Anyone knows why this happens? 谁知道为什么会这样?
Thanks in advance! 提前致谢!
s.add_dependency 'spree_core', '~> 1.1.0'
This indicates that it requires any version of spree_core from 1.1.0 up to, but NOT including 1.2.0. 这表明它需要从1.1.0到最高版本的spree_core,但不包括1.2.0。
I would be weary of using this gem for a couple reasons. 出于某些原因,我会厌倦使用这个宝石。 First, there are no tests associated with it, which tells me the author doesn't care enough about the code to take the time to document the expected behavior.
首先,没有与之相关的测试,这告诉我作者并不关心代码花时间来记录预期的行为。 It also won't be easy for others to contribute bug fixes or enhancements without tests.
如果没有测试,其他人也不容易提供错误修复或增强功能。 Second, the gem isn't registered at rubygems.org.
其次,gem未在rubygems.org注册。 While not required, this is the standard gem repo and tells me that the author had no intention of actually releasing it publicly.
虽然不是必需的,但这是标准的宝石回购,并告诉我作者无意公开发布它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.