[Catalyst-commits] r8181 - in trunk/Config-Any: . t t/conf t/invalid

bricas at dev.catalyst.perl.org bricas at dev.catalyst.perl.org
Tue Aug 5 16:34:20 BST 2008


Author: bricas
Date: 2008-08-05 16:34:19 +0100 (Tue, 05 Aug 2008)
New Revision: 8181

Modified:
   trunk/Config-Any/Changes
   trunk/Config-Any/t/50-general.t
   trunk/Config-Any/t/51-ini.t
   trunk/Config-Any/t/52-json.t
   trunk/Config-Any/t/53-perl.t
   trunk/Config-Any/t/54-xml.t
   trunk/Config-Any/t/55-yaml.t
   trunk/Config-Any/t/61-features.t
   trunk/Config-Any/t/conf/conf.conf
   trunk/Config-Any/t/conf/conf.foo
   trunk/Config-Any/t/conf/conf.ini
   trunk/Config-Any/t/conf/conf.json
   trunk/Config-Any/t/conf/conf2.ini
   trunk/Config-Any/t/invalid/conf.conf
   trunk/Config-Any/t/invalid/conf.ini
   trunk/Config-Any/t/invalid/conf.json
Log:
line endings, tabs, perltidy.

Modified: trunk/Config-Any/Changes
===================================================================
--- trunk/Config-Any/Changes	2008-08-05 15:26:38 UTC (rev 8180)
+++ trunk/Config-Any/Changes	2008-08-05 15:34:19 UTC (rev 8181)
@@ -50,7 +50,7 @@
 0.05  Wed Feb 21 22:00:00 2007
     - added support for (requested by Evan Kaufman):
       + 'force_plugins => [ qw(Config::Any::Foo Config::Any::Blah) ]' parameter
-	    to load_(files|stems)
+        to load_(files|stems)
       + $Config::Any::INI::MAP_SECTION_SPACE_TO_NESTED_KEY - boolean, defaulting
         to on, controlling whether to map spaces in INI section headings 
         to nested hashrefs

Modified: trunk/Config-Any/t/50-general.t
===================================================================
--- trunk/Config-Any/t/50-general.t	2008-08-05 15:26:38 UTC (rev 8180)
+++ trunk/Config-Any/t/50-general.t	2008-08-05 15:34:19 UTC (rev 8181)
@@ -26,9 +26,9 @@
 
 # test invalid config
 {
-    my $file   = 't/invalid/conf.conf';
+    my $file = 't/invalid/conf.conf';
     my $config = eval { Config::Any::General->load( $file ) };
 
     ok( !$config, 'config load failed' );
-    ok( $@, "error thrown ($@)" ); 
+    ok( $@, "error thrown ($@)" );
 }

Modified: trunk/Config-Any/t/51-ini.t
===================================================================
--- trunk/Config-Any/t/51-ini.t	2008-08-05 15:26:38 UTC (rev 8180)
+++ trunk/Config-Any/t/51-ini.t	2008-08-05 15:34:19 UTC (rev 8181)
@@ -49,9 +49,9 @@
 
 # test invalid config
 {
-    my $file   = 't/invalid/conf.ini';
+    my $file = 't/invalid/conf.ini';
     my $config = eval { Config::Any::INI->load( $file ) };
 
     ok( !$config, 'config load failed' );
-    ok( $@, "error thrown ($@)" ); 
+    ok( $@, "error thrown ($@)" );
 }

Modified: trunk/Config-Any/t/52-json.t
===================================================================
--- trunk/Config-Any/t/52-json.t	2008-08-05 15:26:38 UTC (rev 8180)
+++ trunk/Config-Any/t/52-json.t	2008-08-05 15:34:19 UTC (rev 8181)
@@ -19,9 +19,9 @@
 
 # test invalid config
 {
-    my $file   = 't/invalid/conf.json';
+    my $file = 't/invalid/conf.json';
     my $config = eval { Config::Any::JSON->load( $file ) };
 
     ok( !$config, 'config load failed' );
-    ok( $@, "error thrown ($@)" ); 
+    ok( $@, "error thrown ($@)" );
 }

