summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHomu <homu@barosl.com>2016-01-02 22:33:40 +0900
committerHomu <homu@barosl.com>2016-01-02 22:33:40 +0900
commit40a5762ad8b41e3f9553bb27acea1b63b014223b (patch)
treea729a4d427fdfd0370a8690adc2f7cb7c68a1d5e
parent6b0bc181cd788d4dec7cbaacb51589d68b7cf2a6 (diff)
parent03351b6312919583a2222b2a489c91b4a22e56cc (diff)
downloadbundler-40a5762ad8b41e3f9553bb27acea1b63b014223b.tar.gz
Auto merge of #4196 - bundler:env-output-fix, r=indirect
Make `bundle env` output consistent We don't use ":" anywhere else on `bundle env` output.
-rw-r--r--lib/bundler/env.rb2
-rw-r--r--spec/bundler/env_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/env.rb b/lib/bundler/env.rb
index c6ecdd0f69..6942eccaa8 100644
--- a/lib/bundler/env.rb
+++ b/lib/bundler/env.rb
@@ -43,7 +43,7 @@ module Bundler
if print_gemspecs
dsl = Dsl.new.tap {|d| d.eval_gemfile(Bundler.default_gemfile) }
dsl.gemspecs.each do |gs|
- out << "\n#{Pathname.new(gs).basename}:"
+ out << "\n#{Pathname.new(gs).basename}"
out << "\n\n " << read_file(gs).gsub(/\n/, "\n ") << "\n"
end
end
diff --git a/spec/bundler/env_spec.rb b/spec/bundler/env_spec.rb
index 99d89fd4d6..1c38ca87df 100644
--- a/spec/bundler/env_spec.rb
+++ b/spec/bundler/env_spec.rb
@@ -67,7 +67,7 @@ describe Bundler::Env do
it "prints the gemspec" do
output = env.report(:print_gemspecs => true).gsub(/^\s+/, "")
- expect(output).to include("foo.gemspec:")
+ expect(output).to include("foo.gemspec")
expect(output).to include(gemspec)
end
end