Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

initial import

  • Loading branch information...
commit 30ecd7bfb629e3cccf4ebe5012a76f93125b4523 0 parents
@kentaro authored
18 .gitignore
@@ -0,0 +1,18 @@
+Makefile
+inc/
+.c
+ppport.h
+*.sw[po]
+*.bak
+*.old
+Build
+_build/
+xshelper.h
+tags
+pm_to_blib
+blib/
+META.yml
+MYMETA.*
+META.json
+META.yml
+README
2  .shipit
@@ -0,0 +1,2 @@
+steps = FindVersion, ChangeVersion, CheckChangeLog, DistTest, Commit, Tag, MakeDist, UploadCPAN
+git.push_to=origin
39 Build.PL
@@ -0,0 +1,39 @@
+use strict;
+use warnings;
+use Module::Build;
+
+my $build = Module::Build->new(
+ license => 'perl',
+ dynamic_config => 0,
+
+ build_requires => {
+ 'Test::More' => '0.98',
+ 'Test::Requires' => 0,
+ },
+ configure_requires => { 'Module::Build' => '0.38' },
+ requires => {
+ perl => "$]",
+ parent => '0',
+ },
+
+ no_index => { 'directory' => [ 'inc' ] },
+ name => 'Class-Extendable',
+ module_name => 'Class::Extendable',
+
+ # script_files => [''],
+
+ test_files => (-d '.git' || $ENV{RELEASE_TESTING}) ? 't/ xt/' : 't/',
+ recursive_test_files => 1,
+
+ create_readme => 1,
+ create_license => 1,
+);
+$build->meta_add({
+ resources => {
+ X_prepan => {
+ module_url => 'http://prepan.org/module/xxxxx',
+ author_url => 'http://prepan.org/user/xxxxxxx',
+ },
+ },
+});
+$build->create_build_script();
4 Changes
@@ -0,0 +1,4 @@
+Revision history for Perl extension Class::Extendable
+
+0.01 Wed Sep 26 23:00:59 2012
+ - original version
11 MANIFEST
@@ -0,0 +1,11 @@
+Build.PL
+Changes
+lib/Class/Extendable.pm
+MANIFEST This list of files
+t/00_compile.t
+xt/01_podspell.t
+xt/02_perlcritic.t
+xt/03_pod.t
+xt/04_minimum_version.t
+xt/05_cpan_meta.t
+xt/06_meta_author.t
93 MANIFEST.SKIP
@@ -0,0 +1,93 @@
+
+#!start included /Users/usr0600239/perl5/perlbrew/perls/perl-5.16.1/lib/5.16.1/ExtUtils/MANIFEST.SKIP
+# Avoid version control files.
+\bRCS\b
+\bCVS\b
+\bSCCS\b
+,v$
+\B\.svn\b
+\B\.git\b
+\B\.gitignore\b
+\b_darcs\b
+\B\.cvsignore$
+
+# Avoid VMS specific MakeMaker generated files
+\bDescrip.MMS$
+\bDESCRIP.MMS$
+\bdescrip.mms$
+
+# Avoid Makemaker generated and utility files.
+\bMANIFEST\.bak
+\bMakefile$
+\bblib/
+\bMakeMaker-\d
+\bpm_to_blib\.ts$
+\bpm_to_blib$
+\bblibdirs\.ts$ # 6.18 through 6.25 generated this
+
+# Avoid Module::Build generated and utility files.
+\bBuild$
+\b_build/
+\bBuild.bat$
+\bBuild.COM$
+\bBUILD.COM$
+\bbuild.com$
+
+# Avoid temp and backup files.
+~$
+\.old$
+\#$
+\b\.#
+\.bak$
+\.tmp$
+\.#
+\.rej$
+
+# Avoid OS-specific files/dirs
+# Mac OSX metadata
+\B\.DS_Store
+# Mac OSX SMB mount metadata files
+\B\._
+
+# Avoid Devel::Cover and Devel::CoverX::Covered files.
+\bcover_db\b
+\bcovered\b
+
+# Avoid MYMETA files
+^MYMETA\.
+#!end included /Users/usr0600239/perl5/perlbrew/perls/perl-5.16.1/lib/5.16.1/ExtUtils/MANIFEST.SKIP
+
+^\.git/
+\bRCS\b
+\bCVS\b
+^MANIFEST\.
+^Makefile$
+~$
+^#
+\.old$
+^blib/
+^pm_to_blib
+^MakeMaker-\d
+^[^/]+\.gz$
+\.cvsignore
+^t/perlcritic
+^tools/
+\.svn/
+^[^/]+\.yaml$
+^\.shipit$
+\.sw[po]$
+^Build$
+^ppport.h$
+^xshelper.h$
+cover_db
+nytprof
+perltidy.ERR$
+^README.pod$
+^README.mkdn$
+^tags$
+^Class-Extendable-
+^MYMETA\.
+\b_build
+^MANIFEST\.SKIP
+\b\.gitignore
+\.bak$
1  README.pod
39 lib/Class/Extendable.pm
@@ -0,0 +1,39 @@
+package Class::Extendable;
+use strict;
+use warnings;
+use 5.008008;
+our $VERSION = '0.01';
+
+
+
+1;
+__END__
+
+=encoding utf8
+
+=head1 NAME
+
+Class::Extendable - blah blah blah
+
+=head1 SYNOPSIS
+
+ use Class::Extendable;
+
+=head1 DESCRIPTION
+
+Class::Extendable is
+
+=head1 AUTHOR
+
+Kentaro Kuribayashi E<lt>kentarok@gmail.comE<gt>
+
+=head1 SEE ALSO
+
+=head1 LICENSE
+
+Copyright (C) Kentaro Kuribayashi
+
+This library is free software; you can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+=cut
4 t/00_compile.t
@@ -0,0 +1,4 @@
+use strict;
+use Test::More tests => 1;
+
+BEGIN { use_ok 'Class::Extendable' }
64 xt/01_podspell.t
@@ -0,0 +1,64 @@
+use strict;
+use Test::More;
+eval q{ use Test::Spelling };
+plan skip_all => "Test::Spelling is not installed." if $@;
+add_stopwords(map { split /[\s\:\-]/ } <DATA>);
+$ENV{LANG} = 'C';
+my $spell_cmd;
+foreach my $path (split(/:/, $ENV{PATH})) {
+ -x "$path/spell" and $spell_cmd = "spell" and last;
+ -x "$path/ispell" and $spell_cmd = "ispell -l" and last;
+ -x "$path/aspell" and $spell_cmd = "aspell list -l en" and last;
+}
+plan skip_all => "no spell/ispell/aspell" unless $spell_cmd;
+
+set_spell_cmd($spell_cmd);
+all_pod_files_spelling_ok('lib');
+__DATA__
+Kentaro Kuribayashi
+Class::Extendable
+tokuhirom
+AAJKLFJEF
+GMAIL
+COM
+Tatsuhiko
+Miyagawa
+Kazuhiro
+Osawa
+lestrrat
+typester
+cho45
+charsbar
+coji
+clouder
+gunyarakun
+hio_d
+hirose31
+ikebe
+kan
+kazeburo
+daisuke
+maki
+TODO
+API
+URL
+URI
+db
+TTerse
+irc
+org
+CSS
+Amon
+Tokuhiro
+Matsuno
+Svn
+svn
+diff
+Gosuke
+Miyashita
+mysqldiff
+mmm
+Kentaro
+Kuribayashi
+antipop
+GitHub
12 xt/02_perlcritic.t
@@ -0,0 +1,12 @@
+use strict;
+use Test::More;
+eval q{
+ use Test::Perl::Critic 1.02 -exclude => [
+ 'Subroutines::ProhibitSubroutinePrototypes',
+ 'Subroutines::ProhibitExplicitReturnUndef',
+ 'TestingAndDebugging::ProhibitNoStrict',
+ 'ControlStructures::ProhibitMutatingListFunctions',
+ ]
+};
+plan skip_all => "Test::Perl::Critic 1.02+ is not installed." if $@;
+all_critic_ok('lib');
4 xt/03_pod.t
@@ -0,0 +1,4 @@
+use Test::More;
+eval "use Test::Pod 1.00";
+plan skip_all => "Test::Pod 1.00 required for testing POD" if $@;
+all_pod_files_ok();
4 xt/04_minimum_version.t
@@ -0,0 +1,4 @@
+use Test::More;
+eval "use Test::MinimumVersion 0.101080";
+plan skip_all => "Test::Minimumversion required for testing perl minimum version" if $@;
+all_minimum_version_from_metayml_ok();
5 xt/05_cpan_meta.t
@@ -0,0 +1,5 @@
+use Test::More;
+eval "use Test::CPAN::Meta";
+plan skip_all => "Test::CPAN::Meta required for testing META.yml" if $@;
+plan skip_all => "There is no META.yml" unless -f "META.yml";
+meta_yaml_ok();
11 xt/06_meta_author.t
@@ -0,0 +1,11 @@
+use strict;
+use Test::More;
+eval "use Parse::CPAN::Meta";
+plan skip_all => "Parse::CPAN::Meta required for testing META.yml" unless eval "use Parse::CPAN::Meta; 1;";
+plan skip_all => "There is no META.yml" unless -f "META.yml";
+
+my $meta = Parse::CPAN::Meta->load_file('META.yml');
+isnt($meta->{author}->[0], 'unknown', 'author info');
+cmp_ok($meta->{'build_requires'}->{'Test::More'}, '>=', '0.98');
+ok($meta->{'requires'}->{'perl'}, 'metayml_declares_perl_version');
+done_testing;
Please sign in to comment.
Something went wrong with that request. Please try again.