--- /dev/null
+---
+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
--- /dev/null
+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
--- /dev/null
+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
--- /dev/null
+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
--- /dev/null
+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
--- /dev/null
+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
--- /dev/null
+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
--- /dev/null
+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