简体   繁体   English

找不到gem spree-stock-manager,source不包含任何版本

[英]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.

相关问题 Bundler找不到与宝石“ rails”兼容的版本:大礼包 - Bundler could not find compatible versions for gem “rails”: for spree 找不到与宝石“ spree_core”兼容的版本 - Could not find compatible versions for gem “spree_core” 在Rails 3的本地gem(冻结宝石)的“捆绑安装”中,不断获取“Source不包含任何版本的......”? - In Rails 3's “bundle install” of local gem (frozen gem), keep getting “Source does not contain any versions of …”? Bundler找不到与宝石spree_core兼容的版本(Spree Ruby on Rails) - Bundler could not find compatible versions for gem spree_core (Spree Ruby on Rails) rails错误Bundler找不到与宝石宝石“ spree_backend”兼容的版本 - rails error Bundler could not find compatible versions for gem gem “spree_backend” 使用BitPay和Spree Commerce时,Bundler找不到与宝石“铁路”兼容的版本 - Bundler could not find compatible versions for gem “railties” when using BitPay and Spree Commerce Spree Commerce安装错误,Bundler找不到gem“rails”的兼容版本 - Spree Commerce installation error, Bundler could not find compatible versions for gem “rails” 找不到带有狂欢1.1.1的宝石“狂欢-paypal-express” - Could not find gem 'spree-paypal-express' with spree 1.1.1 Spree 安装错误:找不到 gem 'spree_skrill (>= 0) ruby​​' - Spree Install Error: Could not find gem 'spree_skrill (>= 0) ruby' 捆绑安装错误:源不包含任何版本 - Bundle install error: Source does not contain any versions of
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM