Revision history for Text-Parser
1.000 2020-11-27 20:38:18-08:00 America/Los_Angeles
- Replaces many error classes in Text::Parser::Errors with a single class Text::Parser::Error.
- Text::Parser::Error is just a child of Throwable::Error and can be handled as all Throwable::Error objects.
- This is not backward compatible with previous versions which were throwing objects of Text::Parser::Errors.
- New attribute line_wrap_style, new method custom_line_unwrap_routines
- New attributes track_indentation, indentation_str, and custom_line_trimmer
- New methods custom_line_unwrap_routines, and this_indent in Text::Parser
- Feature to use 'stashed variables'.
- 2x performance improvement.
- Text::Parser::RuleSpec provides syntactical sugar to subclass Text::Parser
- Text::Parser::RuleSpec provides syntactical sugar to subclass Text::Parser: applies_rule, unwraps_lines_using, disables_superclass_rules
- Improved POD documentation to reflect latest features
0.927 2019-06-22 20:35:56-07:00 America/Los_Angeles
- Speed improvement: reduced runtime of read() calls to about 50% of original runtime.
- Added an initial version of Text::Parser::RuleSpec. Not ready for use yet. Don't use this yet.
0.926 2019-06-21 11:48:08-07:00 America/Los_Angeles
- Removed unnecessary module dependencies. Users can always use Import::Into when they need to add new functions (Issue #52)
- Bug with shared variables not being removed after read call fixed (Issue #49)
- Minor updates to documentation
0.925 2019-06-17 07:49:04-07:00 America/Los_Angeles
- Changed the primary usage model from inheritance-based to regular use in main.
- A new class for text parsing rules created Text::Parser::Rule (#17).
- Import functions from String::Util, Scalar::Util, String::Util::Match, String::Util::Range, and String::Index.
These can be accessed inside the ExAWK string rules directly (#44)
- Added new methods to Text::Parser called add_rule to create rules (#37), and clear_rules to delete rules (#40)
- Added new methods to Text::Parser called BEGIN_rule and END_rule (#47). The current line is not accessible in this rule.
- Added new method join_range available when auto_split => 1 (#38)
- Rules support range shortcuts like ${3+}, @{2+}, and \@{3+} (#39), (#45)
- Added ability to create parse-time variables accessible across rules such as ~var (#48)
0.920 2019-06-09 19:48:42-07:00 America/Los_Angeles
- Bug in new version of Dist::Zilla::Plugin::Test::MinimumVersion causes bug. Work-around provided (#35). See
Issue #8 on https://github.com/doherty/Dist-Zilla-Plugin-Test-MinimumVersion/issues
0.919 2019-04-21 23:53:30-07:00 America/Los_Angeles
- Change auto_split and multiline_type into read-write attributes: multiline_type can be changed back to undef (Issues #32, #31, #26)
- Add a new function called field_range that will return the elements in a given range (#26)
- Check that file is a plain text file with -T, make code ready for future Text::Parser::AutoUncompress (Issue #33)
- Elaborated Pod for functions in Text::Parser::AutoSplit and mentioned them in Text::Parser Pod (Issue #27)
0.918 2019-04-18 00:28:58-07:00 America/Los_Angeles
- Add a test to ensure that auto_split works correctly even without auto_trim (Issue: #18)
- Add a new method named this_line which works in all subclasses (Issue: #20)
- Don't use setting method in Text::Parser::Multiline
- Remove line_auto_manip and setting methods
- Refactor code in Text::Parser::Multiline
- Re-organize and simplify POD, test all links (Issue: #22)
0.917 2019-04-15 22:56:49-07:00 America/Los_Angeles
- Fixed broken link in pod as reported by CPANTS. #15 (by M Anwar)
- Fixed a similar broken link in pod as reported in CPANTS for save_record from Autoplit.pm
- Added a new test to check that when both auto_split and auto_trim are on, auto_trim works first
0.916 2019-04-15 20:12:03-07:00 America/Los_Angeles
- Minor patches to ensure class doesn't fail due to Syntax::Keyword::Try
- Added test for one POD example
- Made exceptions prominent on main POD page
- Cleaned up CONTRIBUTING.md
0.915 2019-04-14 23:50:51-07:00 America/Los_Angeles
- Remove exceptions based on Exception::Class and use Throwable::SugarFactory instead
- Add Text::Parser::Errors. Use exceptions from here in Text::Parser code.
- Make Dist::Zilla::Plugin::Test::TidyAll required only for the build phase of the distro - close issue #13 on Github
- Update and improve POD to reference errors in Text::Parser::Errors package
- Document the errors and make recommendations for error handling in POD
- Add README.PATCHING, and update CONTRIBUTING.md
0.911 2019-04-11 21:17:53-07:00 America/Los_Angeles
- Added two new attributes auto_split and FS to split lines into fields
- Updated POD
0.910 2019-02-10 17:52:24-08:00 America/Los_Angeles
- Added a new attribute auto_trim and have four different values for it
- Added a method line_auto_manip that can be overridden in subclasses
- Enabled rw accessors for multiline_type and auto_chomp attributes
- Edited SpiceParser-3.t and Text-Parser.t to accommodate test changes
0.903 2019-02-08 20:21:31-08:00 America/Los_Angeles
- Reduce redundate Moose types, improve code coverage
0.902 2019-02-07 22:24:40-08:00 America/Los_Angeles
- Namespace all types inside Text::Parser class.
0.901 2019-02-07 22:00:59-08:00 America/Los_Angeles
- Fix issues with FreeBSD
0.900 2019-02-06 20:43:40-08:00 America/Los_Angeles
- Changed implementation to be Moose-based, so that Moose users can easily use this class.
- Deprecated setting method, added two new methods instead: multiline_type, auto_chomp
- Added a new method push_records. Save records internally calls push_records.
- Added tests for all methods. Updated POD.
0.803 2019-01-21 15:49:03-08:00 America/Los_Angeles
- Cleaned up code using tidyall ; perlcritic warnings fixed
0.802 2019-01-15 23:58:56-08:00 America/Los_Angeles
- Fixed copyright year. Corrected Bug tracker link. Made POD brief and readable.
0.801 2019-01-14 19:40:50-08:00 America/Los_Angeles
- Improved documentation
0.800 2019-01-14 12:28:23-08:00 America/Los_Angeles
- Added auto_chomp and multiline_type options in object constructor
- Added multi-line parser role with Text::Parser::Multiline
- Added tests and improved code coverage
0.753 2019-01-04 21:38:06-08:00 America/Los_Angeles
- Skip tests of unreadable files for MSWin32.
- A safer CSV example in Example 1 & 2. Added tests based on that.
- Grammatical/typo fixes in POD.
0.752 2019-01-02 20:25:16-08:00 America/Los_Angeles
- One test fails for superuser. Fixing that.
- Known issue in MSWin32 seems related to the same thing. Don't know if it gets fixed.
- Made POD less verbose.
0.751 2019-01-01 20:30:37-08:00 America/Los_Angeles
- Documentation looks better. Made links where it makes sense. Re-arranged the information better.
0.750 2019-01-01 19:37:50-08:00 America/Los_Angeles
- Correct problems in test for Win32 platform compatibility.
- Improve documentation to give examples of what all the functions do.
- Changed the spec for filehandle() and read()
- Added tests to cover the new spec.
0.700 2019-01-01 13:20:43-08:00 America/Los_Angeles
- Some operating systems can read from STDOUT and some cannot. Same goes for output file handles.
- Improved documentation.
- Improved code coverage using Devel::Cover for the first time. We now have 99.5% coverage.
- Added a new method called abort_reading().
0.502 2018-12-29 08:18:06-08:00 America/Los_Angeles
- STDOUT and other output files don't uniformly respond to the -r test on all operating systems. This will need more work.
0.501 2018-12-23 20:51:09-08:00 America/Los_Angeles
- This will be a known issue for V0.500 and V0.501, until fixed:
- The test for checking that filehandle is read-only is actually not working. Fixing the tests for now to mark the test as TODO.
0.500 2018-12-23 20:14:10-08:00 America/Los_Angeles
- Renamed this class as Text::Parser after RT#127067 by James Keenan
- Added the ability to parse text from filehandles, thus the name Text::Parser and not Text::File::Parser
- Added new method filehandle just to provide interface similar to filename.
- Indicated in POD that Text::Parser supersedes TextFileParser.
0.204 2018-08-08 20:37:32-07:00 America/Los_Angeles
- Removed use of indirect method notation in POD
0.203 2018-08-08 17:43:11-07:00 America/Los_Angeles
- Clearer documentation
0.202 2018-08-08 00:03:52-07:00 America/Los_Angeles
- Added bugtracking info to POD
0.201 2018-08-07 23:19:45-07:00 America/Los_Angeles
- Improved documentation
- Removed the use Role::Tiny from the tests
0.200 2018-08-07 16:31:53-07:00 America/Los_Angeles
- Changed versioning scheme
- Updated documentation
0.1821907 2018-08-07 14:37:11-07:00 America/Los_Angeles
- Removed record_list_pointer method
- Updated documentation
- Added tests using a Role::Tiny
0.1821905 2018-08-07 09:22:12-07:00 America/Los_Angeles
- Added a new method pop_record
- Updated POD and simplified examples
- Added more tests
0.1821902 2018-08-06 23:33:10-07:00 America/Los_Angeles
- Added the first tests
- Removed method make_sense_of_line. Derived classes override only save_record
- Updated documentation briefly.
0.1821900 2018-08-06 20:41:42-07:00 America/Los_Angeles
- Put your comment here