Permalink
Browse files

Converted from Module::Install to Dist::Zilla

  • Loading branch information...
1 parent b276c41 commit 323c64adb483859fd5ab1149638cf3f4426f3e63 @robinsmidsrod committed Jun 12, 2010
View
@@ -6,3 +6,5 @@
/MANIFEST.bak
/META.yml
/pm_to_blib
+/W3C-XMLSchema-*
+/.build
View
@@ -1,5 +1,4 @@
Revision history for W3C-XMLSchema
-0.01 Date/time
- First version, released on an unsuspecting world.
-
+{{$NEXT}}
+ Initial version.
View
@@ -1,17 +0,0 @@
-use inc::Module::Install 0.99;
-
-name 'W3C-XMLSchema';
-author q{Robin Smidsrød <robin@smidsrod.no>};
-license 'perl';
-all_from 'lib/W3C/XMLSchema.pm';
-
-requires 'Moose' => '0.88';
-requires 'XML::Rabbit' => '0.0.1';
-
-build_requires 'Test::More' => '0.88';
-
-install_script 'xsd_structure';
-
-repository 'git://github.com/robinsmidsrod/W3C-XMLSchema.git';
-
-WriteAll;
View
45 README
@@ -1,45 +0,0 @@
-W3C::XMLSchema - Parser for W3C XML Schema Definition (XSD)
-
-This is a module that makes it easy to iterate over and extract information
-from an XML Schema definition (aka XSD), as defined by the W3C.
-
-
-INSTALLATION
-
-To install this module, run the following commands:
-
- perl Makefile.PL
- make
- make test
- make install
-
-SUPPORT AND DOCUMENTATION
-
-After installing, you can find documentation for this module with the
-perldoc command.
-
- perldoc W3C::XMLSchema
-
-You can also look for information at:
-
- RT, CPAN's request tracker
- http://rt.cpan.org/NoAuth/Bugs.html?Dist=W3C-XMLSchema
-
- AnnoCPAN, Annotated CPAN documentation
- http://annocpan.org/dist/W3C-XMLSchema
-
- CPAN Ratings
- http://cpanratings.perl.org/d/W3C-XMLSchema
-
- Search CPAN
- http://search.cpan.org/dist/W3C-XMLSchema/
-
-
-COPYRIGHT AND LICENCE
-
-Copyright (C) 2009 Robin Smidsrød.
-
-This program is free software; you can redistribute it and/or modify it
-under the same terms as Perl itself.
-
-See http://dev.perl.org/licenses/ for more information.
File renamed without changes.
View
@@ -0,0 +1,45 @@
+name = W3C-XMLSchema
+author = Robin Smidsrød <robin@smidsrod.no>
+license = Perl_5
+copyright_holder = Robin Smidsrød
+
+;Semantic versioning, see http://semver.org/
+version = 0.0.1
+
+[NextRelease]
+[@Git]
+
+[@Filter]
+-bundle = @Basic
+-remove = Readme
+
+[MetaJSON]
+[PkgVersion]
+[PodWeaver]
+
+[MetaResources]
+repository.url = git://github.com/robinsmidsrod/W3C-XMLSchema.git
+repository.web = http://github.com/robinsmidsrod/W3C-XMLSchema
+repository.type = git
+
+[InstallGuide]
+[ReadmeFromPod]
+
+[PodSyntaxTests]
+[PodCoverageTests]
+[CriticTests]
+[KwaliteeTests]
+[NoTabsTests]
+
+;Makefile.PL perl_prereq emits trailing whitespace
+;[EOLTests]
+
+;Need to get my signing stuff setup properly...
+;[Signature]
+
+[AutoPrereq]
+skip = ^XML::Rabbit::
+
+[Prereq]
+Moose = 0.88
+XML::Rabbit = 0.0.1
View
@@ -1,10 +0,0 @@
-blib*
-Makefile
-Makefile.old
-Build
-_build*
-pm_to_blib*
-*.tar.gz
-.lwpcookies
-W3C-XMLSchema-*
-cover_db
View
@@ -1,40 +1,79 @@
+use strict;
+use warnings;
+
package W3C::XMLSchema;
use Moose;
with 'XML::Rabbit::RootNode';
+# ABSTRACT: Parser for W3C XML Schema Definition (XSD)
+
use 5.008;
-our $VERSION = '0.01';
+=attr namespace_map
+
+Namespace map for XMLSchema definition.
+
+=cut
has '+namespace_map' => (
default => sub { {
'xsd' => 'http://www.w3.org/2001/XMLSchema',
} }
);
+=attr target_namespace
+
+The namespace the schema definition targets.
+
+=cut
+
has 'target_namespace' => (
traits => [qw/XPathValue/],
xpath_query => './@targetNamespace',
);
+=attr attribute_groups
+
+A list of all the attribute groups defined. Instances of L<W3C::XMLSchema::AttributeGroup>.
+
+=cut
+
has 'attribute_groups' => (
isa => 'ArrayRef[W3C::XMLSchema::AttributeGroup]',
traits => [qw/XPathObjectList/],
xpath_query => './xsd:attributeGroup',
);
+=attr groups
+
+A list of all the groups defined. Instances of L<W3C::XMLSchema::Group>.
+
+=cut
+
has 'groups' => (
isa => 'ArrayRef[W3C::XMLSchema::Group]',
traits => [qw/XPathObjectList/],
xpath_query => './xsd:group',
);
+=attr complex_types
+
+A list of all the complex types defined. Instances of L<W3C::XMLSchema::ComplexType>.
+
+=cut
+
has 'complex_types' => (
isa => 'ArrayRef[W3C::XMLSchema::ComplexType]',
traits => [qw/XPathObjectList/],
xpath_query => './xsd:complexType',
);
+=attr elements
+
+A list of all the elements defined. Instances of L<W3C::XMLSchema::Element>.
+
+=cut
+
has 'elements' => (
isa => 'ArrayRef[W3C::XMLSchema::Element]',
traits => [qw/XPathObjectList/],
@@ -46,17 +85,6 @@ __PACKAGE__->meta->make_immutable();
1;
-=encoding utf8
-
-=head1 NAME
-
-W3C::XMLSchema - Parser for W3C XML Schema Definition (XSD)
-
-=head1 VERSION
-
-Version 0.01
-
-
=head1 SYNOPSIS
use W3C::XMLSchema;
@@ -82,120 +110,15 @@ Version 0.01
This is a module that makes it easy to iterate over and extract information
from an XML Schema definition (aka XSD), as defined by the W3C.
+=head1 INCOMPLETE IMPLEMENTATION / WORK-IN-PROGRESS
-=head1 METHODS
-
+This implementation is incomplete and should be considered a
+work-in-progress. Please file bug reports (or provide patches) if something
+you need is not extractable with the current API.
-=over 12
-
-
-=item C<new>
-
-Inherited Moose constructor.
-
-
-=item C<target_namespace>
-
-The namespace the schema definition targets.
-
-
-=item C<attribute_groups>
-
-A list of all the attribute groups defined. Instances of L<W3C::XMLSchema::AttributeGroup>.
-
-
-=item C<groups>
-
-A list of all the groups defined. Instances of L<W3C::XMLSchema::Group>.
-
-
-=item C<complex_types>
-
-A list of all the complex types defined. Instances of L<W3C::XMLSchema::ComplexType>.
-
-
-=item C<elements>
-
-A list of all the elements defined. Instances of L<W3C::XMLSchema::Element>.
-
-
-=item C<namespace_map>
-
-Namespace map for XMLSchema definition.
-
-
-=item C<node>
-
-Inherited from L<XML::Rabbit::RootNode>.
-
-
-=item C<xpc>
-
-Inherited from L<XML::Rabbit::RootNode>.
-
-
-=item C<meta>
-
-Moose meta object.
-
-
-=item C<dump_xml>
-
-Inherited from L<XML::Rabbit::Role::Node>.
-
-
-=item C<dump_document_xml>
-
-Inherited from L<XML::Rabbit::Role::Document>.
-
-
-=back
-
-
-=head1 BUGS
-
-Please report any bugs or feature requests to C<bug-w3c-xmlschema at
-rt.cpan.org>, or through the web interface at
-L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=W3C-XMLSchema>. I will be
-notified, and then you'll automatically be notified of progress on your bug
-as I make changes.
-
-
-=head1 AVAILABILITY
-
-The latest version of this module can be downloaded from
-http://github.com/robinsmidsrod/W3C-XMLSchema/
-
-
-=head1 SUPPORT
-
-You can find documentation for this module with the perldoc command.
-
- perldoc W3C::XMLSchema
-
-
-You can also look for information at:
-
-=over 4
-
-=item * RT: CPAN's request tracker
-
-L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=W3C-XMLSchema>
-
-=item * AnnoCPAN: Annotated CPAN documentation
-
-L<http://annocpan.org/dist/W3C-XMLSchema>
-
-=item * CPAN Ratings
-
-L<http://cpanratings.perl.org/d/W3C-XMLSchema>
-
-=item * Search CPAN
-
-L<http://search.cpan.org/dist/W3C-XMLSchema/>
-
-=back
+=head1 SEMANTIC VERSIONING
+This module uses semantic versioning concepts from L<http://semver.org/>.
=head1 ACKNOWLEDGEMENTS
@@ -205,27 +128,10 @@ me to work on this module.
Chris Prather (perigrin)
-=head1 AUTHOR
-
-Robin Smidsrød, C<< <robin at smidsrod.no> >>
-
-
-=head1 COPYRIGHT
-
-Copyright 2009 Robin Smidsrød.
-
-
-=head1 LICENSE
-
-This program is free software; you can redistribute it and/or modify it
-under the same terms as Perl itself.
-
-See http://dev.perl.org/licenses/ for more information.
-
-
=head1 SEE ALSO
-L<XML::Rabbit>, L<XML::Toolkit>, L<Moose>, L<XML::LibXML>
-
-
-=cut
+=for :list
+* L<XML::Rabbit>
+* L<XML::Toolkit>
+* L<Moose>
+* L<XML::LibXML>
Oops, something went wrong.

0 comments on commit 323c64a

Please sign in to comment.