yamlclean

Build Status

This simple ruby gem provides a command-line tool for cleaning up yaml files. It's based on the ya2yaml library.

One notable use-case for this is to make Transifex translation files work with PHP's yaml parsers. That's why I first wrote it. :-)

Installation

$> sudo gem install yamlclean

Usage

$> yamlclean input.yml > output.yml

Contributing and development

After checking out the code, you can run the tests as follows:

$> bundle install
$> bundle exec rake

You can compile and install the gem locally as follows:

$> bundle exec rake install

To publish a new release, first ensure that the correct version is listed in lib/yamlclean/version.rb. Then run these commands:

$> bundle exec rake release

Note that the last command will require permissions to publish the gem. If you've been contributing to this through pull requests and would like to be granted core commit and publish access, let me know!