From: Steve Hancock Date: Thu, 30 May 2019 14:39:19 +0000 (-0700) Subject: update version to 20190601 X-Git-Tag: 20190601~3 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b8a787db240fe37ec3c5b3aecd8972917a02e01d;p=perltidy.git update version to 20190601 --- diff --git a/CHANGES.md b/CHANGES.md index cfe8c7b8..e81e4d2c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,16 +1,16 @@ # Perltidy Change Log -## 2018 11 20.01 +## 2019 06 01 - rt #128477: Prevent inconsistent owner/group and setuid/setgid bits. In the -b (--backup-and-modify-in-place) mode, an attempt is made to set ownership - of the output file equal to the input file, if they differ. + of the output file equal to the input file, if they differ. In all cases, if the final output file ownership differs from input file, any setuid/setgid bits are cleared. - - added option -bom (--break-at-old-method-breakpoints) by - merrillymeredith which preserves breakpoints of method chains + - Added option -bom (--break-at-old-method-breakpoints) by + merrillymeredith which preserves breakpoints of method chains. Modified to also handle a cuddled call style. - - merged patch to fix Windows EOL translation error with UTF-8 written by + - Merged patch to fix Windows EOL translation error with UTF-8 written by Ron Ivy. This update prevents automatic conversion to 'DOS' CRLF line endings. @@ -21,7 +21,7 @@ n=2 means always add semicolons in one-line blocks The current behavior corresponds to the default n=1. - - RT #128216, very minor update to prevent inserting unwanted blank line at + - RT #128216, Minor update to prevent inserting unwanted blank line at indentation level change. This should not change existing scripts. - RT #81852: Improved indentation when quoted word (qw) lists are @@ -45,7 +45,7 @@ sequences of selected keywords. This can be activated with the -kgb* series of parameters described in the manual. - - Rewrote vertical algnment module. It is much better at finding + - Rewrote vertical algnment module. It is better at finding patterns in complex code. For example, OLD: @@ -62,7 +62,7 @@ - RT #118553, "leave only one newline at end of file". This option was not added because of undesirable side effects, but a new filter script - was added which can do this, "examples/delete_ending_blank_lines.pl". + was added which can do this, "examples/delete_ending_blank_lines.pl". ## 2018 11 20 diff --git a/bin/perltidy b/bin/perltidy index 9392000e..032fead7 100755 --- a/bin/perltidy +++ b/bin/perltidy @@ -3735,7 +3735,7 @@ perlstyle(1), Perl::Tidy(3) =head1 VERSION -This man page documents perltidy version 20181120.01 +This man page documents perltidy version 20190601 =head1 BUG REPORTS diff --git a/docs/ChangeLog.html b/docs/ChangeLog.html index 62d51c08..b7eedbe7 100644 --- a/docs/ChangeLog.html +++ b/docs/ChangeLog.html @@ -1,16 +1,16 @@

Perltidy Change Log

-

2018 11 20.01

+

2019 06 01

- rt #128477: Prevent inconsistent owner/group and setuid/setgid bits. 
   In the -b (--backup-and-modify-in-place) mode, an attempt is made to set ownership
-  of the output file equal to the input file, if they differ.  
+  of the output file equal to the input file, if they differ.
   In all cases, if the final output file ownership differs from input file, any setuid/setgid bits are cleared.
 
-- added option -bom  (--break-at-old-method-breakpoints) by
-  merrillymeredith which preserves breakpoints of method chains
+- Added option -bom  (--break-at-old-method-breakpoints) by
+  merrillymeredith which preserves breakpoints of method chains. Modified to also handle a cuddled call style.
 
-- merged patch to fix Windows EOL translation error with UTF-8 written by
+- Merged patch to fix Windows EOL translation error with UTF-8 written by
   Ron Ivy. This update prevents automatic conversion to 'DOS' CRLF line
   endings.
 
@@ -21,7 +21,7 @@
     n=2 means always add semicolons in one-line blocks
   The current behavior corresponds to the default n=1.
 
-- RT #128216, very minor update to prevent inserting unwanted blank line at
+- RT #128216, Minor update to prevent inserting unwanted blank line at
   indentation level change.  This should not change existing scripts.
 
 - RT #81852: Improved indentation when quoted word (qw) lists are 
@@ -45,7 +45,7 @@
   sequences of selected keywords. This can be activated with the -kgb* 
   series of parameters described in the manual.
 
-- Rewrote vertical algnment module.  It is much better at finding
+- Rewrote vertical algnment module.  It is better at finding
   patterns in complex code. For example,
 
 OLD:
diff --git a/docs/Tidy.html b/docs/Tidy.html
index 51b92fad..2d3a162a 100644
--- a/docs/Tidy.html
+++ b/docs/Tidy.html
@@ -349,7 +349,7 @@
 
 

VERSION

-

This man page documents Perl::Tidy version 20181120.01

+

This man page documents Perl::Tidy version 20190601

LICENSE

diff --git a/docs/perltidy.html b/docs/perltidy.html index d0f1bfb0..732e3d2e 100644 --- a/docs/perltidy.html +++ b/docs/perltidy.html @@ -2873,7 +2873,7 @@

VERSION

-

This man page documents perltidy version 20181120.01

+

This man page documents perltidy version 20190601

BUG REPORTS

