Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit eb57792
Showing
15 changed files
with
311 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,2 @@ | |||
steps = FindVersion, ChangeVersion, CheckChangeLog, DistTest, Commit, Tag, MakeDist, UploadCPAN | |||
git.push_to=origin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 => 'Cinnamon', | |||
module_name => 'Cinnamon', | |||
|
|||
# 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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,4 @@ | |||
Revision history for Perl extension Cinnamon | |||
|
|||
0.01 Wed Feb 22 12:55:42 2012 | |||
- original version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,11 @@ | |||
Build.PL | |||
Changes | |||
lib/Cinnamon.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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,93 @@ | |||
|
|||
#!start included /Users/antipop/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/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/antipop/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/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$ | |||
^Cinnamon- | |||
^MYMETA\. | |||
\b_build | |||
^MANIFEST\.SKIP | |||
\b\.gitignore | |||
\.bak$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1 @@ | |||
lib/Cinnamon.pm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,39 @@ | |||
package Cinnamon; | |||
use strict; | |||
use warnings; | |||
use 5.008008; | |||
our $VERSION = '0.01'; | |||
|
|||
|
|||
|
|||
1; | |||
__END__ | |||
=encoding utf8 | |||
=head1 NAME | |||
Cinnamon - blah blah blah | |||
=head1 SYNOPSIS | |||
use Cinnamon; | |||
=head1 DESCRIPTION | |||
Cinnamon 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,4 @@ | |||
use strict; | |||
use Test::More tests => 1; | |||
|
|||
BEGIN { use_ok 'Cinnamon' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 | |||
Cinnamon | |||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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; |