From f6e7039bf894c8241125622776720037aef620a2 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Sat, 16 Oct 2010 21:42:15 -0700 Subject: Case insensitive pinyconfig. --- usr/src/libpiny/lib/Piny/Config.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'usr/src/libpiny/lib') diff --git a/usr/src/libpiny/lib/Piny/Config.pm b/usr/src/libpiny/lib/Piny/Config.pm index 5f2cbd7..8b6e192 100644 --- a/usr/src/libpiny/lib/Piny/Config.pm +++ b/usr/src/libpiny/lib/Piny/Config.pm @@ -11,7 +11,7 @@ use Moose::Util::TypeConstraints; use MooseX::StrictConstructor; use Carp; -use Config::Simple qw( ); +use Config::Simple qw( -lc ); # Types @@ -157,6 +157,8 @@ sub save { sub tweakable { my ( $attr, $default, $isa ) = @_; + $attr = lc $attr; + my $attrname = $attr; $attrname =~ s/_/./; @@ -207,7 +209,7 @@ tweakable "piny_ikiwikisrcdir" => "/srv/ikiwiki/", 'PathDir'; tweakable "piny_ikiwikiurl" => "http://piny.be/", 'HttpUrl'; tweakable "piny_ikiwikisecureurl" => "https://secure.piny.be/", 'HttpsUrl'; tweakable "piny_ikiwikisecurepath" => "/srv/www/secure.piny.be/", 'PathDir'; -tweakable "receive_denyNonFastForwards" => "true", 'GitBool'; +tweakable "receive_denynonfastforwards" => "true", 'GitBool'; # Moose boilerplate -- cgit v1.2.3