diff --git a/lib/Perl/Tidy.pm b/lib/Perl/Tidy.pm index e48463ba..55af333c 100644 --- a/lib/Perl/Tidy.pm +++ b/lib/Perl/Tidy.pm @@ -109,7 +109,7 @@ BEGIN { # Release version must be bumped, and it is probably past time for a # release anyway. - $VERSION = '20181120.01'; + $VERSION = '20190601'; } sub streamhandle { @@ -1350,11 +1350,18 @@ EOM } } - # Make the output file writable unless we are in -b mode. - # The issue is that perltidy currently does not unlink - # existing output files before writing to them, so if an - # existing output file (like xxxxx.tdy) is read-only then - # perltidy will fail. + # Make the output file writable unless we are in -b mode. + # The reason is that perltidy does not unlink existing + # output files before writing to them, for safety, so if an + # existing output file is marked not writable then perltidy + # will stop. This can prevent a disaster for a user who + # accidentally enters "-o important_data", but it also + # means that perltidy may fail when rerun with its default + # output file unless it marks its own output files + # writable. The alternative, of always unlinking the + # designated output file, is unsafe, except in -b mode, + # where there is an assumption that a previous backup can + # be unlinked even if not writable. if ( !$in_place_modify ) { $output_file_permissions |= oct(600); } diff --git a/lib/Perl/Tidy.pod b/lib/Perl/Tidy.pod index 0ebc27be..23c8b02b 100644 --- a/lib/Perl/Tidy.pod +++ b/lib/Perl/Tidy.pod @@ -410,7 +410,7 @@ C in Tidy.pm. =head1 VERSION -This man page documents Perl::Tidy version 20181120.01 +This man page documents Perl::Tidy version 20190601 =head1 LICENSE diff --git a/lib/Perl/Tidy/Debugger.pm b/lib/Perl/Tidy/Debugger.pm index 285c2626..2fe1bbb0 100644 --- a/lib/Perl/Tidy/Debugger.pm +++ b/lib/Perl/Tidy/Debugger.pm @@ -7,7 +7,7 @@ package Perl::Tidy::Debugger; use strict; use warnings; -our $VERSION = '20181120.01'; +our $VERSION = '20190601'; sub new { diff --git a/lib/Perl/Tidy/DevNull.pm b/lib/Perl/Tidy/DevNull.pm index 27352f6e..e755e0c3 100644 --- a/lib/Perl/Tidy/DevNull.pm +++ b/lib/Perl/Tidy/DevNull.pm @@ -7,7 +7,7 @@ package Perl::Tidy::DevNull; use strict; use warnings; -our $VERSION = '20181120.01'; +our $VERSION = '20190601'; sub new { my $self = shift; return bless {}, $self } sub print { return } sub close { return } diff --git a/lib/Perl/Tidy/Diagnostics.pm b/lib/Perl/Tidy/Diagnostics.pm index 5e013c71..f2d6ec94 100644 --- a/lib/Perl/Tidy/Diagnostics.pm +++ b/lib/Perl/Tidy/Diagnostics.pm @@ -20,7 +20,7 @@ package Perl::Tidy::Diagnostics; use strict; use warnings; -our $VERSION = '20181120.01'; +our $VERSION = '20190601'; sub new { diff --git a/lib/Perl/Tidy/FileWriter.pm b/lib/Perl/Tidy/FileWriter.pm index 7c72d43c..c7b31923 100644 --- a/lib/Perl/Tidy/FileWriter.pm +++ b/lib/Perl/Tidy/FileWriter.pm @@ -7,7 +7,7 @@ package Perl::Tidy::FileWriter; use strict; use warnings; -our $VERSION = '20181120.01'; +our $VERSION = '20190601'; # Maximum number of little messages; probably need not be changed. my $MAX_NAG_MESSAGES = 6; diff --git a/lib/Perl/Tidy/Formatter.pm b/lib/Perl/Tidy/Formatter.pm index 074b64eb..9766e25e 100644 --- a/lib/Perl/Tidy/Formatter.pm +++ b/lib/Perl/Tidy/Formatter.pm @@ -12,7 +12,7 @@ package Perl::Tidy::Formatter; use strict; use warnings; use Carp; -our $VERSION = '20181120.01'; +our $VERSION = '20190601'; # The Tokenizer will be loaded with the Formatter ##use Perl::Tidy::Tokenizer; # for is_keyword() diff --git a/lib/Perl/Tidy/HtmlWriter.pm b/lib/Perl/Tidy/HtmlWriter.pm index 7ff6ea7e..0d82978b 100644 --- a/lib/Perl/Tidy/HtmlWriter.pm +++ b/lib/Perl/Tidy/HtmlWriter.pm @@ -7,7 +7,7 @@ package Perl::Tidy::HtmlWriter; use strict; use warnings; -our $VERSION = '20181120.01'; +our $VERSION = '20190601'; use File::Basename; diff --git a/lib/Perl/Tidy/IOScalar.pm b/lib/Perl/Tidy/IOScalar.pm index 28328a8d..2bfb07fb 100644 --- a/lib/Perl/Tidy/IOScalar.pm +++ b/lib/Perl/Tidy/IOScalar.pm @@ -10,7 +10,7 @@ package Perl::Tidy::IOScalar; use strict; use warnings; use Carp; -our $VERSION = '20181120.01'; +our $VERSION = '20190601'; sub new { my ( $package, $rscalar, $mode ) = @_; diff --git a/lib/Perl/Tidy/IOScalarArray.pm b/lib/Perl/Tidy/IOScalarArray.pm index 8e040b57..118f1590 100644 --- a/lib/Perl/Tidy/IOScalarArray.pm +++ b/lib/Perl/Tidy/IOScalarArray.pm @@ -14,7 +14,7 @@ package Perl::Tidy::IOScalarArray; use strict; use warnings; use Carp; -our $VERSION = '20181120.01'; +our $VERSION = '20190601'; sub new { my ( $package, $rarray, $mode ) = @_; diff --git a/lib/Perl/Tidy/IndentationItem.pm b/lib/Perl/Tidy/IndentationItem.pm index 3181f6c4..b0edd0af 100644 --- a/lib/Perl/Tidy/IndentationItem.pm +++ b/lib/Perl/Tidy/IndentationItem.pm @@ -8,7 +8,7 @@ package Perl::Tidy::IndentationItem; use strict; use warnings; -our $VERSION = '20181120.01'; +our $VERSION = '20190601'; sub new { diff --git a/lib/Perl/Tidy/LineBuffer.pm b/lib/Perl/Tidy/LineBuffer.pm index 97348264..ade5b2c3 100644 --- a/lib/Perl/Tidy/LineBuffer.pm +++ b/lib/Perl/Tidy/LineBuffer.pm @@ -12,7 +12,7 @@ package Perl::Tidy::LineBuffer; use strict; use warnings; -our $VERSION = '20181120.01'; +our $VERSION = '20190601'; sub new { diff --git a/lib/Perl/Tidy/LineSink.pm b/lib/Perl/Tidy/LineSink.pm index 7d9f4a14..98bea19b 100644 --- a/lib/Perl/Tidy/LineSink.pm +++ b/lib/Perl/Tidy/LineSink.pm @@ -8,7 +8,7 @@ package Perl::Tidy::LineSink; use strict; use warnings; -our $VERSION = '20181120.01'; +our $VERSION = '20190601'; sub new { diff --git a/lib/Perl/Tidy/LineSource.pm b/lib/Perl/Tidy/LineSource.pm index df30c80e..5d4ec98c 100644 --- a/lib/Perl/Tidy/LineSource.pm +++ b/lib/Perl/Tidy/LineSource.pm @@ -8,7 +8,7 @@ package Perl::Tidy::LineSource; use strict; use warnings; -our $VERSION = '20181120.01'; +our $VERSION = '20190601'; sub new { diff --git a/lib/Perl/Tidy/Logger.pm b/lib/Perl/Tidy/Logger.pm index 72cde5ea..547a635d 100644 --- a/lib/Perl/Tidy/Logger.pm +++ b/lib/Perl/Tidy/Logger.pm @@ -7,7 +7,7 @@ package Perl::Tidy::Logger; use strict; use warnings; -our $VERSION = '20181120.01'; +our $VERSION = '20190601'; sub new { diff --git a/lib/Perl/Tidy/Tokenizer.pm b/lib/Perl/Tidy/Tokenizer.pm index d18d1a36..c7bc6ff7 100644 --- a/lib/Perl/Tidy/Tokenizer.pm +++ b/lib/Perl/Tidy/Tokenizer.pm @@ -21,7 +21,7 @@ package Perl::Tidy::Tokenizer; use strict; use warnings; -our $VERSION = '20181120.01'; +our $VERSION = '20190601'; use Perl::Tidy::LineBuffer; diff --git a/lib/Perl/Tidy/VerticalAligner.pm b/lib/Perl/Tidy/VerticalAligner.pm index 2c7a7923..2ae6e19b 100644 --- a/lib/Perl/Tidy/VerticalAligner.pm +++ b/lib/Perl/Tidy/VerticalAligner.pm @@ -1,7 +1,7 @@ package Perl::Tidy::VerticalAligner; use strict; use warnings; -our $VERSION = '20181120.01'; +our $VERSION = '20190601'; use Perl::Tidy::VerticalAligner::Alignment; use Perl::Tidy::VerticalAligner::Line; diff --git a/lib/Perl/Tidy/VerticalAligner/Alignment.pm b/lib/Perl/Tidy/VerticalAligner/Alignment.pm index d4748da8..8732e96e 100644 --- a/lib/Perl/Tidy/VerticalAligner/Alignment.pm +++ b/lib/Perl/Tidy/VerticalAligner/Alignment.pm @@ -7,7 +7,7 @@ package Perl::Tidy::VerticalAligner::Alignment; use strict; use warnings; -our $VERSION = '20181120.01'; +our $VERSION = '20190601'; { diff --git a/lib/Perl/Tidy/VerticalAligner/Line.pm b/lib/Perl/Tidy/VerticalAligner/Line.pm index 74115164..373896c1 100644 --- a/lib/Perl/Tidy/VerticalAligner/Line.pm +++ b/lib/Perl/Tidy/VerticalAligner/Line.pm @@ -8,7 +8,7 @@ package Perl::Tidy::VerticalAligner::Line; use strict; use warnings; -our $VERSION = '20181120.01'; +our $VERSION = '20190601'; {