Modified: trunk/Config-Any/t/53-perl.t
===================================================================
--- trunk/Config-Any/t/53-perl.t	2008-08-05 15:26:38 UTC (rev 8180)
+++ trunk/Config-Any/t/53-perl.t	2008-08-05 15:34:19 UTC (rev 8181)
@@ -18,9 +18,9 @@
 
 # test invalid config
 {
-    my $file   = 't/invalid/conf.pl';
+    my $file = 't/invalid/conf.pl';
     my $config = eval { Config::Any::Perl->load( $file ) };
 
     ok( !$config, 'config load failed' );
-    ok( $@, "error thrown ($@)" ); 
+    ok( $@, "error thrown ($@)" );
 }

Modified: trunk/Config-Any/t/54-xml.t
===================================================================
--- trunk/Config-Any/t/54-xml.t	2008-08-05 15:26:38 UTC (rev 8180)
+++ trunk/Config-Any/t/54-xml.t	2008-08-05 15:34:19 UTC (rev 8181)
@@ -19,9 +19,9 @@
 
 # test invalid config
 {
-    my $file   = 't/invalid/conf.xml';
+    my $file = 't/invalid/conf.xml';
     my $config = eval { Config::Any::XML->load( $file ) };
 
     ok( !$config, 'config load failed' );
-    ok( $@, "error thrown ($@)" ); 
+    ok( $@, "error thrown ($@)" );
 }

Modified: trunk/Config-Any/t/55-yaml.t
===================================================================
--- trunk/Config-Any/t/55-yaml.t	2008-08-05 15:26:38 UTC (rev 8180)
+++ trunk/Config-Any/t/55-yaml.t	2008-08-05 15:34:19 UTC (rev 8181)
@@ -19,9 +19,9 @@
 
 # test invalid config
 {
-    my $file   = 't/invalid/conf.yml';
+    my $file = 't/invalid/conf.yml';
     my $config = eval { Config::Any::YAML->load( $file ) };
 
     ok( !$config, 'config load failed' );
-    ok( $@, "error thrown ($@)" ); 
+    ok( $@, "error thrown ($@)" );
 }

