| 1 |
Changes for Perl::Tidy::Sweetend |
| 2 |
|
| 3 |
1.20 - Tue Apr 18 09:38:58 EDT 2023 |
| 4 |
Adds support for Object::Pad |
| 5 |
Thanks for @jonassmedegaard for the issue and patch. |
| 6 |
Upgrades Perl::Tidy dependency to v20230309. |
| 7 |
[Upgrade recommended for imporovement in Perl::Tidy and particularly if you |
| 8 |
use Object::Pad] |
| 9 |
|
| 10 |
1.19 - Mon Feb 20 21:26:40 EST 2023 |
| 11 |
Updates Perl::Tidy dependency (GH#23) |
| 12 |
Thanks to @shancock9 this release of Perl::Tidy resolves @dboehmer's |
| 13 |
issues where 'Use of uninitialized value $body' error messages are |
| 14 |
printed. |
| 15 |
|
| 16 |
Updates the repo and bugtracker urls to use https (PR #22) |
| 17 |
Thanks @szabgab for the PR. |
| 18 |
[Upgrade recommended.] |
| 19 |
|
| 20 |
1.18 - Sun Jan 31 12:24:35 EST 2021 |
| 21 |
Fixes tests to handle more changes in spacing in Perl::Tidy versions |
| 22 |
[Only changes tests. No need to upgrade.] |
| 23 |
|
| 24 |
1.17 - Sun Jan 24 11:36:21 EST 2021 |
| 25 |
Handles errors in closing sub comments when there are 10+ subs. |
| 26 |
Fixes GH#20. Thanks to @fpostma72 for the bug report and PR. |
| 27 |
|
| 28 |
Perl-Tidy-20200907 changed an indentation of side comments. This patch |
| 29 |
adjusts the tests. |
| 30 |
Fixes GH#18. Thanks to @ppisar for the bug report and PR. |
| 31 |
|
| 32 |
Respects the -cscp argument. |
| 33 |
[Upgrade recommended if you use closing sub comments.] |
| 34 |
|
| 35 |
1.16 - Wed Apr 8 11:57:37 EDT 2020 |
| 36 |
Adds support for 'around/before/after' keywords (GH#17) |
| 37 |
Thanks to witoldwegner for the PR. |
| 38 |
[Upgrade recommended if you use these method modifiers.] |
| 39 |
|
| 40 |
1.15 - Tue Aug 28 09:15:20 EDT 2018 |
| 41 |
Adds basic support for kavorka traits (is/does/but) (GH#16) |
| 42 |
Update the perl versions to test with travis (+5.28, +5.26, -5.21) |
| 43 |
Thanks to Peter Roberts (@pwr22) for the PR. (GH#16). |
| 44 |
[Upgrade recommended if you use Kavorka.] |
| 45 |
|
| 46 |
1.14 - Wed Mar 28 17:36:19 EDT 2018 |
| 47 |
Adds support for Kavorka's basic keywords. |
| 48 |
Thanks to Peter Roberts (@pwr22) for the PR. (GH#13). |
| 49 |
[Upgrade recommended if you use Kavorka.] |
| 50 |
|
| 51 |
1.13 - Thu May 18 12:47:46 EDT 2017 |
| 52 |
Adds support for closing side comments (GH#12) |
| 53 |
Thanks to Aaron Priven for the bug report |
| 54 |
[Upgrade recommended if you use the -csc flag.] |
| 55 |
|
| 56 |
1.12 - Tue Oct 4 15:56:53 EDT 2016 |
| 57 |
Add support to extend classes with :: (e.g, Object::Person). |
| 58 |
Thanks to @pblaberge for the PR. |
| 59 |
[Upgrade recommended.] |
| 60 |
|
| 61 |
1.11 - Fri Apr 15 09:29:03 EDT 2016 |
| 62 |
Sends Perl::Tidy errors during testing to a string instead of fs (GH#9) |
| 63 |
- By default Perl::Tidy writes a perltidy.ERR file when it encounters |
| 64 |
errors. Perl::Tidy::Sweetened tests remove the error file then check |
| 65 |
to see if it is created after each test. This leads to a race |
| 66 |
condition with running in parallel (ie, prove -j 9). This commit makes |
| 67 |
Perl::Tidy write errors to a string buffer instead. Thanks @shlomif |
| 68 |
for the bug report (GH#9). |
| 69 |
[Only changes tests. No need to upgrade.] |
| 70 |
|
| 71 |
1.10 - Sun Mar 13 13:14:01 EDT 2016 |
| 72 |
Skips test that fails with Perl::Tidy 20160301 due to a Perl::Tidy bug |
| 73 |
- Adds test-all script to run against multiple versions of Perl::Tidy |
| 74 |
- Moves display of Perl::Tidy version to t/00-version.t |
| 75 |
Fixes typo in cpan badge URL |
| 76 |
[Only changes tests. No need to upgrade.] |
| 77 |
|
| 78 |
1.09 - Fri Mar 11 21:27:42 EST 2016 |
| 79 |
Converts from Module::Build to Module::Built::Tiny and the mbtiny tool |
| 80 |
Adds perltidy-sweet script to distribution |
| 81 |
Fixes issues with badges |
| 82 |
[Optional upgrade] |
| 83 |
|
| 84 |
1.08 - Fri Mar 11 20:55:29 EST 2016 |
| 85 |
Updates tests to support Perl::Tidy 20160301 and later |
| 86 |
- New version of Perl::Tidy has some support for new syntax. This is |
| 87 |
great, but it has some minor impact on spacing in our tests. |
| 88 |
[Upgrade recommended if you are using newer versions of Perl::Tidy] |
| 89 |
|
| 90 |
1.07 - Wed Jan 27 09:36:42 EST 2016 |
| 91 |
Adds new podweaver sections |
| 92 |
- Bugs in pod now point to GH issues |
| 93 |
- Adds contributors list to pod |
| 94 |
- Adds link to github in pod |
| 95 |
[No need to upgrade] |
| 96 |
|
| 97 |
1.06 - Tue Jan 26 17:21:34 EST 2016 |
| 98 |
Ignore 'method' functions (not pseudo-keywords) like those in |
| 99 |
MooseX::Role::Parameterized (PR#6, RT#106464). |
| 100 |
Use faster container-based infrastructure for Travis (PR#7). |
| 101 |
Both of these patch were contributed by @oschwald. Thanks! |
| 102 |
[Upgrade recommended if you use MooseX::Role::Parameterized] |
| 103 |
|
| 104 |
1.05 - Sat Aug 22 10:07:24 EDT 2015 |
| 105 |
Changes placeholder from comment at end of line, to munged sub/pkg name. |
| 106 |
So, instead of turning: |
| 107 |
|
| 108 |
method test_method_a ($self) { |
| 109 |
|
| 110 |
into |
| 111 |
|
| 112 |
sub test_method_a { # SUB1 |
| 113 |
|
| 114 |
we now turn it into |
| 115 |
|
| 116 |
sub SUB1_method_a { |
| 117 |
|
| 118 |
This eliminates issues with Perl::Tidy moving that trailing comment, and |
| 119 |
attempts to preserve the length of the method name so any changes to |
| 120 |
formatting due to name length will be consistent. |
| 121 |
|
| 122 |
Bug fixes and improvements to tests: |
| 123 |
- Bug fix: RT#106398 "long single line subs" should be handled correctly. |
| 124 |
- Adds (failing) test for RT#106464 |
| 125 |
- Adds checks for creation of perltidy.ERR file as part of tests |
| 126 |
- Adds simpler means of specifying TODO tests |
| 127 |
|
| 128 |
TODO: |
| 129 |
- Would like to preserve the *length* of the clauses in order to allow |
| 130 |
Perl::Tidy to format them. This could probably be done with prototypes |
| 131 |
for sub, but not sure what you do with packages. |
| 132 |
|
| 133 |
[This upgrade is recommended if you are experiencing issues with |
| 134 |
"# SUB_" comments being left in your code.] |
| 135 |
|
| 136 |
1.04 - Fri Mar 20 09:16:11 EDT 2015 |
| 137 |
This release fixes bug reported in RT#102815. |
| 138 |
- We had been overwriting the result of the -sbl and -bl flags, which |
| 139 |
control line breaks before opening subroutine brace. Thanks to Serge |
| 140 |
Colle for the bug report. |
| 141 |
- This fix makes changes to the way the post_filter parses a line. Please |
| 142 |
test this with your codebase and report any bugs. |
| 143 |
[This upgrade is recommended if you use the -sbl or -bl flags.] |
| 144 |
|
| 145 |
1.03 - Sat Dec 20 16:53:27 EST 2014 |
| 146 |
Adds the perltidy-sweet command |
| 147 |
- More clearly indicates how this differs from perltidy than perltidier. |
| 148 |
Thanks to Dave Rolsky (autarch) for the suggestion. |
| 149 |
- Keeps perltidier command as many users are already used to this. |
| 150 |
|
| 151 |
1.02 - Tue Dec 9 12:28:49 EST 2014 |
| 152 |
Fixes handling of 5.20 experimental signatures |
| 153 |
- It looked like Perl::Tidy would handle the new 5.20 experimental |
| 154 |
signatures, but it fails when you try to use an empty hash as a |
| 155 |
default value (and maybe elsewhere). |
| 156 |
- Have to add a block parse for "sub (...) {" |
| 157 |
Adds test for anonymous sub routines for perl 5.20 signatures |
| 158 |
|
| 159 |
1.01 - Sat Aug 23 14:35:05 EDT 2014 |
| 160 |
Adds support/test for Moops |
| 161 |
|
| 162 |
1.00 - Sat Aug 16 09:57:05 EDT 2014 |
| 163 |
Bumps to version 1.00. Been stable for several years now. |
| 164 |
|
| 165 |
0.27 - Wed Aug 6 04:32:47 EDT 2014 |
| 166 |
Adds $TODO flag that works with newest version of Test::More. |
| 167 |
|
| 168 |
0.26 - Mon Aug 4 03:53:40 EDT 2014 |
| 169 |
Deals with MooseX::Delcare's "is" attribute for classes (GH#5) |
| 170 |
Thanks to stratust for the bug report |
| 171 |
|
| 172 |
Adds test to ensure we work with perl 5.20 signatures |
| 173 |
It doesn't look like any changes are needed, but it's good to have the |
| 174 |
tests in place to make sure. |
| 175 |
|
| 176 |
0.25 - Fri Jun 6 10:38:57 EDT 2014 |
| 177 |
Fixes (GH#3): Typo in documentation. Method::Signatures::Simple instead of |
| 178 |
Method::Signature::Simple. |
| 179 |
Thanks to aggrolite for the bug report and patch. |
| 180 |
|
| 181 |
0.24 - Thu Apr 24 07:27:09 EDT 2014 |
| 182 |
Fixes RT#94633: class WORD::WORD was not parsed correctly. |
| 183 |
Thanks to Kent Fredric for the bug report. |
| 184 |
|
| 185 |
0.23 - Fri Jan 3 14:25:22 EST 2014 |
| 186 |
Re-uploads to try to fix metacpan.org indexing issue. |
| 187 |
|
| 188 |
0.22 - Fri Oct 4 08:11:50 EDT 2013 |
| 189 |
Removes extraneous files from release |
| 190 |
|
| 191 |
0.21 - Wed Oct 2 12:45:51 EDT 2013 |
| 192 |
Adds support for the new p5-mop syntax |
| 193 |
- Introduces a plugin to support twigils |
| 194 |
- Generalizes the SubSignature plugin to work with keywords that start |
| 195 |
blocks |
| 196 |
Further abstracts the creation of new subroutine filters |
| 197 |
Builds on Kent Fredric's plugin abstraction to make the parameter list, |
| 198 |
return type, and any other clause definable. |
| 199 |
|
| 200 |
0.20 - Mon May 6 11:16:28 EDT 2013 |
| 201 |
Significant refactoring (by Kent Fredric++) to make the filters pluggable. |
| 202 |
|
| 203 |
- Fixes RT#85076 bug (support for returns() syntax) |
| 204 |
- Switches to named captures to make the regex more clear (ok, since we |
| 205 |
already require 5.010 for the balanced paranes) |
| 206 |
- Stores signature (and any returns() declaration) externally rather |
| 207 |
than in the code via comments. Nice idea Kent++. |
| 208 |
- Adds a .perltidyrc file so all contributers style will be consistent |
| 209 |
|
| 210 |
0.19 - Fri Apr 26 10:20:13 EDT 2013 |
| 211 |
Removes unnecessary (?^:) wrapper around paren regex. Bumps req to 5.10 |
| 212 |
The (?^ cluster is causing failures on pre-5.14 version of perl. It does |
| 213 |
not appear to be necessary given our use of the regex. On the other |
| 214 |
hand, the use of (?-1) was added in 5.10, so let's bump the perl |
| 215 |
requirement back to 5.10 (it is hard to imagine anyone using modern |
| 216 |
method syntax on a pre-5.10 perl). |
| 217 |
|
| 218 |
0.18 - Fri Apr 26 09:43:24 EDT 2013 |
| 219 |
Fixes bug where balanced parens in the parameters list were not correctly |
| 220 |
formatted (RT#84868). |
| 221 |
|
| 222 |
Minor tweaks: |
| 223 |
- Adds Perl::Tidy::Sweet as an alternate module name. |
| 224 |
- Changes hash bang for the perltidier script so it is rewritten at install. |
| 225 |
- Drops minimum perl version to 5.8 |
| 226 |
- Adds travis-ci config file |
| 227 |
|
| 228 |
0.17 - Mon Feb 25 15:53:33 EST 2013 |
| 229 |
Fixes RT#83511 - empty parameter list improperly rewritten |
| 230 |
- Addresses a bug, reported by Kent Fredric, where "method for() {" was |
| 231 |
converted to "method foo { ()" |
| 232 |
|
| 233 |
0.16 - Fri Feb 8 16:19:37 EST 2013 |
| 234 |
Bumps the perl version requirement |
| 235 |
We want to use \K in our regexps. This was introduced in 5.10. Since |
| 236 |
the purpose of this is to support modern Perl syntax, we'll just |
| 237 |
assume users are using a modern version of perl. |
| 238 |
|
| 239 |
0.15 - Wed Nov 28 17:53:06 EST 2012 |
| 240 |
Adds missing prereq |
| 241 |
|
| 242 |
0.14 - Wed Sep 5 14:54:50 EDT 2012 |
| 243 |
Fixes lingering typos |
| 244 |
|
| 245 |
0.13 - Wed Sep 5 14:51:21 EDT 2012 |
| 246 |
Fixes lingering typos |
| 247 |
|
| 248 |
0.12 - Tue Sep 4 22:39:26 EDT 2012 |
| 249 |
Fixes typo in package name, adds pod and comments |
| 250 |
|
| 251 |
0.11 - Tue Sep 4 20:03:08 EDT 2012 |
| 252 |
Improves testing setup and implements formatting for "func" |
| 253 |
|
| 254 |
0.10 - Wed Aug 22 11:53:23 EDT 2012 |
| 255 |
Initial implementation. Much of the code and the idea come from |
| 256 |
Jonathan Swartz's blog post: |
| 257 |
http://www.openswartz.com/2010/12/19/perltidy-and-method-happy-together/ |