[rubygems/rubygems] Allow installing plugins from path via CLI

Also bring the man page up to date.

a849bd6947
This commit is contained in:
Cody Cutrer 2023-09-14 11:35:50 -06:00 committed by git
parent cbc11bcb63
commit 44b5c912da
35 changed files with 97 additions and 50 deletions

View file

@ -212,6 +212,16 @@ RSpec.describe "bundler plugin install" do
end
end
it "installs from a path source" do
build_lib "path_plugin" do |s|
s.write "plugins.rb"
end
bundle "plugin install path_plugin --path #{lib_path("path_plugin-1.0")}"
expect(out).to include("Installed plugin path_plugin")
plugin_should_be_installed("path_plugin")
end
context "Gemfile eval" do
before do
allow(Bundler::SharedHelpers).to receive(:find_gemfile).and_return(bundled_app_gemfile)