hoptoad_notified gem 不会解压到供应商中
我认为这应该有效。
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个 pre-rails 1.0 应用程序,我最近没有运行
rakerails:update
。我这样做了,它添加了这一行:
这告诉 Rails 检查供应商/宝石是否有冻结的宝石或其他东西。
然后我可以看到 gem 已安装并按预期解压:
This was a pre-rails 1.0 app and I hadn't run
rake rails:update
recently.I did and it added this line:
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: