diff options
author | David RodrÃguez <[email protected]> | 2024-11-18 20:51:41 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2024-11-26 15:11:05 +0900 |
commit | 4addaaf4df9a7b48c3490b806c195fcb7be999b5 (patch) | |
tree | 376ebecfa6692cd457e4fd4a2707623556ebac1d /lib/bundler.rb | |
parent | 11e522b913af36acfe10e8ba9cfc0a14b0335aa0 (diff) |
[rubygems/rubygems] More aggressive `Performance/FlatMap` cop configuration
https://github.com/rubygems/rubygems/commit/d8d68cc00e
Diffstat (limited to 'lib/bundler.rb')
-rw-r--r-- | lib/bundler.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb index 1140de5467..4ede881446 100644 --- a/lib/bundler.rb +++ b/lib/bundler.rb @@ -581,12 +581,12 @@ module Bundler Bundler.rubygems.load_plugins requested_path_gems = definition.requested_specs.select {|s| s.source.is_a?(Source::Path) } - path_plugin_files = requested_path_gems.map do |spec| + path_plugin_files = requested_path_gems.flat_map do |spec| spec.matches_for_glob("rubygems_plugin#{Bundler.rubygems.suffix_pattern}") rescue TypeError error_message = "#{spec.name} #{spec.version} has an invalid gemspec" raise Gem::InvalidSpecificationException, error_message - end.flatten + end Bundler.rubygems.load_plugin_files(path_plugin_files) Bundler.rubygems.load_env_plugins @load_plugins_ran = true |