diff --git a/Changes b/Changes index 4eecb3a..d84ccba 100644 --- a/Changes +++ b/Changes @@ -1,11 +1,8 @@ Revision history for Perl module YAML::Tidy -0.002_002 2020-10-05 16:58:15+02:00 +0.003 2020-10-07 21:19:08+02:00 - Indent flow collections - -0.002_001 2020-09-30 23:49:59+02:00 - - Fix --version option - Remove trailing spaces also at the end of events - Fix partial processing for scalars diff --git a/Makefile.PL b/Makefile.PL index 8a8c6cb..adbbc84 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -44,7 +44,7 @@ my %WriteMakefileArgs = ( "Test::More" => "0.98", "Test::Warnings" => "0.029" }, - "VERSION" => "0.002_002", + "VERSION" => "0.003", "test" => { "TESTS" => "t/*.t" } diff --git a/README.md b/README.md index 37da9fb..383a82d 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,9 @@ This project is very new - a lot will change. -yamltidy is inspired by the great tools +yamltidy is a formatter for YAML files. + +It's is inspired by the great tools [yamllint](https://yamllint.readthedocs.io/en/stable/) and [perltidy](https://metacpan.org/pod/Perl::Tidy). @@ -19,9 +21,9 @@ It is based on [C libyaml](https://github.com/yaml/libyaml) and % yamltidy foo.yaml --- - a: + a: # a comment b: - c + c: d # inplace - directly write result into original file yamltidy --inplace foo.yaml @@ -41,6 +43,8 @@ If you don't have a Perl CPAN client to install modules, install cpanminus: Install yamltidy % cpanm YAML::Tidy + # faster without running tests + % cpanm --notest YAML::Tidy If you just want to play with it, but don't want to install it globally, use this: diff --git a/dist.ini b/dist.ini index b301cd1..b117620 100644 --- a/dist.ini +++ b/dist.ini @@ -4,7 +4,7 @@ license = Perl_5 copyright_holder = Tina Müller copyright_year = 2020 -version = 0.002_002 +version = 0.003 [@Filter] -bundle = @Basic diff --git a/etc/install-yamltidy.sh b/etc/install-yamltidy.sh index 169bd99..c225189 100755 --- a/etc/install-yamltidy.sh +++ b/etc/install-yamltidy.sh @@ -3,4 +3,4 @@ set -ex HOME=/tmp/home -cpanm -l /tmp/yamltidy --notest YAML::Tidy@0.002_001 +cpanm -l /tmp/yamltidy --notest YAML::Tidy@0.003 diff --git a/lib/YAML/Tidy.pm b/lib/YAML/Tidy.pm index 391e5e0..0e1e47b 100644 --- a/lib/YAML/Tidy.pm +++ b/lib/YAML/Tidy.pm @@ -646,11 +646,11 @@ YAML::Tidy - Tidy YAML files =head1 SYNOPSIS % cat in.yaml - a: + a: # a comment b: c: d % yamltidy in.yaml - a: + a: # a comment b: c: d