Skip to content

Commit

Permalink
v0.003
Browse files Browse the repository at this point in the history
  • Loading branch information
perlpunk committed Oct 7, 2020
1 parent 0a3a17e commit 364fca2
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 12 deletions.
5 changes: 1 addition & 4 deletions Changes
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand All @@ -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
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion etc/install-yamltidy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions lib/YAML/Tidy.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 364fca2

Please sign in to comment.