File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
1
Revision history for Perl extension Config::Processor.
2
2
3
+ 0.14 Thu Nov 25 16:34:45 MSK 2016
4
+ - BUGFIX: Fixed assignment of default list of configuration directories.
5
+
3
6
0.12 Thu Nov 24 11:36:40 MSK 2016
4
7
- Decreased version of required modules YAML::XS and Cpanel::JSON::XS.
5
8
@@ -16,7 +19,7 @@ Revision history for Perl extension Config::Processor.
16
19
17
20
0.04 Thu Apr 28 14:39:38 MSK 2016
18
21
- Data::Rmap was replaced by own function.
19
- - Fixed wrong behavior during processing of directives.
22
+ - BUGFIX: Fixed wrong behavior during processing of directives.
20
23
- Improved logic of tree traversal.
21
24
- Improved logic of variable resolving.
22
25
Original file line number Diff line number Diff line change 1
- Config-Processor version 0.12
1
+ Config-Processor version 0.14
2
2
=============================
3
3
4
4
INSTALLATION
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use 5.008000;
4
4
use strict;
5
5
use warnings;
6
6
7
- our $VERSION = ' 0.12 ' ;
7
+ our $VERSION = ' 0.14 ' ;
8
8
9
9
use File::Spec;
10
10
use YAML::XS qw( LoadFile ) ;
@@ -49,7 +49,9 @@ sub new {
49
49
my $self = bless {}, $class ;
50
50
51
51
$self -> {dirs } = $params {dirs } || [];
52
- push ( @{ $params {dirs } }, ' .' );
52
+ unless ( @{ $self -> {dirs } } ) {
53
+ push ( @{ $self -> {dirs } }, ' .' );
54
+ }
53
55
54
56
$self -> {interpolate_variables } = exists $params {interpolate_variables }
55
57
? $params {interpolate_variables } : 1;
@@ -71,7 +73,7 @@ sub new {
71
73
*{$name } = sub {
72
74
my $self = shift ;
73
75
74
- if ( @_ ) {
76
+ if (@_ ) {
75
77
$self -> {$name } = shift ;
76
78
}
77
79
You can’t perform that action at this time.
0 commit comments