diff --git a/bundler/lib/bundler/installer/standalone.rb b/bundler/lib/bundler/installer/standalone.rb index f16135cb481d..0dd1ef090303 100644 --- a/bundler/lib/bundler/installer/standalone.rb +++ b/bundler/lib/bundler/installer/standalone.rb @@ -31,7 +31,7 @@ def paths gem_path(path, spec).sub(version_dir, '#{ruby_engine}/#{ruby_version}') # This is a static string intentionally. It's interpolated at a later time. end - end.flatten + end.flatten.compact end def version_dir