Skip to content
Browse files

Fix newlines in output from install command

Closes #312
  • Loading branch information...
1 parent 53a5751 commit 0a4e28aca81ff698f8cc3263966e9cbd95c809bb @indirect indirect committed
Showing with 7 additions and 2 deletions.
  1. +3 −2 lib/bundler/installer.rb
  2. +4 −0 lib/bundler/spec_set.rb
View
5 lib/bundler/installer.rb
@@ -27,11 +27,12 @@ def run(options)
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?
View
4 lib/bundler/spec_set.rb
@@ -30,6 +30,10 @@ def to_a
sorted.dup
end
+ def last
+ sorted.last
+ end
+
private
def append_subgraph(specs, current)

0 comments on commit 0a4e28a

Please sign in to comment.
Something went wrong with that request. Please try again.