From: Joel Bernstein Date: Tue, 22 Aug 2006 19:26:35 +0000 (+0000) Subject: more files needed to create the dists, and tests X-Git-Tag: v0.04~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=572501abb2165014af8973bf9a4aa1f8a522356d;p=p5sagit%2FConfig-Any.git more files needed to create the dists, and tests --- diff --git a/META.yml b/META.yml new file mode 100644 index 0000000..fd9b5df --- /dev/null +++ b/META.yml @@ -0,0 +1,33 @@ +--- +name: Config-Any +version: 0.04 +author: + - 'Joel Bernstein ' +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 index 0000000..b14426a --- /dev/null +++ b/t/01-use.t @@ -0,0 +1,10 @@ +use Test::More tests => 6; + +BEGIN { + use_ok( 'Config::Any' ); + use_ok( 'Config::Any::INI' ); + use_ok( 'Config::Any::JSON' ); + use_ok( 'Config::Any::Perl' ); + use_ok( 'Config::Any::XML' ); + use_ok( 'Config::Any::YAML' ); +} diff --git a/t/50-general.t b/t/50-general.t new file mode 100644 index 0000000..cf334cb --- /dev/null +++ b/t/50-general.t @@ -0,0 +1,11 @@ +use Test::More tests => 2; + +use Config::Any::General; + +my $config = eval { Config::Any::General->load( 't/conf/conf.conf' ) }; + +SKIP: { + skip "Couldn't Load Config::General plugin", 2 if $@; + ok( $config ); + is( $config->{ name }, 'TestApp' ); +} diff --git a/t/51-ini.t b/t/51-ini.t new file mode 100644 index 0000000..206d1a7 --- /dev/null +++ b/t/51-ini.t @@ -0,0 +1,11 @@ +use Test::More tests => 2; + +use Config::Any::INI; + +my $config = eval { Config::Any::INI->load( 't/conf/conf.ini' ) }; + +SKIP: { + skip "Couldn't Load INI plugin", 2 if $@; + ok( $config ); + is( $config->{ name }, 'TestApp' ); +} diff --git a/t/52-json.t b/t/52-json.t new file mode 100644 index 0000000..f4e45c3 --- /dev/null +++ b/t/52-json.t @@ -0,0 +1,11 @@ +use Test::More tests => 2; + +use Config::Any::JSON; + +my $config = eval { Config::Any::JSON->load( 't/conf/conf.json' ) }; + +SKIP: { + skip "Couldn't Load JSON plugin", 2 if $@; + ok( $config ); + is( $config->{ name }, 'TestApp' ); +} diff --git a/t/53-perl.t b/t/53-perl.t new file mode 100644 index 0000000..427f611 --- /dev/null +++ b/t/53-perl.t @@ -0,0 +1,11 @@ +use Test::More tests => 2; + +use Config::Any::Perl; + +my $config = eval { Config::Any::Perl->load( 't/conf/conf.pl' ) }; + +SKIP: { + skip "Couldn't Load Perl plugin", 2 if $@; + ok( $config ); + is( $config->{ name }, 'TestApp' ); +} diff --git a/t/54-xml.t b/t/54-xml.t new file mode 100644 index 0000000..c8f94e9 --- /dev/null +++ b/t/54-xml.t @@ -0,0 +1,11 @@ +use Test::More tests => 2; + +use Config::Any::XML; + +my $config = eval { Config::Any::XML->load( 't/conf/conf.xml' ) }; + +SKIP: { + skip "Couldn't Load XML plugin", 2 if $@; + ok( $config ); + is( $config->{ name }, 'TestApp' ); +} diff --git a/t/55-yaml.t b/t/55-yaml.t new file mode 100644 index 0000000..74ff1b1 --- /dev/null +++ b/t/55-yaml.t @@ -0,0 +1,11 @@ +use Test::More tests => 2; + +use Config::Any::YAML; + +my $config = eval { Config::Any::YAML->load( 't/conf/conf.yml' ) }; + +SKIP: { + skip "Couldn't Load YAML plugin", 2 if $@; + ok( $config ); + is( $config->{ name }, 'TestApp' ); +}