Project

General

Profile

Actions

Feature #10065

closed

Make `gem env` command output valid YAML

Added by david_macmahon (David MacMahon) almost 10 years ago. Updated almost 10 years ago.

Status:
Feedback
Target version:
-
[ruby-core:63836]

Description

The output of gem environment is close to being valid YAML, but the GEM CONFIGURATION section uses key => value instead of key: value so the output cannot be parsed by YAML. The attached patch changes just one line to make the output of gem environment be valid YAML.

I could not find a specification for the output of the gem environment command so I am filing this as a feature request rather than as a bug.

The attached patch is the minimum change necessary to create valid YAML. I think the structure of the resulting YAML output is not optimal. It is currently a one element Hash whose only value is an Array of one element Hashes. Is it preferable to address that in a separate feature request or as an expansion of this one?


Files

0001-Make-gem-env-command-output-valid-YAML.patch (1.12 KB) 0001-Make-gem-env-command-output-valid-YAML.patch Patch that implements feature request david_macmahon (David MacMahon), 07/18/2014 06:25 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0