From bcefbe99dba79c883910fa8996c64556f9a18476 Mon Sep 17 00:00:00 2001 From: "Samuel E. Giddins" Date: Sat, 27 Jun 2015 12:56:14 -0700 Subject: [PATCH] [Show] Fix printing with --no-color Closes #267. --- CHANGELOG.md | 9 +++++++++ lib/xcodeproj/command/show.rb | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cc8ed86d9..02e2721c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Xcodeproj Changelog +## Master + +##### Bug Fixes + +* Allow `xcodeproj show` to accept `--no-color` as an option without crashing. + [Samuel Giddins](https://github.com/segiddins) + [#267](https://github.com/CocoaPods/Xcodeproj/issues/267) + + ## 0.25.0 ##### Enhancements diff --git a/lib/xcodeproj/command/show.rb b/lib/xcodeproj/command/show.rb index 9e14bfdec..17ec43c57 100644 --- a/lib/xcodeproj/command/show.rb +++ b/lib/xcodeproj/command/show.rb @@ -51,8 +51,8 @@ def run yaml = value.to_yaml yaml.gsub!(/^---$/, '') yaml.gsub!(/^-/, "\n-") - section << yaml - sections << section + yaml.prepend(section) + sections << yaml end puts sections * "\n\n" end