Skip to content

Commit

Permalink
v0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
perlpunk committed Jan 5, 2024
1 parent 6971471 commit ce123fb
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 13 deletions.
3 changes: 2 additions & 1 deletion Changes
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
Revision history for Perl module YAML::Tidy

v0.7.1 2024-01-04 23:12:38+01:00
v0.8.0 2024-01-05 22:38:36+01:00

- Fix tidying unicode files
- Require YAML::LibYAML::API v0.14.0
- Allow seralizing reused anchors
- Change module versioning scheme

0.007 2022-08-06 00:09:43+02:00
Expand Down
6 changes: 3 additions & 3 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This software is copyright (c) 2022 by Tina Müller.
This software is copyright (c) 2024 by Tina Müller.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
Expand All @@ -12,7 +12,7 @@ b) the "Artistic License"

--- The GNU General Public License, Version 1, February 1989 ---

This software is Copyright (c) 2022 by Tina Müller.
This software is Copyright (c) 2024 by Tina Müller.

This is free software, licensed under:

Expand Down Expand Up @@ -272,7 +272,7 @@ That's all there is to it!

--- The Artistic License 1.0 ---

This software is Copyright (c) 2022 by Tina Müller.
This software is Copyright (c) 2024 by Tina Müller.

This is free software, licensed under:

Expand Down
2 changes: 1 addition & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ my %WriteMakefileArgs = (
"Test::Warnings" => "0.029",
"YAML::LibYAML::API" => "0.14.0"
},
"VERSION" => "v0.7.1",
"VERSION" => "v0.8.0",
"test" => {
"TESTS" => "t/*.t"
}
Expand Down
4 changes: 2 additions & 2 deletions dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name = YAML-Tidy
author = Tina Müller <tinita@cpan.org>
license = Perl_5
copyright_holder = Tina Müller
copyright_year = 2022
copyright_year = 2024

version = v0.7.1
version = v0.8.0

[@Filter]
-bundle = @Basic
Expand Down
42 changes: 36 additions & 6 deletions lib/YAML/Tidy.pm
Original file line number Diff line number Diff line change
Expand Up @@ -947,16 +947,46 @@ YAML::Tidy - Tidy YAML files
b:
c: d
For documentation see L<https://github.com/perlpunk/yamltidy>
=head1 DESCRIPTION
yamltidy is a linter or rather a formatter for YAML files.
It can adjust formatting without removing comments or blank lines.
For examples see L<https://perlpunk.github.io/yamltidy>
=head1 DESCRIPTION
The code can be found at L<https://github.com/perlpunk/yamltidy>.
=head1 FEATURES
=over
=item Trim trailing spaces
=item Adjust indentation
=item Add or remove headers and footers
=item Remove unnecessary quotes (currently according to the YAML 1.2 Core Schema)
yamltidy can automatically tidy formatting in your YAML files, for example
adjust indentation and remove trailing spaces.
=item Serialize reused aliases
For more information, see L<https://github.com/perlpunk/yamltidy>.
=back
=head2 Plans
=over
=item Add option for batch processing multiple files, e.g. by extension
=item Use exit code to signal if yamltidy did any changes
=item Quoting: Allow to add patterns for strings that should be quoted
=item For more, see L<https://github.com/perlpunk/yamltidy/issues>. Suggestions
welcome!
=back
=head1 METHODS
Expand Down Expand Up @@ -1005,7 +1035,7 @@ Tina Müller E<lt>tinita@cpan.orgE<gt>
=head1 COPYRIGHT AND LICENSE
Copyright 2020 by Tina Müller
Copyright 2024 by Tina Müller
This library is free software and may be distributed under the same terms
as perl itself.
Expand Down
1 change: 1 addition & 0 deletions xt/03.spelling.t
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ add_stopwords(<DATA>);
all_pod_files_spelling_ok( qw( bin lib ) );

__DATA__
linter
perltidy
yamllint
yamltidy
Expand Down

0 comments on commit ce123fb

Please sign in to comment.