Permalink
Browse files

moving to Dist::Zilla

  • Loading branch information...
xsawyerx committed Aug 31, 2010
1 parent 970084b commit 11edc32255b6d2bb4f16d7aa1faed5c13d0e9c5d
Showing with 2 additions and 642 deletions.
  1. +0 −21 Build.PL
  2. +0 −377 LICENSE
  3. +0 −17 MANIFEST
  4. +0 −3 MANIFEST.SKIP
  5. +0 −24 META.yml
  6. +0 −16 Makefile.PL
  7. +0 −109 README
  8. +2 −22 lib/Net/IPAddress/Minimal.pm
  9. +0 −10 t/00-load.t
  10. +0 −13 t/manifest.t
  11. +0 −18 t/pod-coverage.t
  12. +0 −12 t/pod.t
View
@@ -1,21 +0,0 @@
-use strict;
-use warnings;
-use Module::Build;
-
-my $builder = Module::Build->new(
- module_name => 'Net::IPAddress::Minimal',
- license => 'perl',
- dist_author => q{Tamir Lousky <tlousky@cpan.org>},
- dist_version_from => 'lib/Net/IPAddress/Minimal.pm',
- build_requires => {
- 'Test::More' => 0,
- 'Test::Exception' => 0,
- },
- requires => { Exporter => 0 },
- add_to_cleanup => [ 'Net-IPAddress-Minimal-*' ],
- create_makefile_pl => 'traditional',
- create_readme => 1,
- create_license => 1,
-);
-
-$builder->create_build_script();
View
377 LICENSE

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,17 +0,0 @@
-Build.PL
-Changes
-examples/tester.pl
-lib/Net/IPAddress/Minimal.pm
-LICENSE
-Makefile.PL
-MANIFEST
-MANIFEST.SKIP
-META.yml
-README
-t/00-load.t
-t/basic.t
-t/basic_invert.t
-t/extend_invert.t
-t/manifest.t
-t/pod-coverage.t
-t/pod.t
View
@@ -1,3 +0,0 @@
-^\.git
-\.swp$
-^MYMETA.yml$
View
@@ -1,24 +0,0 @@
----
-abstract: 'IP string to number and back'
-author:
- - 'Tamir Lousky <tlousky@cpan.org>'
-build_requires:
- Test::Exception: 0
- Test::More: 0
-configure_requires:
- Module::Build: 0.36
-generated_by: 'Module::Build version 0.3607'
-license: perl
-meta-spec:
- url: http://module-build.sourceforge.net/META-spec-v1.4.html
- version: 1.4
-name: Net-IPAddress-Minimal
-provides:
- Net::IPAddress::Minimal:
- file: lib/Net/IPAddress/Minimal.pm
- version: 0.02
-requires:
- Exporter: 0
-resources:
- license: http://dev.perl.org/licenses/
-version: 0.02
View
@@ -1,16 +0,0 @@
-# Note: this file was auto-generated by Module::Build::Compat version 0.3607
-use ExtUtils::MakeMaker;
-WriteMakefile
-(
- 'NAME' => 'Net::IPAddress::Minimal',
- 'VERSION_FROM' => 'lib/Net/IPAddress/Minimal.pm',
- 'PREREQ_PM' => {
- 'Exporter' => 0,
- 'Test::Exception' => 0,
- 'Test::More' => 0
- },
- 'INSTALLDIRS' => 'site',
- 'EXE_FILES' => [],
- 'PL_FILES' => {}
- )
-;
View
109 README
@@ -1,109 +0,0 @@
-NAME
- Net::IPAddress::Minimal - IP string to number and back
-
-VERSION
- Version 0.02
-
-SYNOPSIS
- This module converts IPv4 strings to integer IP numbers and vice versa.
-
- It's built to be used as quickly and easily as possible, which is why
- you can just simply use the "invert_ip" function.
-
- It recognizes whether you have an IPv4 string or a number and converts
- it to the other form.
-
- Here's a sample script:
-
- use Net::IPAddress::Minimal ('invert_ip');
-
- my $input_string = shift @ARGV;
- my $output = invert_ip( $input_string );
-
- print "$output\n";
-
-EXPORT
- Three functions can be exported:
-
- * invert_ip
-
- * num_to_ip
-
- * ip_to_num
-
-SUBROUTINES/METHODS
- invert_ip
- Gets an IPv4 string or an IP number and converts it to the other form.
-
- my $ip_num = invert_ip( '10.200.10.130' );
- # $ip_str = 180882050
-
- my $ip_num = invert_ip( 180882050 );
- # $ip_str = '10.200.10.130';
-
- num_to_ip
- Gets an IP number and returns an IPv4 string.
-
- my $ip_num = num_to_ip( 3232235778 );
- # $ip_str = '192.168.1.2';
-
- ip_to_num
- Gets a IPv4 string and returns the matching IP number.
-
- Note that at the moment this function does not ensure that each of the
- class numbers are between 0-255, and it can return unexpected results
- when misused
-
- my $ip_num = ip_to_num( '212.212.212.212' );
- # $ip_num = 3570717908
-
- test_string_structure
- Checks the structure of the input string and returns flags indicating
- whether it's an IPv4 string, and IP number or something else (which is
- an error).
-
-AUTHORS
- Tamir Lousky, "<tlousky at cpan.org>"
-
- XSawyerX, "<xsawyerx at cpan.org>"
-
-BUGS
- Please report any bugs or feature requests to "bug-net-ipaddress-minimal
- at rt.cpan.org", or through the web interface at
- <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-IPAddress-Minimal>.
- I will be notified, and then you'll automatically be notified of
- progress on your bug as I make changes.
-
-SUPPORT
- You can find documentation for this module with the perldoc command.
-
- perldoc Net::IPAddress::Minimal
-
- You can also look for information at:
-
- * RT: CPAN's request tracker
-
- <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-IPAddress-Minimal>
-
- * AnnoCPAN: Annotated CPAN documentation
-
- <http://annocpan.org/dist/Net-IPAddress-Minimal>
-
- * CPAN Ratings
-
- <http://cpanratings.perl.org/d/Net-IPAddress-Minimal>
-
- * Search CPAN
-
- <http://search.cpan.org/dist/Net-IPAddress-Minimal/>
-
-ACKNOWLEDGEMENTS
-LICENSE AND COPYRIGHT
- Copyright 2010 Tamir Lousky.
-
- This program is free software; you can redistribute it and/or modify it
- under the terms of either: the GNU General Public License as published
- by the Free Software Foundation; or the Artistic License.
-
- See http://dev.perl.org/licenses/ for more information.
-
@@ -1,7 +1,7 @@
-package Net::IPAddress::Minimal;
-
use strict;
use warnings;
+package Net::IPAddress::Minimal;
+# ABSTRACT: IP string to number and back
use Data::Validate 'is_integer';
use Data::Validate::IP 'is_ipv4';
@@ -77,14 +77,6 @@ sub invert_ip {
__END__
-=head1 NAME
-
-Net::IPAddress::Minimal - IP string to number and back
-
-=head1 VERSION
-
-Version 0.04
-
=head1 SYNOPSIS
This module converts IPv4 strings to integer IP numbers and vice versa.
@@ -191,15 +183,3 @@ L<http://search.cpan.org/dist/Net-IPAddress-Minimal/>
=back
-=head1 ACKNOWLEDGEMENTS
-
-=head1 LICENSE AND COPYRIGHT
-
-Copyright 2010 Tamir Lousky.
-
-This program is free software; you can redistribute it and/or modify it
-under the terms of either: the GNU General Public License as published
-by the Free Software Foundation; or the Artistic License.
-
-See http://dev.perl.org/licenses/ for more information.
-
View
@@ -1,10 +0,0 @@
-#!perl -T
-
-use Test::More tests => 1;
-
-BEGIN {
- use_ok( 'Net::IPAddress::Minimal' ) || print "Bail out!
-";
-}
-
-diag( "Testing Net::IPAddress::Minimal $Net::IPAddress::Minimal::VERSION, Perl $], $^X" );
View
@@ -1,13 +0,0 @@
-#!perl -T
-
-use strict;
-use warnings;
-use Test::More;
-
-unless ( $ENV{RELEASE_TESTING} ) {
- plan( skip_all => "Author tests not required for installation" );
-}
-
-eval "use Test::CheckManifest 0.9";
-plan skip_all => "Test::CheckManifest 0.9 required" if $@;
-ok_manifest();
View
@@ -1,18 +0,0 @@
-use strict;
-use warnings;
-use Test::More;
-
-# Ensure a recent version of Test::Pod::Coverage
-my $min_tpc = 1.08;
-eval "use Test::Pod::Coverage $min_tpc";
-plan skip_all => "Test::Pod::Coverage $min_tpc required for testing POD coverage"
- if $@;
-
-# Test::Pod::Coverage doesn't require a minimum Pod::Coverage version,
-# but older versions don't recognize some common documentation styles
-my $min_pc = 0.18;
-eval "use Pod::Coverage $min_pc";
-plan skip_all => "Pod::Coverage $min_pc required for testing POD coverage"
- if $@;
-
-all_pod_coverage_ok();
View
12 t/pod.t
@@ -1,12 +0,0 @@
-#!perl -T
-
-use strict;
-use warnings;
-use Test::More;
-
-# Ensure a recent version of Test::Pod
-my $min_tp = 1.22;
-eval "use Test::Pod $min_tp";
-plan skip_all => "Test::Pod $min_tp required for testing POD" if $@;
-
-all_pod_files_ok();

0 comments on commit 11edc32

Please sign in to comment.