Skip to content

Commit

Permalink
suppress install using messages frd (#4)
Browse files Browse the repository at this point in the history
this setting was recently removed in bundler, so re-implement
  • Loading branch information
ccutrer authored Oct 5, 2023
1 parent fd6b00e commit df77890
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/bundler/multilock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
17 changes: 17 additions & 0 deletions lib/bundler/multilock/ext/source.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit df77890

Please sign in to comment.