hoptoad_notified gem 不会解压到供应商中

发布于 2024-08-19 07:25:05 字数 667 浏览 7 评论 0原文

我认为这应该有效。

environment.rb

config.gem "hoptoad_notifer", :version => '=2.1.2'

已安装 gem 列表:

$ gem list hoptoad_notifier

*** LOCAL GEMS ***

hoptoad_notifier (2.1.2)

rake 的输出:gems

$ rake gems
(in /rails/appdir)
 - [R] hoptoad_notifier = 2.1.2

I = Installed
F = Frozen
R = Framework (loaded before rails starts)

解包:

$ rake gems:unpack
(in /rails/appdir)
/rails/appdir (master)
$
#  that is, no result; immediate return

为什么此 gem 无法解包?应用程序启动,我可以很好地运行 rake hoptoad:test ,因此它可以从系统 gem 加载。我只想将所有内容供应商化以进行部署。

I think this should be working.

environment.rb

config.gem "hoptoad_notifer", :version => '=2.1.2'

list of installed gems:

$ gem list hoptoad_notifier

*** LOCAL GEMS ***

hoptoad_notifier (2.1.2)

Output of rake:gems

$ rake gems
(in /rails/appdir)
 - [R] hoptoad_notifier = 2.1.2

I = Installed
F = Frozen
R = Framework (loaded before rails starts)

Unpacking:

$ rake gems:unpack
(in /rails/appdir)
/rails/appdir (master)
$
#  that is, no result; immediate return

Why won't this gem unpack? The app starts up and I can run rake hoptoad:test just fine, so it's loading okay from the system gem. I just want to vendorize everything for deployment.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

静谧幽蓝 2024-08-26 07:25:05

这是一个 pre-rails 1.0 应用程序,我最近没有运行rakerails:update

我这样做了,它添加了这一行:

# boot.rb
Rails::GemDependency.add_frozen_gem_path

这告诉 Rails 检查供应商/宝石是否有冻结的宝石或其他东西。

然后我可以看到 gem 已安装并按预期解压:

$ rake gems
(in /rails/appdir)
- [I] hoptoad_notifier = 2.1.2

$ rake gems:unpack
(in /rails/appdir)
Unpacked gem: '/rails/appdir/vendor/gems/hoptoad_notifier-2.1.2'

This was a pre-rails 1.0 app and I hadn't run rake rails:update recently.

I did and it added this line:

# boot.rb
Rails::GemDependency.add_frozen_gem_path

That tells Rails to check vendor/gems for frozen gems, or something.

Then I could see the gem as installed and unpack it as expected:

$ rake gems
(in /rails/appdir)
- [I] hoptoad_notifier = 2.1.2

$ rake gems:unpack
(in /rails/appdir)
Unpacked gem: '/rails/appdir/vendor/gems/hoptoad_notifier-2.1.2'
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文