仅在Gemfile中指定Ruby版本时如何查找安装的单个gem

问题描述 投票:0回答:1

我正在运行Ruby 2.7.0,Bundler 2.1.4和macOS 10.15.3。

我在原本指定Ruby版本的空文件夹中有一个Gemfile:

ruby '2.7.0'

[当我运行bundlebundle install时,我得到:

% bundle install
The Gemfile specifies no dependencies
Bundle complete! 0 Gemfile dependencies, 1 gem now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.

但是,bundle list给了我:

% bundle list
No gems in the Gemfile

安装的一颗宝石是什么?我在哪里可以找到它?

ruby bundler gemfile
1个回答
0
投票

看起来像邦德勒本身。

这些是bundle install命令输出代码的链接:

[重要部分是specs["bundler"]为空的最后一部分,然后它将捆绑程序规范分配给specs["bundler"],因此specs.count至少返回1

© www.soinside.com 2019 - 2024. All rights reserved.