From 61b00be2dba7f4dada0e379ae2f1e87e79e9b4e0 Mon Sep 17 00:00:00 2001 From: David MacMahon Date: Thu, 17 Jul 2014 23:52:09 -0700 Subject: [PATCH] Make gem env command output valid YAML The output of `gem environment` is now a valid YAML file. This commit only fixes the part of the output that was not valid YAML (most already was), but it does not modify the structure of the information. --- lib/rubygems/commands/environment_command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rubygems/commands/environment_command.rb b/lib/rubygems/commands/environment_command.rb index d32d12b..b6d4d5b 100644 --- a/lib/rubygems/commands/environment_command.rb +++ b/lib/rubygems/commands/environment_command.rb @@ -135,7 +135,7 @@ lib/rubygems/defaults/operating_system.rb out << " - GEM CONFIGURATION:\n" Gem.configuration.each do |name, value| value = value.gsub(/./, '*') if name == 'gemcutter_key' - out << " - #{name.inspect} => #{value.inspect}\n" + out << " - #{name.inspect}: #{value.inspect}\n" end out << " - REMOTE SOURCES:\n" -- 1.8.4