Modified: trunk/Config-Any/t/61-features.t
===================================================================
--- trunk/Config-Any/t/61-features.t	2008-08-05 15:26:38 UTC (rev 8180)
+++ trunk/Config-Any/t/61-features.t	2008-08-05 15:34:19 UTC (rev 8181)
@@ -17,7 +17,7 @@
 SKIP: {
     skip "File loading backend for INI not found", 14 if $@;
 
-    my $struct; # used to make sure parsing works for arrays and hashes
+    my $struct;    # used to make sure parsing works for arrays and hashes
 
     # force_plugins
     {
@@ -65,10 +65,11 @@
         my $ref = blessed $result ? reftype $result : ref $result;
         is( substr( $ref, 0, 4 ), 'HASH', 'hashref' );
 
-        is_deeply( $result, $struct, 'load_files return an hashref (flatten_to_hash)' );
+        is_deeply( $result, $struct,
+            'load_files return an hashref (flatten_to_hash)' );
     }
-     
-    # use_ext  
+
+    # use_ext
     {
         ok( my $result = Config::Any->load_files(
                 {   files         => [ $cfg_file ],

Modified: trunk/Config-Any/t/conf/conf.conf
===================================================================
--- trunk/Config-Any/t/conf/conf.conf	2008-08-05 15:26:38 UTC (rev 8180)
+++ trunk/Config-Any/t/conf/conf.conf	2008-08-05 15:34:19 UTC (rev 8181)
@@ -1,7 +1,7 @@
-name = TestApp
-<Component Controller::Foo>
-    foo bar
-</Component>
-<Model Model::Baz>
-    qux xyzzy
-</Model>
+name = TestApp
+<Component Controller::Foo>
+    foo bar
+</Component>
+<Model Model::Baz>
+    qux xyzzy
+</Model>

Modified: trunk/Config-Any/t/conf/conf.foo
===================================================================
--- trunk/Config-Any/t/conf/conf.foo	2008-08-05 15:26:38 UTC (rev 8180)
+++ trunk/Config-Any/t/conf/conf.foo	2008-08-05 15:34:19 UTC (rev 8181)
@@ -1,7 +1,7 @@
-name=TestApp
-    
-[Component Controller::Foo]
-foo=bar
-
-[Model Model::Baz]
-qux=xyzzy
+name=TestApp
+    
+[Component Controller::Foo]
+foo=bar
+
+[Model Model::Baz]
+qux=xyzzy

Modified: trunk/Config-Any/t/conf/conf.ini
===================================================================
--- trunk/Config-Any/t/conf/conf.ini	2008-08-05 15:26:38 UTC (rev 8180)
+++ trunk/Config-Any/t/conf/conf.ini	2008-08-05 15:34:19 UTC (rev 8181)
@@ -1,7 +1,7 @@
-name=TestApp
-    
-[Component Controller::Foo]
-foo=bar
-
-[Model Model::Baz]
-qux=xyzzy
+name=TestApp
+    
+[Component Controller::Foo]
+foo=bar
+
+[Model Model::Baz]
+qux=xyzzy

Modified: trunk/Config-Any/t/conf/conf.json
===================================================================
--- trunk/Config-Any/t/conf/conf.json	2008-08-05 15:26:38 UTC (rev 8180)
+++ trunk/Config-Any/t/conf/conf.json	2008-08-05 15:34:19 UTC (rev 8181)
@@ -1,13 +1,13 @@
-{
-    "name": "TestApp",
-    "Component": {
-        "Controller::Foo": {
-            "foo": "bar"
-        }
-    },
-    "Model": {
-        "Model::Baz": {
-            "qux": "xyzzy"
-        }
-    }
-}
+{
+    "name": "TestApp",
+    "Component": {
+        "Controller::Foo": {
+            "foo": "bar"
+        }
+    },
+    "Model": {
+        "Model::Baz": {
+            "qux": "xyzzy"
+        }
+    }
+}

Modified: trunk/Config-Any/t/conf/conf2.ini
===================================================================
--- trunk/Config-Any/t/conf/conf2.ini	2008-08-05 15:26:38 UTC (rev 8180)
+++ trunk/Config-Any/t/conf/conf2.ini	2008-08-05 15:34:19 UTC (rev 8181)
@@ -1,7 +1,7 @@
-name=TestApp
-    
-[Controller::Foo]
-foo=bar
-
-[Model::Baz]
-qux=xyzzy
+name=TestApp
+    
+[Controller::Foo]
+foo=bar
+
+[Model::Baz]
+qux=xyzzy

Modified: trunk/Config-Any/t/invalid/conf.conf
===================================================================
--- trunk/Config-Any/t/invalid/conf.conf	2008-08-05 15:26:38 UTC (rev 8180)
+++ trunk/Config-Any/t/invalid/conf.conf	2008-08-05 15:34:19 UTC (rev 8181)
@@ -1,7 +1,7 @@
-name = TestApp
-<Component Controller::Foo
-    foo bar
-</Component>
-<Model Model::Baz>
-    qux xyzzy
-</Model>
+name = TestApp
+<Component Controller::Foo
+    foo bar
+</Component>
+<Model Model::Baz>
+    qux xyzzy
+</Model>

Modified: trunk/Config-Any/t/invalid/conf.ini
===================================================================
--- trunk/Config-Any/t/invalid/conf.ini	2008-08-05 15:26:38 UTC (rev 8180)
+++ trunk/Config-Any/t/invalid/conf.ini	2008-08-05 15:34:19 UTC (rev 8181)
@@ -1,7 +1,7 @@
-name=TestApp
-    
-[Component Controller::Foo
-foo=bar
-
-[Model Model::Baz]
-qux=xyzzy
+name=TestApp
+    
+[Component Controller::Foo
+foo=bar
+
+[Model Model::Baz]
+qux=xyzzy

Modified: trunk/Config-Any/t/invalid/conf.json
===================================================================
--- trunk/Config-Any/t/invalid/conf.json	2008-08-05 15:26:38 UTC (rev 8180)
+++ trunk/Config-Any/t/invalid/conf.json	2008-08-05 15:34:19 UTC (rev 8181)
@@ -1,13 +1,13 @@
-{
-    "name": "TestApp",
-    "Component": {
-        "Controller::Foo": {
-            "foo": "bar"
-        }
-    },
-    "Model": {
-        "Model::Baz": {
-            "qux": "xyzzy"
-        }
-    }
+{
+    "name": "TestApp",
+    "Component": {
+        "Controller::Foo": {
+            "foo": "bar"
+        }
+    },
+    "Model": {
+        "Model::Baz": {
+            "qux": "xyzzy"
+        }
+    }
 




More information about the Catalyst-commits mailing list