diff options
author | Andre Arko <andre@arko.net> | 2010-05-03 14:08:35 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2010-05-03 14:08:58 -0700 |
commit | 0a4e28aca81ff698f8cc3263966e9cbd95c809bb (patch) | |
tree | 2768920def98a55ba3b06402fe99e1c4bebf7fd6 | |
parent | 53a57518049c545ca6c3b150674fbacedd771836 (diff) | |
download | bundler-0a4e28aca81ff698f8cc3263966e9cbd95c809bb.tar.gz |
Fix newlines in output from install command
Closes #312
-rw-r--r-- | lib/bundler/installer.rb | 5 | ||||
-rw-r--r-- | lib/bundler/spec_set.rb | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lib/bundler/installer.rb b/lib/bundler/installer.rb index bc5cdf6aec..f7e8f911bf 100644 --- a/lib/bundler/installer.rb +++ b/lib/bundler/installer.rb @@ -27,11 +27,12 @@ module Bundler end if [Source::Rubygems, Source::GemCache].include?(spec.source.class) - Bundler.ui.info "Installing #{spec.name} (#{spec.version}) from #{spec.source}" + Bundler.ui.info "Installing #{spec.name} (#{spec.version}) from #{spec.source} " else - Bundler.ui.info "Using #{spec.name} (#{spec.version}) from #{spec.source}" + Bundler.ui.info "Using #{spec.name} (#{spec.version}) from #{spec.source} " end spec.source.install(spec) + Bundler.ui.info "" unless spec == specs.last end if locked? diff --git a/lib/bundler/spec_set.rb b/lib/bundler/spec_set.rb index c02572421c..6d8d429ac3 100644 --- a/lib/bundler/spec_set.rb +++ b/lib/bundler/spec_set.rb @@ -30,6 +30,10 @@ module Bundler sorted.dup end + def last + sorted.last + end + private def append_subgraph(specs, current) |