Debian Codegraph @

Changes

raw
1 Revision history for Perl extension Regexp::Assemble.
2
3 0.38 2017-06-20T08:51:00
4 - Fix test prereqs; pod tests moved to xt (RT#122136, RT#122137)
5 Many thanx to Karen Etheridge for these patches.
6 Note: I (Ron) have no idea where the version 2.07 originally comes from, although I have
7 seen it before. It was not in the very first distro I got my hands on. Anyway, I've
8 reverted Karen's patch to 0.38 to match the current sequence of version #s. Apart from
9 that, all these fine improvements are hers. If this version # causes difficulties, I'll
10 just bump it to 2.08.
11 - Adopt new repo structure. For details, see
12 http://savage.net.au/Ron/html/My.Workflow.for.Building.Distros.html. Specifically:
13 o Delete MANIFEST and META.yml, and hereafter auto-generate them.
14 o Modernize .gitignore and MANIFEST.SKIP.
15 o The code says Perl licence but the LICENCE file says Artistic, so replace LICENCE file
16 with LICENSE (so spelled), which says Perl.
17
18 0.37 2016-04-18T08:51:00
19 - No code changes.
20 - Accept pull request from monsieurp to add a LICENCE (sic, see below) file. With thanx.
21 This activity is part of the CPAN PR Challenge 2016.
22 - Update MANIFEST to include LICENCE file.
23 - Remove unicode characters from Changes and Changelog.ini files.
24 - Add TODO and update MANIFEST to note unicode issues.
25 - Add .gitignore to MANIFEST.SKIP.
26
27 0.36 2015-08-16T11:34:00
28 - Ron Savage is now co-maint.
29 - Move eg/ to examples/.
30 - Many thanx to the various parties who logged issues on RT. Some have been fixed, see below.
31 - Add examples/failure.01.pl, downloaded, and noted in docs, from
32 https://rt.cpan.org/Public/Bug/Display.html?id=104897
33 - Move pod tests into xt/author/pod.t by cutting them out of t/00_basic.t.
34 See https://rt.cpan.org/Public/Bug/Display.html?id=85686
35 and https://rt.cpan.org/Public/Bug/Display.html?id=85209
36 - Add repository https://github.com/ronsavage/Regexp-Assemble.git.
37 Note: github does not list Perl as one of the licence options, so the auto-generated
38 LICENSE (sic) file is not included in the distro.
39 See https://rt.cpan.org/Public/Bug/Display.html?id=103856.
40 - Fix some spelling errors in the pod.
41 See https://rt.cpan.org/Public/Bug/Display.html?id=84336
42 - Move ./Assemble.pm into lib/Regexp/.
43 - Move the contents of the TODO file into the docs, and delete that file.
44 - Rearrange pod, but not be running this module over it :-). Actually, put pod at end of file.
45 - Update Makefile.PL.
46 - Add Changelog.ini.
47 - Update MANIFEST.SKIP.
48
49 0.35 2011-04-07 13:18:48 UTC
50 - Update test suite to take into account the regexp
51 engine changes for 5.14. No functional differences.
52
53 0.34 2008-06-17 20:20:14 UTC
54 - Rewrite the usage of _re_sort() in order to deal
55 with blead change #33874. Bug smoked out by Andreas
56 Konig.
57
58 0.33 2008-06-07 14:40:57 UTC
59 - Tweaked _fastlex() to fix bug #36399 spotted by Yves
60 Blusseau ('a|[bc]' becomes 'a\|[bc]').
61 - Recognise POSIX character classes (e.g. [[:alpha:]].
62 Bug also spotted by Yves Blusseau (bug #36465).
63
64 0.32 2007-07-30 17:47:39 UTC
65 - Backed out the change introduced in 0.25 (that created
66 slimmer regexps when custom flags are used). As things
67 stood, it meant that '/' could not appear in a pattern
68 with flags (and could possibly dump core). Bug #28554
69 noted by David Morel.
70 - Allow a+b to be unrolled into aa*b, as that may allow
71 further reductions (bug #20847 noted by Philippe Bruhat).
72 Not completely implemented, but bug #28554 is sufficient
73 to push out a new release.
74 - eg/assemble understands -U to enable plus unrollings.
75 - Extended campaign of coverage improvements made to the
76 test suite caught a minor flaw in source().
77
78 0.31 2007-06-04 20:40:33 UTC
79 - Add a fold_meta_pairs flag to control the behaviour of
80 [\S\s] (and [\D\d], [\W\w]) being folded to '.' (bug
81 #24171 spotted by Philippe Bruhat).
82
83 0.30 2007-05-18 15:39:37 UTC
84 - Fixup _fastlex() bug in 5.6 (unable to discriminate \cX).
85 This allows bug #27138 to be closed.
86
87 0.29 2007-05-17 10:48:42 UTC
88 - Tracked patterns enhanced to take advantage of 5.10
89 (and works again with blead).
90 - The mutable() functionality has been marked as
91 deprecated.
92 - mailing list web page was incorrect (noted by Kai
93 Carver)
94
95 0.28 2006-11-26 21:49:26 UTC
96 - Fixed a.+ bug (interpreted as a\.+) (bug #23623)
97 - Handle /[a]/ => /a/
98
99 0.27 2006-11-01 23:43:35 UTC
100 - rewrote the lexing of patterns in _fastlex(). Unfortunately
101 this doesn't speed things up as much as I had hoped.
102 - eg/assemble now recognises -T to dump timing statistics.
103 - file parameter in add_file() may accept a single scalar
104 (or a list, as before).
105 - rs parameter in new() was not recognised as an alias
106 for input_record_separator,
107 - anchor_string_absolute as a parameter to new() would not
108 have worked correctly.
109 - a couple of anchor_<mumble>() methods would not have
110 worked correctly.
111 - Added MANIFEST.SKIP, now that the module is under
112 version control.
113 - Broke out the debug tests into a separate file
114 (t/09_debug.t).
115 - cmp_ok() tests that tested equality were replaced by is().
116 - tests in t/03_str.t transformed to a data-driven approach,
117 in order to slim down the size of the distribution tarball.
118 - Typo spotted in the documentation by Stephan (bug #20425).
119
120 0.26 2006-07-12 09:27:51 UTC
121 - Incorporated a patch to the test suite from barbie, to work
122 around a problem encountered on Win32 (bug #17507).
123 - The "match nothing" pattern was incorrect (but so obscure
124 as to be reasonably safe).
125 - Removed the unguarded tests in t/06_general.t that the
126 Test::More workaround in 0.24 skips.
127 - Newer versions of Sub::Uplevel no longer need to be guarded
128 against in t/07_warning.t.
129
130 0.25 2006-04-20 18:04:49
131 - Added a debug switch to elapsed pattern insertion and
132 pattern reduction times. Upgraded eg/assemble to make
133 use of it.
134 - Tweaked the resulting pattern when it uses 'imsx'
135 flags, giving (?i-xsm:(?:^a[bc]|de)) instead of
136 (?-xism:(?i:(?:^a[bc]|de))) .
137 - Changed the "match nothing" pattern to something slightly
138 less unsurprising to those who peek behind the curtain.
139 Reported by Philippe Bruhat (bug #18266).
140 - Tweaked the dump() output for chars \x00 .. \x1f
141
142 0.24 2006-03-21 08:50:42
143 - Added an add_file() method that allows a file of patterns to
144 be slurped into an object. Makes for less make-work code in
145 the client code (and thus one less thing to go wrong there).
146 - Added anchor methods that tack on \b, ^, $ and the like to an
147 assembled pattern.
148 - Rewrote new() and clone(). The latter is now no longer needs
149 to know the attribute names.
150 - _lex_stateful() subsumed into _lex()
151 - \d and \w assemble to \w instead of [\w\d] (and similarly for
152 \D and \W).
153 - The Test::More workaround stated in the 0.23 changes didn't
154 actually make it into t/06_general.t
155 - Rewrote tests in 06_general.t to use like()/unlike() instead
156 of ok(), and some more ok()'s replaced by cmp_ok()
157 elsewhere.
158 - Diagnostics for t/00_basic.t:xcmp was incorrect (displayed
159 first param instead of second).
160 - Guard against broken Sub::Uplevel in t/07_warning.t for
161 perl 5.8.8.
162 - Pretty-print characters [\x00-\x1f] in _dump() routines.
163 - Spell-checked the POD!
164
165 0.23 2006-01-03 17:03:35
166 - More bugs in the reduction code shaken out by examining
167 powersets. Exhaustive testing (iterating through the
168 powerset of a, b, c, d, e) makes me think that the
169 pathological cases are taken care of. The code is horrible,
170 though, a rewrite is next on the agenda.
171 - Guard against earlier buggy versions of Test::More (0.47)
172 in t/06_general.t
173 - Carp::croak rewritten as Carp::croak() to fix failures
174 noted on blead.
175 - Rewrote _re_path() for speed.
176 - added lexstr() routine.
177 - added eg/stress-test program.
178
179 0.22 2005-12-02 11:31:42 UTC
180 - Amended the test suite to ensure that it runsh0orrectly under
181 5.005_04. (The documentation was updated to reflect the
182 limitations). Sbastien Aperghis-Tramoni provided the impetus
183 for this fix. No other changes in functionality.
184 - The SKIP counts in t/06_general.t were out of whack for 5.6
185 and 5.005 testing.
186
187 0.21 2005-11-26 16:16:06 UTC
188 - Fixed a nasty bug after generating a series of lists of
189 patterns using Data::PowerSet: ^abc$ ^abcd$ ^ac$ ^acd$ ^b$
190 ^bc$ ^bcd$ ^bd$ would produce the incorrect
191 ^b(?:(?:ab?)?c)?d?$ pattern. It should if fact produce the
192 ^(?:ab?c|bc?)d?$ pattern.
193 - Improve the reduction of, for example, 'sing', 'singing',
194 'sting'. In prior versions this would produce
195 s(?:ing(?:ing)?|ting), now it produces s(?:(?:ing)?|t)ing.
196 The code is a bit horrendous (especially the part at the end
197 of _reduce_path). And it's still not perfect. See the TODO.
198 - Duplicate pattern detection wasn't quite right. The code
199 was lacking an else clause, which meant 'abcdef' followed by
200 'abc' would have the latter treated as a duplicate.
201 - Now that there's a statistic that keeps track of when a
202 duplicate input pattern was encountered, it becomes possible
203 to let the user know about it. Two possibilities are available:
204 a simple carp(), or a callback for complete control. The first
205 time I tried this out on a real file of 3558 patterns, it found
206 9 dups (or rather, 8 dups and a bug in the module).
207 - The above improvement means the test suite now requires
208 Test::Warn. As a result, t/07_pod.t was subsumed into
209 t/00_basic.t and t/07_warning.t was born.
210 - Added an eg/ircwatcher script that demonstrates how to set up a
211 dispatch table on a tracked regular expression. Credit to David
212 Rigaudiere for the idea.
213 - Made sure all routines use an explicit return when it makes
214 sense to do so. (I have a tendency to use implicit returns,
215 which is evil).
216 - the Carp module is require'ed on an on-demand basis.
217 - eg/naive updated to bring its idea of $Single_Char in line with
218 Assemble.pm.
219 - Cleaned up typos and PODos in the documentation. Fixed minor
220 typo noted by David Rigaudiere.
221 - Reworked as_string() and re() to play nicely with Devel::Cover,
222 but alas, the module no longer runs under D::C at all. Something
223 to do with the overloading of "" for re()?
224
225 0.20 2005-11-07 18:03:32 UTC
226 - Fixed long-standing indent bug:
227 $ra->add( 'a\.b' )->add( 'a-b' )->as_string(indent=>2)
228 ... would produce a(?:\.|-b) instead of a[-.]b.
229 - Fixed bug ($ and ^ not treated correctly). See RT ticket
230 #15522. Basically, '^a' and 'ma' produced [m^]a instead
231 of (?:^|m)a
232 - Statistics! See the stats_* methods.
233 - eg/assemble now has an -s switch to display these
234 statistics
235 - Minor tweak to t/02_reduce.t to get it to play nicely
236 with Devel::Cover.
237 - t/02_reduce.t had an unnecessary use Data::Dumper.
238
239 0.19 2005-11-02 15:16:16 UTC
240 - Change croaking diagnostic concerning Default_Lexer.
241 Bug spotted by barbie in ticket #15044.
242 - Pointer to C<Tree::Trie> in the documentation.
243 - Excised Test::Deep probe in 00_basic.t, since the
244 module is no longer used.
245 - Detabbed eg/*
246
247 0.18 2005-10-08 20:37:53 UTC
248 - Fixed '\Q[' to be as treated as '\[' instead of '['.
249 What's more, the tests had this as the Right Thing.
250 What was I thinking? Wound up rewriting _lex_stateful
251 in a much less hairier way, even though it now uses
252 gotos.
253 - Introduced a context hash for dragging around the bits
254 and pieces required by the descent into _reduce_path.
255 It doesn't really help much right now, but is vital for
256 solving the qw(be by my me) => /[bm][ey]/ problem. See
257 TODO for more notes.
258 - Fixed the debug output to play nicely with the test
259 harness (by prefixing everything with a #). It had never
260 been a problem, but you never know.
261 - Added a script named 'debugging' to help people figure
262 out why assembled patterns go wonky (which is invariably
263 due to nested parentheses).
264 - Added a script 'tld', that produces a regexp for
265 matching internet Top Level Domain names. This happens to
266 be an ideal example of showing how the alternations are
267 sorted.
268 - Added a script 'roman', that produces a regexp for
269 matching Roman numerals. Just for fun.
270 - Removed the 'assemble-check' script, whose functionality
271 is adequately dealt with via 'assemble -t'.
272 - Tightened up the explanation of why tracked patterns are
273 bulkier
274 - ISOfied the dates in this file.
275
276 0.17 2005-09-10 16:41:22 UTC
277 - Add capture() method.
278 - Restructure _insert_path().
279 - Factor out duplicated code introduced in 0.16 into
280 _build_re().
281 - Ensure that the test suite exercises the fallback
282 code path for when Storable is missing, even if
283 Storable is available.
284 - Added test_pod_coverage, merely to earn a free
285 Kwalitee point.
286
287 0.16 2005-08-22 23:04:02 UTC
288 - Tracked patterns silently ignored imsx flags. Spotted by
289 Bart Lateur.
290
291 0.15 2005-04-27 06:50:31 UTC
292 - Oops. Detabbed all the files and did not rerun the tests.
293 t/03_str.t explicitly performs a test on a literal TAB
294 character, and so it failed. Always, always, *ALWAYS* run
295 the test suite as the last task before uploading. Grrr.
296
297 0.14 2005-04-27 00:32:43 UTC
298 - Performance tuning release. Played around significantly
299 with _insertr and lex but major improvement will only
300 come about by writing the lexing routine in C.
301 - Reordered $Default_Lexer to bring the most common cases
302 to the front of the pattern.
303 - Inline the effects of \U, \L, \c, \x. This is handled by
304 _lex_stateful (which offloads some of the worst case
305 lexing costs into a separate routine and thus makes the
306 more usual cases run faster). Handling of \Q in the
307 previous release was incorrect. (Sigh).
308 - Backslash slashes.
309 - Passed arrays around by reference between _lex and a
310 newly introduced _insertr routine.
311 - Silenced warning in _slide_tail (ran/reran)
312 - Fixed bug in _slide_tail (didn't handle '0' as a token).
313 One section of the code used to do its own sliding, now it
314 uses _slide_tail.
315 - Fixed bug in _node_eq revealed by 5.6.1 (implicit ordering
316 of hash keys).
317 - Optimized node_offset()
318 - replace ok() in tests by better things (is, like, ...)
319 - removed use of Test::Differences, since it doesn't work on
320 complex structures.
321
322 0.13 2005-04-11 21:59:26 UTC
323 - Deal with \Q...\E patterns.
324 - $Default_Lexer pattern fails on 5.6.x: it would lex
325 '\-' as '\', '-'.
326 - Tests to prove that the global $_ is not clobbered
327 by the module.
328 - Used cmp_ok rather than ok where it makes sense.
329 - Added a (belated) DEBUG_LEX debugging mode
330
331 0.12 2005-04-11 23:49:16 UTC
332 - Forgot to guard against the possibility of
333 Test::Differences not being available. This would cause
334 erroneous failures in the test suite if it was not
335 installed.
336 - Quotemeta was still giving troubles. Exhaustive testing
337 also turned up the fact that a bare add('0') would be
338 ignored (and thus the null-match pattern would be returned.
339 - More tweaks to the documentation.
340
341 0.11 Sat Apr 9 19:44:19 2005 UTC
342 - Performed coverage testing with Devel::Cover
343 Numerous tests added as a result. Borderline bugs
344 fixed (bizarre copy of ARRAY in leave under D::C -
345 fixed in 0.10).
346 - Finalised the interface to using zero-width lookahead
347 assertions. Depending on the match/failure ratio of
348 the pattern to targets, the pattern execution may be
349 slower with ZWLAs than without. Benchmark it.
350 - Made _dump call _dump_node if passed a reference to a
351 hash. This simplifies the code a bit, since one no
352 longer has to worry about whether the thing we are
353 looking at is a node or a path. All in all a minor
354 patch, just to tidy up some loose ends before
355 moving to heftier optimisations.
356 - The fix in 0.10 for quotemeta didn't go far enough.
357 Hopefully this version gets it right.
358 - A number of minor tweaks based on information
359 discovered during coverage testing.
360 - Added documentation about the mailing list. Sundry
361 documentation tweaks.
362
363 0.10 2005-03-29 09:01:49 UTC
364 - Correct Default_Lexer$ pattern to deal with the
365 excessively backslashed tokens that C<quotemeta>
366 likes to produce. Bug spotted by Walter Roberson.
367 - Added a fix to an obscure bug that Devel::Cover
368 uncovered. The next release will fold in similar
369 improvements found by using Devel::Cover.
370
371 0.09 2005-01-22 9:28:21 UTC
372 - Added lookahead assertions at nodes. (This concept is
373 shamelessly pinched from Dan Kogai's Regexp::Optimizer).
374 The code is currently commented out, because in all my
375 benchmarks the resulting regexps are slower with them.
376 Look for calls to _combine if you want to play around
377 with this.
378 - $Default_Lexer and $Single_Char regexps updated to fix
379 a bug where backslashed characters were broken apart
380 between the backslash and the character, resulting in
381 uncompilable regexps.
382 - Character classes are now sorted to the left of a list of
383 alternations.
384 - Corrected license info in META.yml
385 - Started to switch from ok() to cmp_ok() in the test suite
386 to produce human-readable test failures.
387
388 0.08 2005-01-03 11:23:50 UTC
389 - Bug in insert_node fixed: did not deal with the following
390 correctly: qw/bcktx bckx bdix bdktx bdkx/ (The assymetry
391 introduced by 'bdix' threw things off, or something like
392 that).
393 - Bug in reduced regexp generation (reinstated code that had
394 been excised from _re_path() et al).
395 - Rewrote the tests to eliminate the need for Test::Deep.
396 Test::More::is_deeply is sufficient.
397
398 0.07 2004-12-17 19:31:18 UTC
399 - It would have been nice to have remembered to update the
400 release date in the POD, and the version in the README.
401
402 0.06 2004-12-17 17:38:41 UTC
403 - Can now track regular expressions. Given a match, it is
404 possible to determine which original pattern gave rise to the
405 match.
406 - Improved character class generation: . (anychar) was not
407 special-cased, which would have lead to a.b axb giving a[.x]b
408 Also takes into account single-char width metachars like \t
409 \e et al. Filters out digits if \d appears, and for similar
410 metachars (\D, \s, \W...)
411 - Added a pre_filter method, to perform input filtering prior
412 to the pattern being lexed.
413 - Added a flags method, to allow for (?imsx) pattern modifiers.
414 - enhanced the assemble script: added -b, -c, -d, -v;
415 documented -r
416 - Additions to the README
417 - Added Test::Simple and Test::More as prerequisites.
418
419 0.05 2004-12-10 11:52:13 UTC
420 - Bug fix in tests. The skip test in version 0.04 did not deal
421 correctly with non-5.6.0 perls that do not have Test::Deep
422 installed.
423
424 0.04 2004-12-09 22:29:56 UTC
425 - In 5.6.0, the backlashes in a quoted word list, qw[ \\d ],
426 will have their backslashes doubled up. In this case, don't
427 run the tests. (Reading from a file or getting input from
428 some other source other than qw[] operators works just fine).
429
430 0.03 2004-12-08 21:55:27 UTC
431 - Bug fix: Leading 0s could be omitted from paths because of the
432 difference between while($p) versus while(defined($p)).
433 - An assembled pattern can be generated with whitespace. This can be
434 used in conjunction with the /x modifier, and also for debugging.
435 - Code profiled: dead code paths removed, hotspots rewritten to run
436 more quickly.
437 - Documentation typos and wordos.
438 - assemble script now accepts a number of command line switches to
439 control its behaviour.
440 - More tests. Now with Test::Pod.
441
442 0.02 2004-11-19 11:16:33 UTC
443 - An R::A object that has had nothing added to it now produces a
444 pattern that explicitly matches nothing (the original behaviour would
445 match anything).
446 - An object can now chomp its own input. Useful for slurping files. It
447 can also filter the input tokens and discard patterns that don't adhere
448 to what's expected (sanity checking e.g.: don't want spaces).
449 - Documented and added functions to allow for the lexer pattern to be
450 manipulated.
451 - The reset() method was commented out (and the test suite didn't catch
452 the fact).
453 - Detabbed the Assemble.pm, eg/* and t/* files (I like interpreting
454 tabs as four spaces, but this produces horrible indentation on
455 www.cpan.org).
456 - t/00_basic.t test counts were wrong. This showed up if Test::Deep was
457 not installed.
458 - t/02_reduce.t does not need to 'use Data::Dumper'.
459 - Tweaked eg/hostmatch/hostmatch; added eg/assemble, eg/assemble-check
460 - Typos, corrections and addtions to the documentation.
461
462 0.01 2004-07-09 21:05:18 UTC
463 - original version; created by h2xs 1.19 (seriously!)