gpt4 book ai didi

ruby-on-rails - 尝试使用 Rails 3 将 gem 出售给打包器,但 Gem 没有 Gemspec

转载 作者:行者123 更新时间:2023-12-04 10:44:28 26 4
gpt4 key购买 nike

遵循这些简单的步骤:

gem unpack spree_easy_contact -v 1.0.2 --target vendor/gems

Unpacked gem: '../vendor/gems/spree_easy_contact-1.0.2'

然后在我的 Gemfile 中添加这一行:
gem "spree_easy_contact", :path => "vendor/gems/spree_easy_contact-1.0.2"

但是当我运行 bundle install 时它失败了.
Could not find gem 'spree_easy_contact (>= 0, runtime)' in source at vendor/gems/spree_easy_contact-1.0.2.
Source does not contain any versions of 'spree_easy_contact (>= 0, runtime)'

我相信这是因为 gem 中没有 gemspec 文件。有没有办法为它构建一个?

有人知道解决这个问题的方法吗?

最佳答案

我忘了把这个版本留在我的 Gem 上! super 重要:

gem "spree_easy_contact", '1.0.2', :path => "#{File.expand_path(__FILE__)}/../vendor/gems/spree_easy_contact-1.0.2"

也很奇怪..这个 Gem 也需要蜜 jar 验证码,所以我不得不将它包含在我的 Gemfile 中。一切都很好。

关于ruby-on-rails - 尝试使用 Rails 3 将 gem 出售给打包器,但 Gem 没有 Gemspec,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4971074/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com