summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-06-03 15:42:19 +0200
committerfranck cuny <franck@lumberjaph.net>2010-06-03 16:05:02 +0200
commit5ec146c5c6d78fa80f68ee764c549c0aac7badbe (patch)
tree799f830f1c8aa1d68460db7dda9eb36c6429779e
parentrename some methods (diff)
downloadmoosex-net-api-5ec146c5c6d78fa80f68ee764c549c0aac7badbe.tar.gz
update dist.ini
add abstract

update POD to use podweaver

fix
-rw-r--r--dist.ini22
-rw-r--r--lib/MooseX/Net/API.pm26
-rw-r--r--lib/MooseX/Net/API/Error.pm24
-rw-r--r--lib/MooseX/Net/API/Meta/Class.pm24
-rw-r--r--lib/MooseX/Net/API/Meta/Method.pm24
-rw-r--r--lib/MooseX/Net/API/Meta/Method/APIDeclare.pm24
-rw-r--r--lib/MooseX/Net/API/Meta/Method/APIMethod.pm24
-rw-r--r--lib/MooseX/Net/API/Parser.pm24
-rw-r--r--lib/MooseX/Net/API/Parser/JSON.pm24
-rw-r--r--lib/MooseX/Net/API/Parser/XML.pm24
-rw-r--r--lib/MooseX/Net/API/Parser/YAML.pm24
-rw-r--r--lib/MooseX/Net/API/Role/Authentication.pm24
-rw-r--r--lib/MooseX/Net/API/Role/Format.pm24
-rw-r--r--lib/MooseX/Net/API/Role/Request.pm24
-rw-r--r--lib/MooseX/Net/API/Role/Serialization.pm24
-rw-r--r--lib/MooseX/Net/API/Role/UserAgent.pm24
16 files changed, 48 insertions, 336 deletions
diff --git a/dist.ini b/dist.ini
index 2dde1b5..b750a90 100644
--- a/dist.ini
+++ b/dist.ini
@@ -5,10 +5,24 @@ copyright_holder = linkfluence
 copyright_year = 2010
 version = 0.11
 
-[@FLORA]
-dist = MooseX-Net-API
-repository_at = github
-github_user = franckcuny
+[@Filter]
+bundle = @Basic
+
+[MetaConfig]
+[MetaJSON]
+[PkgVersion]
+[PodSyntaxTests]
+[PodCoverageTests]
+[NoTabsTests]
+[EOLTests]
+
+[MetaResources]
+repository = git://github.com/franckcuny/moosex-net-api.git
+bugtracker = http://rt.cpan.org/Public/Dist/Display.html?Name=MooseX::Net::API
+homepage = http://search.cpan.org/perldoc?MooseX::Net::API
+
+[PodWeaver]
+[AutoPrereq]
 [ReadmeFromPod]
 [CheckChangeLog]
 [UploadToCPAN]
diff --git a/lib/MooseX/Net/API.pm b/lib/MooseX/Net/API.pm
index 2dcfc13..d801eb9 100644
--- a/lib/MooseX/Net/API.pm
+++ b/lib/MooseX/Net/API.pm
@@ -1,5 +1,7 @@
 package MooseX::Net::API;
 
+# ABSTRACT: Easily create client for net API
+
 use Moose;
 use Moose::Exporter;
 
