summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-08-17 11:53:55 -0500
committerSamuel Giddins <segiddins@segiddins.me>2016-08-17 11:53:55 -0500
commit0b03f516fdcc4b02a4cd106a6578026816027d2a (patch)
tree70b34a2e14f7290005429e12c209f979045a79c8 /lib
parent247e6ec9c03a13f66de762f9fffd267da78494ed (diff)
downloadbundler-0b03f516fdcc4b02a4cd106a6578026816027d2a.tar.gz
[Doctor] Ensure missing dylibs are printed in a consistent orderseg-doctor
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/cli/doctor.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bundler/cli/doctor.rb b/lib/bundler/cli/doctor.rb
index b00e5ba4e0..728662024b 100644
--- a/lib/bundler/cli/doctor.rb
+++ b/lib/bundler/cli/doctor.rb
@@ -79,11 +79,11 @@ module Bundler
if broken_links.any?
message = "The following gems are missing OS dependencies:"
- broken_links.each do |spec, paths|
- paths.uniq.each do |path|
- message += "\n * #{spec.name}: #{path}"
+ broken_links.map do |spec, paths|
+ paths.uniq.map do |path|
+ "\n * #{spec.name}: #{path}"
end
- end
+ end.flatten.sort.each {|m| message += m }
raise ProductionError, message
else
Bundler.ui.info "No issues found with the installed bundle"