Skip to content

Commit 81b98b5

Browse files
committed
Prepared to release
1 parent 7c27690 commit 81b98b5

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

Changes

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Revision history for Perl extension Config::Processor.
22

3-
0.14 Thu Nov 25 16:34:45 MSK 2016
3+
0.16 Tue Nov 29 17:14:05 MSK 2016
4+
- FEATURE: Added export of environment variables to configuration tree.
5+
6+
0.14 Fri Nov 25 16:34:45 MSK 2016
47
- BUGFIX: Fixed assignment of default list of configuration directories.
58

69
0.12 Thu Nov 24 11:36:40 MSK 2016

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Config-Processor version 0.15_01
1+
Config-Processor version 0.16
22
=============================
33

44
INSTALLATION

lib/Config/Processor.pm

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use 5.008000;
44
use strict;
55
use warnings;
66

7-
our $VERSION = '0.15_01';
7+
our $VERSION = '0.16';
88

99
use File::Spec;
1010
use YAML::XS qw( LoadFile );
@@ -344,10 +344,10 @@ features
344344
use Config::Processor;
345345
346346
my $config_processor = Config::Processor->new(
347-
dirs => [ qw( /etc/myapp /home/username/etc/myapp ) ],
347+
dirs => [qw( /etc/myapp /home/username/etc/myapp )]
348348
);
349349
350-
my $config = $config_processor->load( qw( dirs.yml db.json metrics/* ) );
350+
my $config = $config_processor->load(qw( dirs.yml db.json metrics/* ));
351351
352352
$config = $config_processor->load(
353353
qw( dirs.yml db.json redis.yml mongodb.json metrics/* ),
@@ -378,13 +378,14 @@ F<.yaml>, F<.jsn>, F<.json>.
378378
=head2 new( %params )
379379
380380
my $config_processor = Config::Processor->new(
381-
dirs => [ qw( /etc/myapp /home/username/etc/myapp ) ],
381+
dirs => [qw( /etc/myapp /home/username/etc/myapp )],
382+
export_env => 1,
382383
);
383384
384-
$config_processor = Config::Processor->new();
385+
$config_processor = Config::Processor->new;
385386
386387
$config_processor = Config::Processor->new(
387-
dirs => [ qw( /etc/myapp /home/username/etc/myapp ) ],
388+
dirs => [qw( /etc/myapp /home/username/etc/myapp )],
388389
interpolate_variables => 0,
389390
process_directives => 0,
390391
);
@@ -406,11 +407,11 @@ Enabled by default.
406407
Enables or disables directive processing in configurations files.
407408
Enabled by default.
408409
409-
=item export_env
410+
=item export_env => $boolean
410411
411412
Enables or disables environment variables exporting to configuration tree.
412413
If enabled, environment variables can be accessed by the key C<ENV> from the
413-
tree and can be interpolated in other configuration parameters.
414+
configuration tree and can be interpolated into other configuration parameters.
414415
415416
Disabled by default.
416417

0 commit comments

Comments
 (0)