From 835dc72fa96db473b1bf0028c930be63c63645d1 Mon Sep 17 00:00:00 2001 From: Alexander Hartmaier Date: Mon, 29 Mar 2010 18:13:50 +0200 Subject: [PATCH 1/2] added metadata to Makefile.PL --- Makefile.PL | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile.PL b/Makefile.PL index 961b7eb..bc740f5 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -14,6 +14,11 @@ requires 'Config::Any' => '0.10'; system("pod2text lib/MooseX/SimpleConfig.pm >README") and die if $Module::Install::AUTHOR; +resources 'IRC' => 'irc://irc.perl.org/#moose'; +resources 'license' => 'http://dev.perl.org/licenses/'; +resources 'repository' => 'git://git.moose.perl.org/MooseX-SimpleConfig.git'; +resources 'MailingList' => 'http://news.gmane.org/gmane.comp.lang.perl.moose'; + auto_provides; auto_install; WriteAll; From c36a5f381f55b817659e61bd3c6513f05eb0b949 Mon Sep 17 00:00:00 2001 From: Alexander Hartmaier Date: Mon, 29 Mar 2010 18:15:41 +0200 Subject: [PATCH 2/2] fixed configfile attribute examples --- lib/MooseX/SimpleConfig.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/MooseX/SimpleConfig.pm b/lib/MooseX/SimpleConfig.pm index 4754a7e..879e0b8 100644 --- a/lib/MooseX/SimpleConfig.pm +++ b/lib/MooseX/SimpleConfig.pm @@ -121,12 +121,12 @@ well, which allows specifying C<-configfile> on the commandline. Provided by the base role L. You can provide a default configfile pathname like so: - has +configfile ( default => '/etc/myapp.yaml' ); + has '+configfile' => ( default => '/etc/myapp.yaml' ); You can pass an array of filenames if you want, but as usual the array has to be wrapped in a sub ref. - has +configfile ( default => sub { [ '/etc/myapp.yaml', '/etc/myapp_local.yml' ] } ); + has '+configfile' => ( default => sub { [ '/etc/myapp.yaml', '/etc/myapp_local.yml' ] } ); Config files are trivially merged at the top level, with the right-hand files taking precedence.