Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Prep for 0.100 release. Admin/build files.

  • Loading branch information...
commit 83595165a0120b49c501159435ddfe0f61595de1 1 parent 4e971ac
@rjray authored
Showing with 224 additions and 0 deletions.
  1. +75 −0 Build.PL
  2. +48 −0 ChangeLog.xml
  3. +101 −0 README.textile
View
75 Build.PL
@@ -0,0 +1,75 @@
+###############################################################################
+#
+# Module::Build file for Test::AgainstSchema
+#
+###############################################################################
+
+use 5.008;
+use strict;
+use warnings;
+
+use Module::Build;
+
+my $class = Module::Build->subclass(
+ class => 'Test::AgainstSchema::Builder',
+ code => q|
+ sub ACTION_dist
+ {
+ my $self = shift;
+
+ # Create the text ChangeLog
+ $self->do_system('changelog2x',
+ qw(--template text
+ --input ChangeLog.xml
+ --output ChangeLog));
+ # Create the text README
+ $self->do_system('textile2x',
+ qw(--format plaintext
+ --input README.textile
+ --output README));
+
+ $self->SUPER::ACTION_manifest();
+ $self->SUPER::ACTION_dist();
+ }
+|);
+
+my $builder = $class->new(
+ module_name => 'Test::AgainstSchema',
+ license => 'perl',
+ dist_author => 'Randy J. Ray <rjray@blackperl.com>',
+ dist_version => '0.100',
+ build_requires => {
+ 'Test::More' => '0.80',
+ },
+ requires => {
+ 'perl' => '5.008',
+ 'File::Spec' => '0.8',
+ 'XML::LibXML' => '1.60',
+ 'Exporter' => '5.57',
+ 'Try::Tiny' => '0.11',
+ },
+ add_to_cleanup => [ qw(Test-AgainstSchema-*
+ ChangeLog
+ README
+ MANIFEST
+ MANIFEST.bak
+ META.yml
+ MYMETA.yml
+ MYMETA.json
+ Makefile.PL) ],
+ meta_merge =>
+ {
+ resources =>
+ {
+ homepage => 'http://search.cpan.org/dist/Test-AgainstSchema',
+ bugtracker => 'http://rt.cpan.org/Public/Dist/Display.html?Name=Test-AgainstSchema',
+ repository => 'https://github.com/rjray/test-againstschema',
+ }
+ },
+ create_makefile_pl => 'traditional',
+ recursive_test_files => 1,
+);
+
+$builder->create_build_script();
+
+exit 0;
View
48 ChangeLog.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- :tabSize=2:indentSize=2:wrap=hard: -->
+<changelog xmlns="http://www.blackperl.com/2009/01/ChangeLogML"
+ xmlns:sc="http://www.blackperl.com/2009/01/ChangeLogML/source-control"
+ xmlns:git="http://www.blackperl.com/2009/01/ChangeLogML/source-control/git"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:xhtml="http://www.w3.org/1999/xhtml"
+ xsi:schemaLocation="http://www.blackperl.com/XML/ChangeLog etc/ChangeLogML.xsd">
+ <project>Test::AgainstSchema</project>
+ <title>Perl Module Test::AgainstSchema Change History</title>
+ <description>
+ A Perl module to test formatted text against various schemas.
+ </description>
+ <release version="0.100" sc:tag="0.100" date="2012-01-16T14:00:00-08:00">
+ <change git:commit="31d42df1110a96efc6a607d40b7f44385cff2607">
+ <fileset>
+ <file path="lib/Test/AgainstSchema.pm" action="ADD" />
+ <file path="lib/Test/AgainstSchema/XML.pm" action="ADD" />
+ <file path="t/10_xml/05_xml_parsing.t" action="ADD" />
+ <file path="t/10_xml/10_sgmldtd.t" action="ADD" />
+ <file path="t/10_xml/20_xmlschema.t" action="ADD" />
+ <file path="t/10_xml/30_relaxng.t" action="ADD" />
+ <file path="t/10_xml/basic_tests.pl" action="ADD" />
+ <file path="t/10_xml/simple-bad.dtd" action="ADD" />
+ <file path="t/10_xml/simple-bad.rng" action="ADD" />
+ <file path="t/10_xml/simple-bad.xsd" action="ADD" />
+ <file path="t/10_xml/simple.dtd" action="ADD" />
+ <file path="t/10_xml/simple.rng" action="ADD" />
+ <file path="t/10_xml/simple.xsd" action="ADD" />
+ <file path="t/10_xml/xml-simple-bad.xml" action="ADD" />
+ <file path="t/10_xml/xml-simple.xml" action="ADD" />
+ <file path="t/90_integration/10_with_xml.t" action="ADD" />
+ <file path="t/90_integration/90_empty_subclass.t" action="ADD" />
+ <file path="t/90_integration/MyTestAgainstSchema.pm" action="ADD" />
+ <file path="t/util.pl" action="ADD" />
+ <file path="xt/00_load.t" action="ADD" />
+ <file path="xt/01_pod.t" action="ADD" />
+ <file path="xt/02_pod_coverage.t" action="ADD" />
+ <file path="xt/03_meta.t" action="ADD" />
+ <file path="xt/04_minimumversion.t" action="ADD" />
+ <file path="xt/05_critic.t" action="ADD" />
+ </fileset>
+ <description>
+ Initial commit of code, tests and test files.
+ </description>
+ </change>
+ </release>
+</changelog>
View
101 README.textile
@@ -0,0 +1,101 @@
+h1. Test::Against - Test Data Against Formal Schemas
+
+Version: 0.100
+
+h2. WHAT IS IT
+
+This is a testing framework for comparing text or other data to formal schemas
+such as XML Schema or Document Type Declarations. It functions in a way
+similar to Test::More, exporting all the same functions that Test::More
+exports. It can be used by itself, or in conjuntion with other Test::More-
+compatible modules.
+
+h2. USING Test::AgainstSchema
+
+You use Test::AgainstSchema itself as an umbrella class for the specific kind
+of schemas you plan to test against, or you can use the specific classes
+themselves:
+
+<pre>
+<code>
+ use Test::AgainstSchema::XML;
+
+ plan tests => $NUMBER_OF_TESTS;
+
+ is_well_formed_xml($xml_file);
+ is_valid_against_dtd($dtd_file, $xml_file,
+ "$xml_file validates against $dtd_file");
+
+ ...
+</code>
+</pre>
+
+or
+
+<pre>
+<code>
+ use Test::AgainstSchema 'XML', tests => $NUMBER;
+
+ is_well_formed_xml($xml_file);
+ is_valid_against_dtd($dtd_file, $xml_file,
+ "$xml_file validates against $dtd_file");
+
+ ...
+</code>
+</pre>
+
+h2. BUILDING/INSTALLING
+
+This package provides a Makefile.PL file as is typical of CPAN modules.
+Building and installing is as easy as:
+
+<pre>
+<code>
+ perl Makefile.PL
+ make
+ make test
+ # If tests pass
+ make install
+</code>
+</pre>
+
+(The "make install" step may require super-user privileges.)
+
+h2. PROBLEMS/BUG REPORTS
+
+Problems, bug reports, or suggestions for enhancements can be sent to the RT
+instance set up for all CPAN-based distributions:
+
+bq. http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test-AgainstSchema
+
+h2. CHANGES
+
+This is the initial release.
+
+* lib/Test/AgainstSchema.pm (added)
+* lib/Test/AgainstSchema/XML.pm (added)
+* t/10_xml/05_xml_parsing.t (added)
+* t/10_xml/10_sgmldtd.t (added)
+* t/10_xml/20_xmlschema.t (added)
+* t/10_xml/30_relaxng.t (added)
+* t/10_xml/basic_tests.pl (added)
+* t/10_xml/simple-bad.dtd (added)
+* t/10_xml/simple-bad.rng (added)
+* t/10_xml/simple-bad.xsd (added)
+* t/10_xml/simple.dtd (added)
+* t/10_xml/simple.rng (added)
+* t/10_xml/simple.xsd (added)
+* t/10_xml/xml-simple-bad.xml (added)
+* t/10_xml/xml-simple.xml (added)
+* t/90_integration/10_with_xml.t (added)
+* t/90_integration/90_empty_subclass.t (added)
+* t/90_integration/MyTestAgainstSchema.pm (added)
+* t/util.pl (added)
+* xt/00_load.t (added)
+* xt/01_pod.t (added)
+* xt/02_pod_coverage.t (added)
+* xt/03_meta.t (added)
+* xt/04_minimumversion.t (added)
+* xt/05_critic.t (added)
+
+p{margin-bottom:2em}. Initial commit of code, tests and test files.
Please sign in to comment.
Something went wrong with that request. Please try again.