diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2019-08-29 08:19:31 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2019-08-29 08:22:18 +0300 |
commit | 719e57aabc1c65cb5b9feaf1733859f0e8d4931f (patch) | |
tree | 88166e86c5b9bc4c536536bb7783af6580961cda | |
parent | d69ba51bb8498146d07a08031de3685e6cda0768 (diff) | |
download | config-parser-719e57aabc1c65cb5b9feaf1733859f0e8d4931f.tar.gz config-parser-719e57aabc1c65cb5b9feaf1733859f0e8d4931f.tar.bz2 |
Update for Config::AST 1.05v1.04
* 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
-rw-r--r-- | Changes | 3 | ||||
-rw-r--r-- | Makefile.PL | 2 | ||||
-rw-r--r-- | lib/Config/Parser.pm | 12 | ||||
-rw-r--r-- | lib/Config/Parser/Ini.pm | 13 |
4 files changed, 16 insertions, 14 deletions
@@ -2,2 +2,5 @@ Revision history for Perl extension Config::Parser | |||
2 | 2 | ||
3 | 1.04 Thu Aug 29 08:17:52 2019 | ||
4 | - use Config::AST 1.05 | ||
5 | |||
3 | 1.03 Fri Aug 23 14:44:18 2019 | 6 | 1.03 Fri Aug 23 14:44:18 2019 |
diff --git a/Makefile.PL b/Makefile.PL index 366fee2..13a762d 100644 --- a/Makefile.PL +++ b/Makefile.PL | |||
@@ -18,3 +18,3 @@ WriteMakefile(NAME => 'Config::Parser', | |||
18 | 'Text::Locus' => '1.01', | 18 | 'Text::Locus' => '1.01', |
19 | 'Config::AST' => '1.01' | 19 | 'Config::AST' => '1.05' |
20 | }, | 20 | }, |
diff --git a/lib/Config/Parser.pm b/lib/Config/Parser.pm index bd230b5..ee39c2e 100644 --- a/lib/Config/Parser.pm +++ b/lib/Config/Parser.pm | |||
@@ -9,3 +9,3 @@ use mro; | |||
9 | 9 | ||
10 | our $VERSION = "1.03"; | 10 | our $VERSION = "1.04"; |
11 | 11 | ||
@@ -179,3 +179,3 @@ B<Config::Parser> provides a framework for writing configuration file | |||
179 | parsers. It is an intermediate layer between the abstract syntax tree | 179 | parsers. It is an intermediate layer between the abstract syntax tree |
180 | (B<Config::AST>) and implementation of a parser for a particular | 180 | (L<Config::AST>) and implementation of a parser for a particular |
181 | configuration file format. | 181 | configuration file format. |
@@ -282,3 +282,3 @@ Dictionary of allowed configuration statements in the file. You will not | |||
282 | need this parameter. It is listed here for completeness sake. Refer to | 282 | need this parameter. It is listed here for completeness sake. Refer to |
283 | the B<Config::AST> constructor for details. | 283 | the L<Config::AST> constructor for details. |
284 | 284 | ||
@@ -304,3 +304,3 @@ source tree. | |||
304 | 304 | ||
305 | The following two methods are derived from B<Config::AST>. They are | 305 | The following two methods are derived from L<Config::AST>. They are |
306 | called internally by the constructor, if the file name is supplied. | 306 | called internally by the constructor, if the file name is supplied. |
@@ -375,3 +375,3 @@ otherwise by other options (see the B<:re> and B<:check> options below). | |||
375 | Options are special names prefixed with a colon. Option names follow | 375 | Options are special names prefixed with a colon. Option names follow |
376 | the keywords from the B<Config::AST> keyword lexicon value. An option | 376 | the keywords from the L<Config::AST> keyword lexicon value. An option |
377 | can be followed by an equals sign and its value. If an option is used | 377 | can be followed by an equals sign and its value. If an option is used |
@@ -456,3 +456,3 @@ returns 0. | |||
456 | 456 | ||
457 | B<Config::AST>(3). | 457 | L<Config::AST>(3). |
458 | 458 | ||
diff --git a/lib/Config/Parser/Ini.pm b/lib/Config/Parser/Ini.pm index 67eaf1f..29923cf 100644 --- a/lib/Config/Parser/Ini.pm +++ b/lib/Config/Parser/Ini.pm | |||
@@ -64,3 +64,3 @@ sub _readconfig { | |||
64 | $self->add_node(\@path, | 64 | $self->add_node(\@path, |
65 | new Config::AST::Node::Section(locus => $locus)); | 65 | new Config::AST::Node::Section($self, locus => $locus)); |
66 | } | 66 | } |
@@ -68,3 +68,2 @@ sub _readconfig { | |||
68 | my ($k, $v) = ($1, $2); | 68 | my ($k, $v) = ($1, $2); |
69 | $k = lc($k) if $self->{_ci}; #FIXME:private member | ||
70 | 69 | ||
@@ -150,3 +149,3 @@ On success, this returns a valid B<Config::Parser::Ini> object. On error, | |||
150 | the diagnostic message is issued using the B<error> method (see the description | 149 | the diagnostic message is issued using the B<error> method (see the description |
151 | of the method in B<Config::AST>(3)) and the module croaks. | 150 | of the method in L<Config::AST>(3)) and the module croaks. |
152 | 151 | ||
@@ -202,3 +201,3 @@ method which will be invoked after parsing the statement in order | |||
202 | to verify its value. It is described in detail below (see the section | 201 | to verify its value. It is described in detail below (see the section |
203 | B<SYNTAX DEFINITION> in the documentation of B<Config::Parser>). | 202 | B<SYNTAX DEFINITION> in the documentation of L<Config::Parser>). |
204 | For example, if you wish to ensure that the value of the C<root> setting | 203 | For example, if you wish to ensure that the value of the C<root> setting |
@@ -257,3 +256,3 @@ Dictionary of allowed configuration statements in the file. You will not | |||
257 | need this parameter. It is listed here for completeness sake. Refer to | 256 | need this parameter. It is listed here for completeness sake. Refer to |
258 | the B<Config::AST> constructor for details. | 257 | the L<Config::AST> constructor for details. |
259 | 258 | ||
@@ -263,3 +262,3 @@ the B<Config::AST> constructor for details. | |||
263 | 262 | ||
264 | All methods are inherited from B<Config::Parser>. Please see its | 263 | All methods are inherited from L<Config::Parser>. Please see its |
265 | documentation for details. | 264 | documentation for details. |
@@ -268,3 +267,3 @@ documentation for details. | |||
268 | 267 | ||
269 | B<Config::Parser>(3), B<Config::AST>(3). | 268 | L<Config::Parser>(3), L<Config::AST>(3). |
270 | 269 | ||