[Catalyst-commits] r6260 - in trunk/Catalyst-Plugin-ConfigLoader: . t t/lib/TestApp t/lib/TestApp/Controller t/mockapp

bricas at dev.catalyst.perl.org bricas at dev.catalyst.perl.org
Tue Apr 3 17:06:53 GMT 2007


Author: bricas
Date: 2007-04-03 17:06:51 +0100 (Tue, 03 Apr 2007)
New Revision: 6260

Added:
   trunk/Catalyst-Plugin-ConfigLoader/MANIFEST.SKIP
Removed:
   trunk/Catalyst-Plugin-ConfigLoader/Build.PL
   trunk/Catalyst-Plugin-ConfigLoader/MANIFEST
Modified:
   trunk/Catalyst-Plugin-ConfigLoader/Changes
   trunk/Catalyst-Plugin-ConfigLoader/t/01-use.t
   trunk/Catalyst-Plugin-ConfigLoader/t/10-live_auto.t
   trunk/Catalyst-Plugin-ConfigLoader/t/20-mock_load.t
   trunk/Catalyst-Plugin-ConfigLoader/t/98-pod_coverage.t
   trunk/Catalyst-Plugin-ConfigLoader/t/99-pod.t
   trunk/Catalyst-Plugin-ConfigLoader/t/lib/TestApp/Controller/Config.pm
   trunk/Catalyst-Plugin-ConfigLoader/t/lib/TestApp/testapp.pl
   trunk/Catalyst-Plugin-ConfigLoader/t/mockapp/mockapp.pl
   trunk/Catalyst-Plugin-ConfigLoader/t/mockapp/mockapp_local.pl
Log:
distro updates for configloader

Deleted: trunk/Catalyst-Plugin-ConfigLoader/Build.PL
===================================================================
--- trunk/Catalyst-Plugin-ConfigLoader/Build.PL	2007-04-03 16:04:34 UTC (rev 6259)
+++ trunk/Catalyst-Plugin-ConfigLoader/Build.PL	2007-04-03 16:06:51 UTC (rev 6260)
@@ -1,18 +0,0 @@
-use strict;
-
-use Module::Build;
-
-my $build = Module::Build->new(
-    module_name        => 'Catalyst::Plugin::ConfigLoader',
-    dist_author        => 'Brian Cassidy <bricas at cpan.org>',
-    license            => 'perl',
-    create_readme      => 1,
-    create_makefile_pl => 'traditional',
-    requires           => {
-        'Catalyst::Runtime' => '0',
-        'Data::Visitor'     => '0.02',
-        'Config::Any'       => '0.04'
-    },
-);
-
-$build->create_build_script;

Modified: trunk/Catalyst-Plugin-ConfigLoader/Changes
===================================================================
--- trunk/Catalyst-Plugin-ConfigLoader/Changes	2007-04-03 16:04:34 UTC (rev 6259)
+++ trunk/Catalyst-Plugin-ConfigLoader/Changes	2007-04-03 16:06:51 UTC (rev 6260)
@@ -1,59 +1,60 @@
-Revision history for Perl extension Catalyst::Plugin::ConfigLoader.
+Revision history for Perl extension Catalyst::Plugin::ConfigLoader.
 
-0.14  Thu Sep 28 2006
+0.14  Tue Apr 03 2007
+    - switch to Module::Install
     - added a user manual