@@ -51,12 +53,6 @@ sub init_meta {
 
 1;
 
-__END__
-
-=head1 NAME
-
-MooseX::Net::API - Easily create client for net API
-
 =head1 SYNOPSIS
 
     package My::Net::API;
@@ -288,21 +284,3 @@ When you do a post, the content may have to be sent as arguments in the url, and
 =back
 
 =back
-
-=head1 AUTHOR
-
-franck cuny E<lt>franck@lumberjaph.netE<gt>
-
-=head1 SEE ALSO
-
-=head1 LICENSE
-
-Copyright 2009 by Linkfluence
-
-http://linkfluence.net
-
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
-
-=cut
-
diff --git a/lib/MooseX/Net/API/Error.pm b/lib/MooseX/Net/API/Error.pm
index 8825877..0bb760a 100644
--- a/lib/MooseX/Net/API/Error.pm
+++ b/lib/MooseX/Net/API/Error.pm
@@ -1,5 +1,7 @@
 package MooseX::Net::API::Error;
 
+# ABSTRACT: Throw error
+
 use Moose;
 use JSON;
 use Moose::Util::TypeConstraints;
@@ -29,11 +31,6 @@ sub error {
 }
 
 1;
-__END__
-
-=head1 NAME
-
-MooseX::Net::API::Error
 
 =head1 SYNOPSIS
 
@@ -44,20 +41,3 @@ or
     MooseX::Net::API::Error->new()
 
 =head1 DESCRIPTION
-
-=head1 AUTHOR
-
-franck cuny E<lt>franck@lumberjaph.netE<gt>
-
-=head1 SEE ALSO
-
-=head1 LICENSE
-
-Copyright 2009, 2010 by Linkfluence
-
-http://linkfluence.net
-
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
-
-=cut
diff --git a/lib/MooseX/Net/API/Meta/Class.pm b/lib/MooseX/Net/API/Meta/Class.pm
index 9fdd793..ad1b709 100644
--- a/lib/MooseX/Net/API/Meta/Class.pm
+++ b/lib/MooseX/Net/API/Meta/Class.pm
@@ -1,5 +1,7 @@
 package MooseX::Net::API::Meta::Class;
 
+# ABSTRACT: metaclass for all API client
+
 use Moose::Role;
 
 with qw/
@@ -8,29 +10,7 @@ with qw/
     /;
 
 1;
-__END__
-
-=head1 NAME
-
-MooseX::Net::API::Meta::Class
 
 =head1 SYNOPSIS
 
 =head1 DESCRIPTION
-
-=head1 AUTHOR
-
-franck cuny E<lt>franck@lumberjaph.netE<gt>
-
-=head1 SEE ALSO
-
-=head1 LICENSE
-
-Copyright 2009, 2010 by Linkfluence
-
-http://linkfluence.net
-
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
-
-=cut
diff --git a/lib/MooseX/Net/API/Meta/Method.pm b/lib/MooseX/Net/API/Meta/Method.pm
index 70ae2c8..62b4869 100644
--- a/lib/MooseX/Net/API/Meta/Method.pm
+++ b/lib/MooseX/Net/API/Meta/Method.pm
@@ -1,5 +1,7 @@
 package MooseX::Net::API::Meta::Method;
 
+# ABSTRACT: create api method
+
 use Moose;
 use MooseX::Net::API::Error;
 use Moose::Util::TypeConstraints;
@@ -192,29 +194,7 @@ sub _build_uri {
 }
 
 1;
-__END__
-
-=head1 NAME
-
-MooseX::Net::API::Meta::Class::Method
 
 =head1 SYNOPSIS
 
 =head1 DESCRIPTION
-
-=head1 AUTHOR
-
-franck cuny E<lt>franck@lumberjaph.netE<gt>
-
-=head1 SEE ALSO
-
-=head1 LICENSE
-
-Copyright 2009, 2010 by Linkfluence
-
-http://linkfluence.net
-
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
-
-=cut
diff --git a/lib/MooseX/Net/API/Meta/Method/APIDeclare.pm b/lib/MooseX/Net/API/Meta/Method/APIDeclare.pm
index 503ed82..f9274bf 100644
--- a/lib/MooseX/Net/API/Meta/Method/APIDeclare.pm
+++ b/lib/MooseX/Net/API/Meta/Method/APIDeclare.pm
@@ -1,5 +1,7 @@
 package MooseX::Net::API::Meta::Method::APIDeclare;
 
+# ABSTRACT: declare API
+
 use Moose::Role;
 use MooseX::Net::API::Error;
 
@@ -48,29 +50,7 @@ sub add_net_api_declare {
 }
 
 1;
-__END__
-
-=head1 NAME
-
-MooseX::Net::API::Meta::Class::Method::APIDeclare
 
 =head1 SYNOPSIS
 
 =head1 DESCRIPTION
-
-=head1 AUTHOR
-
-franck cuny E<lt>franck@lumberjaph.netE<gt>
-
-=head1 SEE ALSO
-
-=head1 LICENSE
-
-Copyright 2009, 2010 by Linkfluence
-
-http://linkfluence.net
-
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
-
-=cut
diff --git a/lib/MooseX/Net/API/Meta/Method/APIMethod.pm b/lib/MooseX/Net/API/Meta/Method/APIMethod.pm
index 0da54b8..0f6a6e8 100644
--- a/lib/MooseX/Net/API/Meta/Method/APIMethod.pm
+++ b/lib/MooseX/Net/API/Meta/Method/APIMethod.pm
@@ -1,5 +1,7 @@
 package MooseX::Net::API::Meta::Method::APIMethod;
 
+# ABSTRACT: declare API method
+
 use Moose::Role;
 use MooseX::Net::API::Error;
 use MooseX::Net::API::Meta::Method;
@@ -59,29 +61,7 @@ after add_net_api_method => sub {
 };
 
 1;
-__END__
-
-=head1 NAME
-
-MooseX::Net::API::Meta::Class::Method::APIMethod
 
 =head1 SYNOPSIS
 
 =head1 DESCRIPTION
-
-=head1 AUTHOR
-
-franck cuny E<lt>franck@lumberjaph.netE<gt>
-
-=head1 SEE ALSO
-
-=head1 LICENSE
-
-Copyright 2009, 2010 by Linkfluence
-
-http://linkfluence.net
-
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
-
-=cut
diff --git a/lib/MooseX/Net/API/Parser.pm b/lib/MooseX/Net/API/Parser.pm
index 8bf74b0..c56a026 100644
--- a/lib/MooseX/Net/API/Parser.pm
+++ b/lib/MooseX/Net/API/Parser.pm
@@ -1,5 +1,7 @@
 package MooseX::Net::API::Parser;
 
+# ABSTRACT: base class for all MooseX::Net::API::Parser
+
 use Moose;
 
 sub encode {die "must be implemented"}
@@ -7,29 +9,7 @@ sub decode {die "must be implemented"}
 
 1;
 
-__END__
-
-=head1 NAME
-
-MooseX::Net::API::Parser
-
 =head1 SYNOPSIS
 
 =head1 DESCRIPTION
 
-=head1 AUTHOR
-
-franck cuny E<lt>franck@lumberjaph.netE<gt>
-
-=head1 SEE ALSO
-
-=head1 LICENSE
-
-Copyright 2010 by Linkfluence
-
-http://linkfluence.net
-
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
-
-=cut
diff --git a/lib/MooseX/Net/API/Parser/JSON.pm b/lib/MooseX/Net/API/Parser/JSON.pm
index bf4c08b..58cc95a 100644
--- a/lib/MooseX/Net/API/Parser/JSON.pm
+++ b/lib/MooseX/Net/API/Parser/JSON.pm
@@ -1,5 +1,7 @@
 package MooseX::Net::API::Parser::JSON;
 
+# ABSTRACT: Parse JSON
+
 use JSON;
 use Moose;
 extends 'MooseX::Net::API::Parser';
@@ -15,29 +17,7 @@ sub decode {
 }
 
 1;
-__END__
-
-=head1 NAME
-
-MooseX::Net::API::Parser::JSON
 
 =head1 SYNOPSIS
 
 =head1 DESCRIPTION
-
-=head1 AUTHOR
-
-franck cuny E<lt>franck@lumberjaph.netE<gt>
-
-=head1 SEE ALSO
-
-=head1 LICENSE
-
-Copyright 2010 by Linkfluence
-
-http://linkfluence.net
-
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
-
-=cut
diff --git a/lib/MooseX/Net/API/Parser/XML.pm b/lib/MooseX/Net/API/Parser/XML.pm
index 7198175..305d4b4 100644
--- a/lib/MooseX/Net/API/Parser/XML.pm
+++ b/lib/MooseX/Net/API/Parser/XML.pm
@@ -1,5 +1,7 @@
 package MooseX::Net::API::Parser::XML;
 
+# ABSTRACT: Parse XML result
+
 use XML::Simple;
 use Moose;
 extends 'MooseX::Net::API::Parser';
@@ -22,29 +24,7 @@ sub decode {
 }
 
 1;
-__END__
-
-=head1 NAME
-
-MooseX::Net::API::Parser::XML
 
 =head1 SYNOPSIS
 
 =head1 DESCRIPTION
-
-=head1 AUTHOR
-
-franck cuny E<lt>franck@lumberjaph.netE<gt>
-
-=head1 SEE ALSO
-
-=head1 LICENSE
-
-Copyright 2010 by Linkfluence
-
-http://linkfluence.net
-
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
-
-=cut
diff --git a/lib/MooseX/Net/API/Parser/YAML.pm b/lib/MooseX/Net/API/Parser/YAML.pm
index 5258796..82e6da2 100644
--- a/lib/MooseX/Net/API/Parser/YAML.pm
+++ b/lib/MooseX/Net/API/Parser/YAML.pm
@@ -1,5 +1,7 @@
 package MooseX::Net::API::Parser::YAML;
 
+# ABSTRACT: Parse YAML
+
 use YAML::Syck;
 use Moose;
 extends 'MooseX::Net::API::Parser';
@@ -15,29 +17,7 @@ sub decode {
 }
 
 1;
-__END__
-
-=head1 NAME
-
-MooseX::Net::API::Parser::YAML
 
 =head1 SYNOPSIS
 
 =head1 DESCRIPTION
-
-=head1 AUTHOR
-
-franck cuny E<lt>franck@lumberjaph.netE<gt>
-
-=head1 SEE ALSO
-
-=head1 LICENSE
-
-Copyright 2010 by Linkfluence
-
-http://linkfluence.net
-
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
-
-=cut
diff --git a/lib/MooseX/Net/API/Role/Authentication.pm b/lib/MooseX/Net/API/Role/Authentication.pm
index 7f741b3..7859154 100644
--- a/lib/MooseX/Net/API/Role/Authentication.pm
+++ b/lib/MooseX/Net/API/Role/Authentication.pm
@@ -1,5 +1,7 @@
 package MooseX::Net::API::Role::Authentication;
 
+# ABSTRACT: Add authentication informations to request header
+
 use Moose::Role;
 
 has api_username => (
@@ -45,11 +47,6 @@ after BUILDALL => sub {
 };
 
 1;
-__END__
-
-=head1 NAME
-
-MooseX::Net::API::Role::Authentication
 
 =head1 SYNOPSIS
 
@@ -64,20 +61,3 @@ MooseX::Net::API::Role::Authentication
 =item B<api_username>
 
 =back
-
-=head1 AUTHOR
-
-franck cuny E<lt>franck@lumberjaph.netE<gt>
-
-=head1 SEE ALSO
-
-=head1 LICENSE
-
-Copyright 2009, 2010 by Linkfluence
-
-http://linkfluence.net
-
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
-
-=cut
diff --git a/lib/MooseX/Net/API/Role/Format.pm b/lib/MooseX/Net/API/Role/Format.pm
index 37956bb..abffbe6 100644
--- a/lib/MooseX/Net/API/Role/Format.pm
+++ b/lib/MooseX/Net/API/Role/Format.pm
@@ -1,5 +1,7 @@
 package MooseX::Net::API::Role::Format;
 
+# ABSTRACT: Set appropriate format to request header
+
 use Moose::Role;
 use Moose::Util::TypeConstraints;
 
@@ -39,11 +41,6 @@ has api_format_mode => (
 );
 
 1;
-__END__
-
-=head1 NAME
-
-MooseX::Net::API::Role::Format
 
 =head1 SYNOPSIS
 
@@ -66,20 +63,3 @@ MooseX::Net::API::Role::Format
 =item B<api_format_mode>
 
 =back
-
-=head1 AUTHOR
-
-franck cuny E<lt>franck@lumberjaph.netE<gt>
-
-=head1 SEE ALSO
-
-=head1 LICENSE
-
-Copyright 2009, 2010 by Linkfluence
-
-http://linkfluence.net
-
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
-
-=cut
diff --git a/lib/MooseX/Net/API/Role/Request.pm b/lib/MooseX/Net/API/Role/Request.pm
index 3b97da6..5adb43c 100644
--- a/lib/MooseX/Net/API/Role/Request.pm
+++ b/lib/MooseX/Net/API/Role/Request.pm
@@ -1,5 +1,7 @@
 package MooseX::Net::API::Role::Request;
 
+# ABSTRACT: make HTTP request
+
 use Moose::Role;
 use HTTP::Request;
 use MooseX::Net::API::Error;
@@ -50,11 +52,6 @@ sub http_request {
 }
 
 1;
-__END__
-
-=head1 NAME
-
-MooseX::Net::API::Role::Request
 
 =head1 SYNOPSIS
 
@@ -75,20 +72,3 @@ MooseX::Net::API::Role::Request
 =item B<api_base_url>
 
 =back
-
-=head1 AUTHOR
-
-franck cuny E<lt>franck@lumberjaph.netE<gt>
-
-=head1 SEE ALSO
-
-=head1 LICENSE
-
-Copyright 2009, 2010 by Linkfluence
-
-http://linkfluence.net
-
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
-
-=cut
diff --git a/lib/MooseX/Net/API/Role/Serialization.pm b/lib/MooseX/Net/API/Role/Serialization.pm
index d4feb56..1a090d1 100644
--- a/lib/MooseX/Net/API/Role/Serialization.pm
+++ b/lib/MooseX/Net/API/Role/Serialization.pm
@@ -1,5 +1,7 @@
 package MooseX::Net::API::Role::Serialization;
 
+# ABSTRACT: do (de)serialization
+
 use 5.010;
 
 use Try::Tiny;
@@ -70,11 +72,6 @@ sub _load_serializer {
 }
 
 1;
-__END__
-
-=head1 NAME
-
-MooseX::Net::API::Role::Serialization
 
 =head1 SYNOPSIS
 
@@ -99,20 +96,3 @@ MooseX::Net::API::Role::Serialization
 =item B<deserialize>
 
 =back
-
-=head1 AUTHOR
-
-franck cuny E<lt>franck@lumberjaph.netE<gt>
-
-=head1 SEE ALSO
-
-=head1 LICENSE
-
-Copyright 2009, 2010 by Linkfluence
-
-http://linkfluence.net
-
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
-
-=cut
diff --git a/lib/MooseX/Net/API/Role/UserAgent.pm b/lib/MooseX/Net/API/Role/UserAgent.pm
index c21628a..3cb9714 100644
--- a/lib/MooseX/Net/API/Role/UserAgent.pm
+++ b/lib/MooseX/Net/API/Role/UserAgent.pm
@@ -1,5 +1,7 @@
 package MooseX::Net::API::Role::UserAgent;
 
+# ABSTRACT: create UserAgent
+
 use Moose::Role;
 use LWP::UserAgent;
 
@@ -20,11 +22,6 @@ has api_useragent => (
 );
 
 1;
-__END__
-
-=head1 NAME
-
-MooseX::Net::API::Role::UseAgent
 
 =head1 SYNOPSIS
 
@@ -37,20 +34,3 @@ MooseX::Net::API::Role::UseAgent
 =item B<api_useragent>
 
 =back
-
-=head1 AUTHOR
-
-franck cuny E<lt>franck@lumberjaph.netE<gt>
-
-=head1 SEE ALSO
-
-=head1 LICENSE
-
-Copyright 2009, 2010 by Linkfluence
-
-http://linkfluence.net
-
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
-
-=cut