From df7789088d0ffbef3b7a542929dc9d6c20111973 Mon Sep 17 00:00:00 2001 From: Cody Cutrer Date: Thu, 5 Oct 2023 12:50:31 -0600 Subject: [PATCH] suppress install using messages frd (#4) this setting was recently removed in bundler, so re-implement --- lib/bundler/multilock.rb | 1 + lib/bundler/multilock/ext/source.rb | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 lib/bundler/multilock/ext/source.rb diff --git a/lib/bundler/multilock.rb b/lib/bundler/multilock.rb index c7463a7..d2c049b 100644 --- a/lib/bundler/multilock.rb +++ b/lib/bundler/multilock.rb @@ -5,6 +5,7 @@ require_relative "multilock/ext/dsl" require_relative "multilock/ext/plugin" require_relative "multilock/ext/plugin/dsl" +require_relative "multilock/ext/source" require_relative "multilock/ext/source_list" require_relative "multilock/version" diff --git a/lib/bundler/multilock/ext/source.rb b/lib/bundler/multilock/ext/source.rb new file mode 100644 index 0000000..845b30b --- /dev/null +++ b/lib/bundler/multilock/ext/source.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module Bundler + module Multilock + module Ext + module Source + ::Bundler::Source.prepend(self) + + def print_using_message(...) + return if Bundler.settings[:suppress_install_using_messages] + + super + end + end + end + end +end