aboutsummaryrefslogtreecommitdiff
path: root/MANIFEST
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2017-03-02 09:37:17 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2017-03-02 10:41:21 +0200
commitd84f9c8d98e07b410b387140084bcd1ad02fed29 (patch)
tree1dd6cd365951fdb6e7a7b19321403abf877429e6 /MANIFEST
parentbdc4ce4b346a08c67969b848ec69996ea9c46e00 (diff)
downloadbeam-d84f9c8d98e07b410b387140084bcd1ad02fed29.tar.gz
beam-d84f9c8d98e07b410b387140084bcd1ad02fed29.tar.bz2
Rework configuration class to support optional "locations" mode.
When location => 1 is passed to the constructor, the created class will store source locations along with the configuration variables. * lib/App/Beam/Config.pm (error): Use the passed Locus object. (new): New kw parameter "locations" controls whether source locations are stored along with each configuration variable. (check_mandatory): Handle wildcard parameter declarations. (readconfig): Pass locations to all functions as Locus objects. Store them if required. (get): Rewrite to retrieve locations on request. (isset,issection,isscalar): Rewrite. (set): Handle the locations mode. (names_of): New method. * lib/App/Beam/Config/Locus.pm: New file. * MANIFEST: Add new files. * lib/App/Beam.pm (parameters): Declare "backend" and "item" sections. (new): Enable locations mode. (logger, logger_line): Redo to make use of the passed Locus object. (load_backends): New method. * t/TestConfig.pm: Rewrite. * t/conf01l.t: New test case. * t/conf02l.t: New test case. * t/conf03l.t: New test case. * t/conf04l.t: New test case. * t/conf05l.t: New test case. * t/locus.t: New test case.
Diffstat (limited to 'MANIFEST')
-rw-r--r--MANIFEST1
1 files changed, 1 insertions, 0 deletions
diff --git a/MANIFEST b/MANIFEST
index df0071f..ea27ac0 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -4,6 +4,7 @@ MANIFEST
Makefile.PL
README
lib/App/Beam/Config.pm
+lib/App/Beam/Config/Locus.pm
lib/App/Beam.pm
t/TestConfig.pm
t/conf01.t

Return to:

Send suggestions and report system problems to the System administrator.