Changeset 9022 for lang/perl/App-Starter
- Timestamp:
- 04/06/08 23:31:30 (8 months ago)
- Location:
- lang/perl/App-Starter/trunk
- Files:
-
- 2 modified
-
Changes (modified) (1 diff)
-
lib/App/Starter.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/App-Starter/trunk/Changes
r9006 r9022 1 1 Revision history for App-Starter 2 3 0.13 2008-04-06/23:26 4 - bug fix. replace and ignore data was not marged between yaml and parameter... 5 2 6 0.12 2008-04-06/17:27 3 7 - forget to Test:Spelling :add prerequired -
lang/perl/App-Starter/trunk/lib/App/Starter.pm
r9006 r9022 13 13 use base qw/Class::Accessor/; 14 14 15 our $VERSION = '0.1 2';15 our $VERSION = '0.13'; 16 16 17 17 my $DIR = {}; … … 25 25 # get config 26 26 my $config = {}; 27 $config->{replace} = $self->{replace} ? $self->{replace} : {}; 28 $config->{ignore} = $self->{ignore} ? $self->{ignore} : []; 27 29 $config->{from} = $self->{from} if $self->{from}; 28 $config->{replace} = $self->{replace} if $self->{replace};29 $config->{ignore} = $self->{ignore} if $self->{ignore};30 30 $config->{name} = $self->{name} if $self->{name}; 31 31 $config->{tag_style} = $self->{tag_style} if $self->{tag_style}; … … 58 58 59 59 if ( $self->{config} ) { 60 $config = { %{ LoadFile( $self->{config} ) }, %{$config}, }; 60 my $config_from_file = LoadFile( $self->{config} ); 61 %$config = ( %$config_from_file, %$config ); 62 63 $config->{replace} 64 = { %{ $config_from_file->{replace} }, %{ $config->{replace} } } 65 if $config_from_file->{replace}; 66 67 push @{ $config->{ignore} }, @{ $config_from_file->{ignore} } 68 if $config_from_file->{ignore}; 61 69 } 62 70
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)