我有几个 gem 文件,我通过gem install xx.gem. 我可以告诉 Bundler 使用它们吗?还是我必须指定源路径?
gem install xx.gem
这并不是对您关于安装软件包问题的严格回答,但您可以通过编辑Gemfile 逐个.gem宝石地指定各种位置。
.gem
:path
gem "foreman", path: "/Users/pje/my_foreman_fork"
:git
gem "foreman", git: "git://github.com/pje/foreman.git" # ...or at a specific SHA-1 ref gem "foreman", git: "git://github.com/pje/foreman.git", ref: "bf648a070c" # ...or branch gem "foreman", git: "git://github.com/pje/foreman.git", branch: "jruby" # ...or tag gem "foreman", git: "git://github.com/pje/foreman.git", tag: "v0.45.0"