Skip to content

Commit

Permalink
Ignore warning on LoadError when running under Bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Oct 12, 2023
1 parent 7ab063a commit 01477bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bundled_gems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def self.build_message(gem)

class LoadError
def message
if Gem::BUNDLED_GEMS::SINCE[path] && !Gem::BUNDLED_GEMS::WARNED[path]
if !defined?(Bundler) && Gem::BUNDLED_GEMS::SINCE[path] && !Gem::BUNDLED_GEMS::WARNED[path]
warn path + Gem::BUNDLED_GEMS.build_message(path)
end
super
Expand Down

0 comments on commit 01477bb

Please sign in to comment.