-
Notifications
You must be signed in to change notification settings - Fork 10
/
Changes
388 lines (275 loc) · 10.5 KB
/
Changes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
1.0.1_1 (yyyy-mm-dd)
API / Behaviour Changes:
- None.
New Features:
- None.
Enhancements:
- None.
Bug Fixes:
- None.
Code Maintenance
- None.
Dependencies:
- None.
Packaging:
- None.
1.0.1 (2022-10-14)
Enhancements:
- Warn on old hook installation.
Code Maintenance
- Minor simplification of the install code.
1.0.0 (2022-10-14)
Code Maintenance
- Minor documentation & code updates.
1.0.0_2 (2022-10-05)
Enhancements:
- Restore file modification time after tidying.
- Check for NO_GITHOOK_PERLTIDY in hooks/pre-commit directly
Code Maintenance:
- Adjust to the new OptArgs2 version 2.0.0 syntax.
Dependencies:
- (development only) use Class::Inline instead of hand-written
object code.
Packaging:
- cpanfile: fix wrong P̶o̶d̶Perl::Tidy::Sweetened references.
1.0.0_1 (2022-04-10)
API / Behaviour Changes:
- Use $PATH to find githook-perltidy in pre-commit hook, fixing
https://rt.cpan.org/Ticket/Display.html?id=139159.
New Features:
- Add "--absolute" flag to restore full-path call in hook.
Enhancements:
- Simplify output code with OptArgs2::StatusLine.
Dependencies:
- Add missing 'configure' dependency on ExtUtils::MakeMaker::CPANfile.
- Depend on OptArgs2 version 2.0.0.
Packaging:
- Restore App/githook_perltidy.pm as App::githook_perltidy
doesn't seem to be indexed from lib/App/githook/perltidy.pm.
0.12.3 (2018-11-22)
Bug Fixes:
- Support filenames with spaces
- Fix broken "configures" Path::Tiny dependency
Packaging:
- Fold App/githook_perltidy.pm into lib/App/githook/perltidy.pm.
0.12.2 (2018-09-25)
Enhancements:
- Warn when githook-perltidy related .dotfiles are not covered
by MANIFEST.SKIP.
0.12.1 (2018-09-22)
API / Behaviour Changes:
- Set README width from .podtidy-opts --column
Bug Fixes:
- Always tidy file in .readme_from when it changes
0.12.1_1 (2018-08-19)
API / Behaviour Changes:
- Remove implementation of the depreciated MAKE ARGS feature
- Remove implementation of legacy post-commit command
Enhancements:
- Add global --help and --version options
- Show what type of tidy is taking place on the status lines.
- Clearer usage message
- Force README file generation when .readme_from is added to
the repository.
Bug Fixes:
- Restore the usage: message name back to "githook-perltidy"
which was broken (showed as just perltidy") by the move to
App::githook::perltidy.
- Correctly deal with spaces in the filesystem path to
the .perltidyrc and other config files.
Packaging:
- Add Github issues url to meta data
0.12.0 (2018-08-02)
Packaging:
- Generate t/githook-perltidy with generic subroutine
0.11.11_4 (2018-07-31)
New Features:
- Tidy files which are copied or moved by the commit. That
these were not tidied was an oversight from the very
beginning.
Enhancements:
- Make --verbose messages actually useful
Bug Fixes:
- Remove debug usleep() call introduced in 0.11.5_2. Do I get
to call that a performance improvement? :-/
Dependencies:
- Instead of recommending Perl::Tidy::Sweetened make it a
suggestion and also suggest Perl::Critic.
- Require Perl::Tidy::Sweetened and Perl::Critic on "develop".
Packaging:
- Transition to App::githook::perltidy away from
App::githook_perltidy to match the distribution name.
0.11.11_3 (2018-07-31)
Enhancements:
- Documentation updates
- Performance improvements:
- Move instead of copy tidied files back to working tree.
- Only call git-checkout-index once per commit instead of
once per committed file.
- Only call git-add once per commit instead of once per
committed file.
0.11.11_2 (2018-07-27)
New Features:
- Add support for Perl::Critic checks
Enhancements:
- Minor documentation updates
- Minor code clarity improvements
- Skip checks when NO_GITHOOK_PERLTIDY is set
- Finish faster when no tidying needed
Dependencies:
- Add Perl::Tidy::Sweetened as a runtime "recommends"
dependency.
Packaging:
- Renamed development branch "devel" to "master" and now just
have a single "dist" branch for distributions. Now visitors
to Github will see current development history first thing
instead of searching around for a strange branch scheme.
0.11.11_1 (2018-07-17)
New Features:
- Add support for Perl::Tidy::Sweetened inspired by a patch by
Mark Grimes (MGRIMES)
Enhancements:
- Use Test::TempDir::Tiny instead of home-grown temp directory
code.
- Minor code refactoring
Packaging:
- Use META-SPEC version 2 and add Github repository URLs.
0.11.10 (2018-07-14)
Packaging:
- Return to the original distribution name of
App-githook-perltidy with a package name of
App::githook_perltidy. Seems that I can't change anything
without losing PAUSE history or permissions.
0.11.9 (2018-07-13)
Packaging:
- Revert back to the old distribution name of
App::githook_perltidy. Otherwise CPAN/PAUSE would require
githook::perltidy to exist and I'm not sure the community
wants Apps in that namespace.
0.11.8 (2018-07-13)
API / Behaviour Changes:
- Re-named .readme_from_pod -> .readme_from
Enhancements:
- Minor documentation fixes.
0.11.7_1 (2018-07-13)
API / Behaviour Changes:
- Remove documentation references to the MAKE ARGS feature
which will be depreciated in the future.
New Features:
- Automatic README generation from a tidied POD file
Enhancements:
- Easier to understand tests
Packaging:
- Change distribution name to githook-perltidy instead of
App::githook_perltidy. Not sure if CPAN allows that, but that
is what trail distributions are for.
0.11.6 (2018-06-28)
Bug Fixes:
- Correctly generate usage message when passed an invalid
COMMAND argument.
0.11.5 (2018-06-27)
Bug Fixes:
- Fix broken podtidy for partial file commits
Packaging:
- Ensure all tests are run (recursively) and not just the
top-level one
- Fix up my surname in Makefile.PL meta data
0.11.5_2 (2018-06-27)
Bug Fixes:
- Robust Perl::Tidy error detection instead of hackiness
Dependencies:
- Upgraded from OptArgs to OptArgs2 (0.0.10).
- Nothing exported with Exporter::Tidy anymore
Packaging:
- Convert Makefile.PL from Module::Install to
ExtUtils::MakeMaker plus a cpanfile.
0.11.5_1 (2017-04-28)
Bug Fixes:
- Don't raise an exception for erroneous Perl::Tidy errors
Other:
- Hide the post-commit command in the usage message and give it
even less emphasis in the documentation.
- Stop Makefile.PL from complaining about not being able to
detect the perl version.
- Do not index any package on CPAN except App::githook_perltidy
- Replace File::Slurp with Path::Tiny (only used in tests)
0.11.4 (2016-05-26)
Other:
- No longer install a post-commit hook (unecessary since
0.11.3_1) but we keep the post-commit command as a no-op for
backwards compatability with existing installations.
0.11.3_2 (2016-05-21)
Dependencies:
- Don't use the defined-or "//" operator - min perl version
5.6.
0.11.3_1 (2016-05-20)
Bug Fixes:
- Fix license typo in Makefile.PL (Mohammad S Anwar)
- Replace backup/recover (stash/pop) implementation with setting
GIT_WORK_TREE to a temporary directory. This should fix
https://github.com/mlawren/githook-perltidy/issues/8.
0.11.2 (2016-01-20)
New Features:
- Added a "--force" option to install, to overwrite existing
git hooks
Enhancements:
- Use Path::Tiny everywhere instead of File::Spec::Functions
- Convert to OptArgs
- More robust tests
- Reduce testing noise:
- Do not build on systems without a git.
- Do run run make tests on systems without a make.
- Detect plenv scripts as Perl
Bug Fixes:
- Full-path issue:
https://github.com/mlawren/githook-perltidy/issues/3
- Allow multiple 'make' arguments
- Properly handle paths with spaces or other odd characters
(thanks to Finn Smith)
0.10.2 (2012-06-27)
Enhancements:
- Tidying of POD is now optional. Pod::Tidy will only be called
if .podtidy-opts exists (and is in the repository)
Bug Fixes:
- Replace lost verbosity with internal *::Tidy calls
0.10.1 (2012-05-06)
Enhancements:
- Use Pod::Tidy directly instead of calling out to podtidy(1)
- Use Perl::Tidy directly instead of calling out to perltidy(1)
0.10.0 (2012-05-06)
New Features:
- Support a project-wide ".podtidy-opts" file
0.9.3 (2012-05-05)
Enhancements:
- Attempt to make tests a little more portable
0.9.2 (2012-05-05)
Bug Fixes:
- Stop using hard-coded /usr/bin/perl in tests
0.9.1 (2012-05-03)
Enhancements:
- Second release to CPAN
- Include dummy App::githook_perltidy module for CPAN indexing
- Move to a http://semver.org style versioning scheme
Bug Fixes:
- _Really_ Handle partially indexed files better on post-commit
0.04 (2012-05-01)
Enhancements:
- Handle partially indexed files better on post-commit
- Distribution name change to App-githook-perltidy.
- First release to CPAN (mostly for the tester reports)
0.03 (2011-10-14)
Enhancements:
- PERLTIDY_MAKE environment variable support.
- Small portability fixes.
Bug Fixes:
- IMPORTANT! Properly detect a partial dirty tree.
0.02 (2011-09-20)
Enhancements:
- Depend on Pod::Tidy and Perl::Tidy to bring in the CLI tools.
- Initial tests added.
Bug Fixes:
- IMPORTANT! Actually do what the documentation claims:
* Detect perltidy failure
* Stop commit on failure
0.01 (2011-09-19)
Initial Release.