more files needed to create the dists, and tests
Joel Bernstein [Tue, 22 Aug 2006 19:26:35 +0000 (19:26 +0000)]
META.yml [new file with mode: 0644]
t/01-use.t [new file with mode: 0644]
t/50-general.t [new file with mode: 0644]
t/51-ini.t [new file with mode: 0644]
t/52-json.t [new file with mode: 0644]
t/53-perl.t [new file with mode: 0644]
t/54-xml.t [new file with mode: 0644]
t/55-yaml.t [new file with mode: 0644]

diff --git a/META.yml b/META.yml
new file mode 100644 (file)
index 0000000..fd9b5df
--- /dev/null
+++ b/META.yml
@@ -0,0 +1,33 @@
+---
+name: Config-Any
+version: 0.04
+author:
+  - 'Joel Bernstein <rataxis@cpan.org>'
+abstract: 'Load configuration from different file formats, transparently'
+license: perl
+resources:
+  license: http://dev.perl.org/licenses/
+requires:
+  Module::Pluggable: 3.01
+  Test::More: 0
+  version: 0
+provides:
+  Config::Any:
+    file: lib/Config/Any.pm
+    version: 0.04
+  Config::Any::General:
+    file: lib/Config/Any/General.pm
+  Config::Any::INI:
+    file: lib/Config/Any/INI.pm
+  Config::Any::JSON:
+    file: lib/Config/Any/JSON.pm
+  Config::Any::Perl:
+    file: lib/Config/Any/Perl.pm
+  Config::Any::XML:
+    file: lib/Config/Any/XML.pm
+  Config::Any::YAML:
+    file: lib/Config/Any/YAML.pm
+generated_by: Module::Build version 0.2805
+meta-spec:
+  url: http://module-build.sourceforge.net/META-spec-v1.2.html
+  version: 1.2
diff --git a/t/01-use.t b/t/01-use.t
new file mode 100644 (file)
index 0000000..b14426a
--- /dev/null
@@ -0,0 +1,10 @@
+use Test::More tests => 6;\r
+\r
+BEGIN { \r
+    use_ok( 'Config::Any' );\r
+    use_ok( 'Config::Any::INI' );\r
+    use_ok( 'Config::Any::JSON' );\r
+    use_ok( 'Config::Any::Perl' );\r
+    use_ok( 'Config::Any::XML' );\r
+    use_ok( 'Config::Any::YAML' );\r
+}\r
diff --git a/t/50-general.t b/t/50-general.t
new file mode 100644 (file)
index 0000000..cf334cb
--- /dev/null
@@ -0,0 +1,11 @@
+use Test::More tests => 2;\r
+\r
+use Config::Any::General;\r
+\r
+my $config = eval { Config::Any::General->load( 't/conf/conf.conf' ) };\r
+\r
+SKIP: {\r
+    skip "Couldn't Load Config::General plugin", 2 if $@;\r
+    ok( $config );\r
+    is( $config->{ name }, 'TestApp' );\r
+}\r
diff --git a/t/51-ini.t b/t/51-ini.t
new file mode 100644 (file)
index 0000000..206d1a7
--- /dev/null
@@ -0,0 +1,11 @@
+use Test::More tests => 2;\r
+\r
+use Config::Any::INI;\r
+\r
+my $config = eval { Config::Any::INI->load( 't/conf/conf.ini' ) };\r
+\r
+SKIP: {\r
+    skip "Couldn't Load INI plugin", 2 if $@;\r
+    ok( $config );\r
+    is( $config->{ name }, 'TestApp' );\r
+}\r
diff --git a/t/52-json.t b/t/52-json.t
new file mode 100644 (file)
index 0000000..f4e45c3
--- /dev/null
@@ -0,0 +1,11 @@
+use Test::More tests => 2;\r
+\r
+use Config::Any::JSON;\r
+\r
+my $config = eval { Config::Any::JSON->load( 't/conf/conf.json' ) };\r
+\r
+SKIP: {\r
+    skip "Couldn't Load JSON plugin", 2 if $@;\r
+    ok( $config );\r
+    is( $config->{ name }, 'TestApp' );\r
+}\r
diff --git a/t/53-perl.t b/t/53-perl.t
new file mode 100644 (file)
index 0000000..427f611
--- /dev/null
@@ -0,0 +1,11 @@
+use Test::More tests => 2;\r
+\r
+use Config::Any::Perl;\r
+\r
+my $config = eval { Config::Any::Perl->load( 't/conf/conf.pl' ) };\r
+\r
+SKIP: {\r
+    skip "Couldn't Load Perl plugin", 2 if $@;\r
+    ok( $config );\r
+    is( $config->{ name }, 'TestApp' );\r
+}\r
diff --git a/t/54-xml.t b/t/54-xml.t
new file mode 100644 (file)
index 0000000..c8f94e9
--- /dev/null
@@ -0,0 +1,11 @@
+use Test::More tests => 2;\r
+\r
+use Config::Any::XML;\r
+\r
+my $config = eval { Config::Any::XML->load( 't/conf/conf.xml' ) };\r
+\r
+SKIP: {\r
+    skip "Couldn't Load XML plugin", 2 if $@;\r
+    ok( $config );\r
+    is( $config->{ name }, 'TestApp' );\r
+}\r
diff --git a/t/55-yaml.t b/t/55-yaml.t
new file mode 100644 (file)
index 0000000..74ff1b1
--- /dev/null
@@ -0,0 +1,11 @@
+use Test::More tests => 2;\r
+\r
+use Config::Any::YAML;\r
+\r
+my $config = eval { Config::Any::YAML->load( 't/conf/conf.yml' ) };\r
+\r
+SKIP: {\r
+    skip "Couldn't Load YAML plugin", 2 if $@;\r
+    ok( $config );\r
+    is( $config->{ name }, 'TestApp' );\r
+}\r