Age | Commit message (Collapse) | Author | Files |
|
As a reaction to https://log.perl.org/2020/12/rtcpanorg-sunset.html,
bugtracker switched to puszcza.gnu.org.ua
|
|
* Changes: Update.
* Makefile.PL: Require Config::AST 1.05
* lib/Config/Parser.pm: Use L<> for cross-references.
* lib/Config/Parser/Ini.pm (_readconfig): Fix creation of
section nodes. Remove access to the private class member
|
|
|
|
|
|
|
|
* Makefile.PL: Drop dependency on Class::Inspector
* lib/Config/Parser.pm (new): Use mro to track descendant classes.
(findsynt): Revert
* t/TestConfig.pm
(new): Test for existence of the DATA handle before trying to read
from it.
(canonical_lexicon): New method.
* t/conf09.t: New test.
|
|
* Changes: Update.
* lib/Config/Parser.pm (new): Pass class as an argument to findsynt,
instead of using class method syntax.
(findsynt): Exclude *::SUPER class, returned on perl 5.16.3 and below.
|
|
|
|
* lib/Config/Parser.pm (loadsynt): Return a reference to the reference
hash. Process eventual __options__ keywords in sections.
Finish documentation.
* lib/Config/Parser/Ini.pm: Add documentation
* t/ConfigSpec2.pm: Use the __options__ keyword.
|
|
|
|
* lib/Config/Parser.pm (inited): Remove.
(loadsynt): Don't create a dedicated object for parsing the
syntax definition. Use the principal one instead.
|
|
This commit introduces the "mangle" method, which can be implemented
by the caller in order to run any additional tree modifications after
a successful parse and commit (see the new testcase for an example).
* lib/Config/Parser.pm (new): Call the init method if lexicon
hash has been loaded.
(init,inited,commit): New methods.
* t/ConfigSpec3.pm: New file.
* t/TestConfig.pm: Don't attempt to load empty files.
* t/conf08.t: New file.
|
|
* lib/Config/Parser.pm (loadsynt): If the setting is of array type,
use the words remaining after attribute processing as its default
value. Otherwise, concatenate the words using single whitespace
character as a delimiter and use that value as the default.
|
|
|
|
|
|
|