-
-0.13  Fri Aug 25 2006
-    - loading code factored out into Config::Any [rataxis at cpan.org]
-      sponsored by Portugal Telecom
-
-0.12  Wed Jul 12 2006
-    - made the "local" suffix overrideable
-    - fixed __path_to()__ docs
-
-0.11  Tue Jul 11 2006
-    - remember, kids: 09 > 1
-
-0.1   Tue Jul 11 2006
-    - remove hash merging since it is now a core behavior
-    - added C/M/V legacy shortcuts
-    - fixed debug output some
-    - switched to Module::Pluggable::Object
-
-0.09  Wed May 24 2006
-    - ignore non-ref model/view/controller/component keys
-
-0.08  Tue May 23 2006
-    - added get_config_path() which extracts the path finding code
-    - added the ability to specify a MYAPP_CONFIG ENV variable
-    - more granular merging of top-level hashrefs
-    - more comprehensive tests
-
-0.07  Mon May 01 2006
-    - added Config::General support
-    - added nicer syntax for specifying models/views/controllers where
-      available
-
-0.06  Wed Apr 26 2006
-    - remove "last;" so that _local configs will be processed
-
-0.05  Thu Apr 18 2006
-    - __HOME__ now corresponds to $c->path_to( '' ) and nothing else
-    - __path_to( 'foo/bar' )__ turns in to $c->path_to( 'foo', 'bar' )
-    - attemps to load ${config}_local.$ext after ${config}.$ext for
-      an overriding effect
-
-0.04  Wed Feb 08 2006
-    - add finalize_config method
-    - make default finalize_config traverse the config and substitute
-      things beginning __HOME__/* with real path
-    - don't use File::Slurp, produces annoying warnings on some systems
-
-0.03  Mon Jan 30 2006
-    - pod fixes
-
-0.02  Sun Jan 29 2006
-    - refactoring (suggested by Christian Hansen)
-
-0.01  Sat Jan 28 2006
-    - original version
+
+0.13  Fri Aug 25 2006
+    - loading code factored out into Config::Any [rataxis at cpan.org]
+      sponsored by Portugal Telecom
+
+0.12  Wed Jul 12 2006
+    - made the "local" suffix overrideable
+    - fixed __path_to()__ docs
+
+0.11  Tue Jul 11 2006
+    - remember, kids: 09 > 1
+
+0.1   Tue Jul 11 2006
+    - remove hash merging since it is now a core behavior
+    - added C/M/V legacy shortcuts
+    - fixed debug output some
+    - switched to Module::Pluggable::Object
+
+0.09  Wed May 24 2006
+    - ignore non-ref model/view/controller/component keys
+
+0.08  Tue May 23 2006
+    - added get_config_path() which extracts the path finding code
+    - added the ability to specify a MYAPP_CONFIG ENV variable
+    - more granular merging of top-level hashrefs
+    - more comprehensive tests
+
+0.07  Mon May 01 2006
+    - added Config::General support
+    - added nicer syntax for specifying models/views/controllers where
+      available
+
+0.06  Wed Apr 26 2006
+    - remove "last;" so that _local configs will be processed
+
+0.05  Thu Apr 18 2006
+    - __HOME__ now corresponds to $c->path_to( '' ) and nothing else
+    - __path_to( 'foo/bar' )__ turns in to $c->path_to( 'foo', 'bar' )
+    - attemps to load ${config}_local.$ext after ${config}.$ext for
+      an overriding effect
+
+0.04  Wed Feb 08 2006
+    - add finalize_config method
+    - make default finalize_config traverse the config and substitute
+      things beginning __HOME__/* with real path
+    - don't use File::Slurp, produces annoying warnings on some systems
+
+0.03  Mon Jan 30 2006
+    - pod fixes
+
+0.02  Sun Jan 29 2006
+    - refactoring (suggested by Christian Hansen)
+
+0.01  Sat Jan 28 2006
+    - original version

Deleted: trunk/Catalyst-Plugin-ConfigLoader/MANIFEST
===================================================================
--- trunk/Catalyst-Plugin-ConfigLoader/MANIFEST	2007-04-03 16:04:34 UTC (rev 6259)
+++ trunk/Catalyst-Plugin-ConfigLoader/MANIFEST	2007-04-03 16:06:51 UTC (rev 6260)
@@ -1,16 +0,0 @@
-Build.PL
-Changes
-lib/Catalyst/Plugin/ConfigLoader.pm
-lib/Catalyst/Plugin/ConfigLoader/Manual.pod
-MANIFEST
-t/01-use.t
-t/10-live_auto.t
-t/20-mock_load.t
-t/98-pod_coverage.t
-t/99-pod.t
-t/lib/TestApp.pm
-t/lib/TestApp/testapp.pl
-t/lib/TestApp/Controller/Config.pm
-t/mockapp/mockapp.pl
-t/mockapp/mockapp_local.pl
-

Added: trunk/Catalyst-Plugin-ConfigLoader/MANIFEST.SKIP
===================================================================
--- trunk/Catalyst-Plugin-ConfigLoader/MANIFEST.SKIP	                        (rev 0)
+++ trunk/Catalyst-Plugin-ConfigLoader/MANIFEST.SKIP	2007-04-03 16:06:51 UTC (rev 6260)
@@ -0,0 +1,29 @@
+# Avoid version control files.
+\bRCS\b
+\bCVS\b
+,v$
+\B\.svn\b
+
+# Avoid Makemaker generated and utility files.
+\bMakefile$
+\bblib
+\bMakeMaker-\d
+\bpm_to_blib$
+\bblibdirs$
+^MANIFEST\.SKIP$
+
+# Avoid Module::Build generated and utility files.
+\bBuild$
+\b_build
+
+# Avoid temp and backup files.
+~$
+\.tmp$
+\.old$
+\.bak$
+\#$
+\b\.#
+\.DS_Store$
+
+# No tarballs!
+\.gz$

Modified: trunk/Catalyst-Plugin-ConfigLoader/t/01-use.t
===================================================================
--- trunk/Catalyst-Plugin-ConfigLoader/t/01-use.t	2007-04-03 16:04:34 UTC (rev 6259)
+++ trunk/Catalyst-Plugin-ConfigLoader/t/01-use.t	2007-04-03 16:06:51 UTC (rev 6260)
@@ -1,5 +1,5 @@
-use Test::More tests => 1;
-
-BEGIN { 
-    use_ok( 'Catalyst::Plugin::ConfigLoader' );
-}
+use Test::More tests => 1;
+
+BEGIN { 
+    use_ok( 'Catalyst::Plugin::ConfigLoader' );
+}

Modified: trunk/Catalyst-Plugin-ConfigLoader/t/10-live_auto.t
===================================================================
--- trunk/Catalyst-Plugin-ConfigLoader/t/10-live_auto.t	2007-04-03 16:04:34 UTC (rev 6259)
+++ trunk/Catalyst-Plugin-ConfigLoader/t/10-live_auto.t	2007-04-03 16:06:51 UTC (rev 6260)
@@ -1,21 +1,21 @@
-use strict;
-use warnings;
-
-use FindBin;
-use lib "$FindBin::Bin/lib";
-
-use Test::More tests => 4;
-
-use Catalyst::Test 'TestApp';
-
-{
-    my $response;
-    ok( $response = request('http://localhost/config/'), 'request ok' );
-    is( $response->content, 'foo', 'config ok' );
-
-    $response = request('http://localhost/appconfig/cache');
-    ok( $response->content !~ /^__HOME__/, 'home dir substituted in config var' );
-
-    $response = request('http://localhost/appconfig/foo');
-    is( $response->content, 'bar', 'app finalize_config works' );
-}
+use strict;
+use warnings;
+
+use FindBin;
+use lib "$FindBin::Bin/lib";
+
+use Test::More tests => 4;
+
+use Catalyst::Test 'TestApp';
+
+{
+    my $response;
+    ok( $response = request('http://localhost/config/'), 'request ok' );
+    is( $response->content, 'foo', 'config ok' );
+
+    $response = request('http://localhost/appconfig/cache');
+    ok( $response->content !~ /^__HOME__/, 'home dir substituted in config var' );
+
+    $response = request('http://localhost/appconfig/foo');
+    is( $response->content, 'bar', 'app finalize_config works' );
+}

Modified: trunk/Catalyst-Plugin-ConfigLoader/t/20-mock_load.t
===================================================================
--- trunk/Catalyst-Plugin-ConfigLoader/t/20-mock_load.t	2007-04-03 16:04:34 UTC (rev 6259)
+++ trunk/Catalyst-Plugin-ConfigLoader/t/20-mock_load.t	2007-04-03 16:06:51 UTC (rev 6260)
@@ -1,17 +1,19 @@
-package MockApp;
-
-use Test::More tests => 7;
-
-use Cwd;
-$ENV{ CATALYST_HOME } = cwd . '/t/mockapp';
-
-use_ok( 'Catalyst', qw( ConfigLoader ) );
-
-__PACKAGE__->setup;
-
-ok( __PACKAGE__->config );
-is( __PACKAGE__->config->{ 'Controller::Foo' }->{ foo }, 'bar' );
-is( __PACKAGE__->config->{ 'Controller::Foo' }->{ new }, 'key' );
-is( __PACKAGE__->config->{ 'Model::Baz' }->{ qux }, 'xyzzy' );
-is( __PACKAGE__->config->{ 'Model::Baz' }->{ another }, 'new key' );
-is( __PACKAGE__->config->{ 'view' }, 'View::TT::New' );
+package MockApp;
+
+use Test::More tests => 7;
+
+use Cwd;
+$ENV{ CATALYST_HOME } = cwd . '/t/mockapp';
+
+use_ok( 'Catalyst', qw( ConfigLoader ) );
+
+__PACKAGE__->setup;
+
+use Data::Dumper; print Dumper __PACKAGE__->config;
+
+ok( __PACKAGE__->config );
+is( __PACKAGE__->config->{ 'Controller::Foo' }->{ foo }, 'bar' );
+is( __PACKAGE__->config->{ 'Controller::Foo' }->{ new }, 'key' );
+is( __PACKAGE__->config->{ 'Model::Baz' }->{ qux }, 'xyzzy' );
+is( __PACKAGE__->config->{ 'Model::Baz' }->{ another }, 'new key' );
+is( __PACKAGE__->config->{ 'view' }, 'View::TT::New' );

Modified: trunk/Catalyst-Plugin-ConfigLoader/t/98-pod_coverage.t
===================================================================
--- trunk/Catalyst-Plugin-ConfigLoader/t/98-pod_coverage.t	2007-04-03 16:04:34 UTC (rev 6259)
+++ trunk/Catalyst-Plugin-ConfigLoader/t/98-pod_coverage.t	2007-04-03 16:06:51 UTC (rev 6260)
@@ -1,4 +1,4 @@
-use Test::More;
-eval "use Test::Pod::Coverage 1.00";
-plan skip_all => "Test::Pod::Coverage 1.00 required for testing POD coverage" if $@;
-all_pod_coverage_ok();
\ No newline at end of file
+use Test::More;
+eval "use Test::Pod::Coverage 1.00";
+plan skip_all => "Test::Pod::Coverage 1.00 required for testing POD coverage" if $@;
+all_pod_coverage_ok();

Modified: trunk/Catalyst-Plugin-ConfigLoader/t/99-pod.t
===================================================================
--- trunk/Catalyst-Plugin-ConfigLoader/t/99-pod.t	2007-04-03 16:04:34 UTC (rev 6259)
+++ trunk/Catalyst-Plugin-ConfigLoader/t/99-pod.t	2007-04-03 16:06:51 UTC (rev 6260)
@@ -1,4 +1,4 @@
-use Test::More;
-eval "use Test::Pod 1.00";
-plan skip_all => "Test::Pod 1.00 required for testing POD" if $@;
-all_pod_files_ok();
\ No newline at end of file
+use Test::More;
+eval "use Test::Pod 1.00";
+plan skip_all => "Test::Pod 1.00 required for testing POD" if $@;
+all_pod_files_ok();

Modified: trunk/Catalyst-Plugin-ConfigLoader/t/lib/TestApp/Controller/Config.pm
===================================================================
--- trunk/Catalyst-Plugin-ConfigLoader/t/lib/TestApp/Controller/Config.pm	2007-04-03 16:04:34 UTC (rev 6259)
+++ trunk/Catalyst-Plugin-ConfigLoader/t/lib/TestApp/Controller/Config.pm	2007-04-03 16:06:51 UTC (rev 6260)
@@ -1,13 +1,13 @@
-package TestApp::Controller::Config;
-
-use strict;
-use warnings;
-
-use base qw( Catalyst::Controller );
-
-sub index : Private {
-	my( $self, $c ) = @_;
-	$c->res->output( $self->{ foo } );
-}
-
-1;
\ No newline at end of file
+package TestApp::Controller::Config;
+
+use strict;
+use warnings;
+
+use base qw( Catalyst::Controller );
+
+sub index : Private {
+    my( $self, $c ) = @_;
+    $c->res->output( $self->{ foo } );
+}
+
+1;

Modified: trunk/Catalyst-Plugin-ConfigLoader/t/lib/TestApp/testapp.pl
===================================================================
--- trunk/Catalyst-Plugin-ConfigLoader/t/lib/TestApp/testapp.pl	2007-04-03 16:04:34 UTC (rev 6259)
+++ trunk/Catalyst-Plugin-ConfigLoader/t/lib/TestApp/testapp.pl	2007-04-03 16:06:51 UTC (rev 6260)
@@ -1,7 +1,7 @@
 {
-	name               => 'TestApp',
-	Controller::Config => {
-		foo => 'foo'
-	},
-	cache              => '__HOME__/cache',
+    name               => 'TestApp',
+    Controller::Config => {
+        foo => 'foo'
+    },
+    cache              => '__HOME__/cache',
 }

Modified: trunk/Catalyst-Plugin-ConfigLoader/t/mockapp/mockapp.pl
===================================================================
--- trunk/Catalyst-Plugin-ConfigLoader/t/mockapp/mockapp.pl	2007-04-03 16:04:34 UTC (rev 6259)
+++ trunk/Catalyst-Plugin-ConfigLoader/t/mockapp/mockapp.pl	2007-04-03 16:06:51 UTC (rev 6260)
@@ -1,10 +1,10 @@
-{
-    name => 'TestApp',
-    view => 'View::TT',
-    'Controller::Foo' => {
-        foo => 'bar'
-    },
-    'Model::Baz' => {
-        qux => 'xyzzy'
-    }
-}
\ No newline at end of file
+{
+    name => 'TestApp',
+    view => 'View::TT',
+    'Controller::Foo' => {
+        foo => 'bar'
+    },
+    'Model::Baz' => {
+        qux => 'xyzzy'
+    }
+}

Modified: trunk/Catalyst-Plugin-ConfigLoader/t/mockapp/mockapp_local.pl
===================================================================
--- trunk/Catalyst-Plugin-ConfigLoader/t/mockapp/mockapp_local.pl	2007-04-03 16:04:34 UTC (rev 6259)
+++ trunk/Catalyst-Plugin-ConfigLoader/t/mockapp/mockapp_local.pl	2007-04-03 16:06:51 UTC (rev 6260)
@@ -1,11 +1,11 @@
-{
-    view => 'View::TT::New',
-    'Controller::Foo' => {
-        new => 'key'
-    },
-    Component => {
-        'Model::Baz' => {
-            'another' => 'new key'
-        }
-    }
-}
\ No newline at end of file
+{
+    view => 'View::TT::New',
+    'Controller::Foo' => {
+        new => 'key'
+    },
+    Component => {
+        'Model::Baz' => {
+            'another' => 'new key'
+        }
+    }
+}




More information about the Catalyst-commits mailing list