Commits

Anonymous committed 1cc21fa

Importing distro

  • Participants

Comments (0)

Files changed (10)

File modules/Math-GrahamFunction/.cvsignore

+blib*
+Makefile
+Makefile.old
+Build
+_build*
+pm_to_blib*
+*.tar.gz
+.lwpcookies
+Math::GrahamFunction-*
+cover_db

File modules/Math-GrahamFunction/Build.PL

+use strict;
+use warnings;
+use Module::Build;
+
+my $builder = Module::Build->new(
+    module_name         => 'Math::GrahamFunction',
+    license             => 'bsd',
+    dist_author         => 'Shlomi Fish <shlomif@cpan.org>',
+    dist_version_from   => 'lib/Math/GrahamFunction.pm',
+    build_requires => {
+        'Test::More' => 0,
+    },
+    add_to_cleanup      => [ 'Math::GrahamFunction-*' ],
+);
+
+$builder->create_build_script();

File modules/Math-GrahamFunction/Changes

+Revision history for Math::GrahamFunction
+
+0.01    Date/time
+        First version, released on an unsuspecting world.
+

File modules/Math-GrahamFunction/MANIFEST

+Build.PL
+Changes
+MANIFEST
+META.yml # Will be created by "make dist"
+README
+lib/Math/GrahamFunction.pm
+t/00-load.t
+t/boilerplate.t
+t/pod-coverage.t
+t/pod.t

File modules/Math-GrahamFunction/README

+Math::GrahamFunction
+
+The README is used to introduce the module and provide instructions on
+how to install the module, any machine dependencies it may have (for
+example C compilers and installed libraries) and any other information
+that should be provided before the module is installed.
+
+A README file is required for CPAN modules since CPAN extracts the README
+file from a module distribution so that people browsing the archive
+can use it get an idea of the modules uses. It is usually a good idea
+to provide version information here so that people can decide whether
+fixes for the module are worth downloading.
+
+INSTALLATION
+
+To install this module, run the following commands:
+
+    perl Build.PL
+    ./Build
+    ./Build test
+    ./Build install
+
+
+SUPPORT AND DOCUMENTATION
+
+After installing, you can find documentation for this module with the perldoc command.
+
+    perldoc Math::GrahamFunction
+
+You can also look for information at:
+
+    Search CPAN
+        http://search.cpan.org/dist/Math::GrahamFunction
+
+    CPAN Request Tracker:
+        http://rt.cpan.org/NoAuth/Bugs.html?Dist=Math::GrahamFunction
+
+    AnnoCPAN, annotated CPAN documentation:
+        http://annocpan.org/dist/Math::GrahamFunction
+
+    CPAN Ratings:
+        http://cpanratings.perl.org/d/Math::GrahamFunction
+
+COPYRIGHT AND LICENCE
+
+Copyright (C) 2007 Shlomi Fish
+
+This program is released under the following license: bsd

File modules/Math-GrahamFunction/lib/Math/GrahamFunction.pm

+package Math::GrahamFunction;
+
+use warnings;
+use strict;
+
+=head1 NAME
+
+Math::GrahamFunction - The great new Math::GrahamFunction!
+
+=head1 VERSION
+
+Version 0.01
+
+=cut
+
+our $VERSION = '0.01';
+
+=head1 SYNOPSIS
+
+Quick summary of what the module does.
+
+Perhaps a little code snippet.
+
+    use Math::GrahamFunction;
+
+    my $foo = Math::GrahamFunction->new();
+    ...
+
+=head1 EXPORT
+
+A list of functions that can be exported.  You can delete this section
+if you don't export anything, such as for a purely object-oriented module.
+
+=head1 FUNCTIONS
+
+=head2 function1
+
+=cut
+
+sub function1 {
+}
+
+=head2 function2
+
+=cut
+
+sub function2 {
+}
+
+=head1 AUTHOR
+
+Shlomi Fish, C<< <shlomif at cpan.org> >>
+
+=head1 BUGS
+
+Please report any bugs or feature requests to
+C<bug-math-grahamfunction at rt.cpan.org>, or through the web interface at
+L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Math::GrahamFunction>.
+I will be notified, and then you'll automatically be notified of progress on
+your bug as I make changes.
+
+=head1 SUPPORT
+
+You can find documentation for this module with the perldoc command.
+
+    perldoc Math::GrahamFunction
+
+You can also look for information at:
+
+=over 4
+
+=item * AnnoCPAN: Annotated CPAN documentation
+
+L<http://annocpan.org/dist/Math::GrahamFunction>
+
+=item * CPAN Ratings
+
+L<http://cpanratings.perl.org/d/Math::GrahamFunction>
+
+=item * RT: CPAN's request tracker
+
+L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Math::GrahamFunction>
+
+=item * Search CPAN
+
+L<http://search.cpan.org/dist/Math::GrahamFunction>
+
+=back
+
+=head1 ACKNOWLEDGEMENTS
+
+=head1 COPYRIGHT & LICENSE
+
+Copyright 2007 Shlomi Fish, all rights reserved.
+
+This program is released under the following license: bsd
+
+=cut
+
+1; # End of Math::GrahamFunction

File modules/Math-GrahamFunction/t/00-load.t

+#!perl -T
+
+use Test::More tests => 1;
+
+BEGIN {
+	use_ok( 'Math::GrahamFunction' );
+}
+
+diag( "Testing Math::GrahamFunction $Math::GrahamFunction::VERSION, Perl $], $^X" );

File modules/Math-GrahamFunction/t/boilerplate.t

+#!perl -T
+
+use strict;
+use warnings;
+use Test::More tests => 3;
+
+sub not_in_file_ok {
+    my ($filename, %regex) = @_;
+    open my $fh, "<", $filename
+        or die "couldn't open $filename for reading: $!";
+
+    my %violated;
+
+    while (my $line = <$fh>) {
+        while (my ($desc, $regex) = each %regex) {
+            if ($line =~ $regex) {
+                push @{$violated{$desc}||=[]}, $.;
+            }
+        }
+    }
+
+    if (%violated) {
+        fail("$filename contains boilerplate text");
+        diag "$_ appears on lines @{$violated{$_}}" for keys %violated;
+    } else {
+        pass("$filename contains no boilerplate text");
+    }
+}
+
+not_in_file_ok(README =>
+    "The README is used..."       => qr/The README is used/,
+    "'version information here'"  => qr/to provide version information/,
+);
+
+not_in_file_ok(Changes =>
+    "placeholder date/time"       => qr(Date/time)
+);
+
+sub module_boilerplate_ok {
+    my ($module) = @_;
+    not_in_file_ok($module =>
+        'the great new $MODULENAME'   => qr/ - The great new /,
+        'boilerplate description'     => qr/Quick summary of what the module/,
+        'stub function definition'    => qr/function[12]/,
+    );
+}
+
+module_boilerplate_ok('lib/Math/GrahamFunction.pm');

File modules/Math-GrahamFunction/t/pod-coverage.t

+#!perl -T
+
+use Test::More;
+eval "use Test::Pod::Coverage 1.04";
+plan skip_all => "Test::Pod::Coverage 1.04 required for testing POD coverage" if $@;
+all_pod_coverage_ok();

File modules/Math-GrahamFunction/t/pod.t

+#!perl -T
+
+use Test::More;
+eval "use Test::Pod 1.14";
+plan skip_all => "Test::Pod 1.14 required for testing POD" if $@;
+all_pod_files_ok();