Skip to content

Commit

Permalink
added author tests; rename internal methods; modified PODs (s/LICENCE…
Browse files Browse the repository at this point in the history
…/LICENSE/g)
  • Loading branch information
gardejo committed Jul 30, 2009
1 parent d395aa7 commit 79751b7
Show file tree
Hide file tree
Showing 51 changed files with 1,453 additions and 435 deletions.
62 changes: 62 additions & 0 deletions Changes
@@ -0,0 +1,62 @@
This file documents the revision history for Perl application SimpleLinks.


VERSION HISTORY
===============

3.14_15 : Released on 1974-06-24
--------------------------------

Blah blah blah.

- The quick brown fox jumps over the lazy dog.
- Pack my box with five dozen liquor jugs.


0.00_00 : Released on 1970-01-01
--------------------------------

Initial version.

### Features

- En la mondon venis nova sento, tra la mondo iras forta voko.
- Kimi ga yo ha chiyo ni yachiyo ni
sazare ishi no iwao to narite
koke no musu made.
- Auferstanden aus Ruinen und der Zukunf zugewandt.


GENERAL INFORMATION
===================

Version notation
----------------

[V.vv_rr] Released on YYYY-MM-DD
--------------------------------

### V : Major version number

- Added ambitious feature(s)
- Change in API(s)
- ...

### vv : Minor version number (in major version)

- Added normal feture(s)
- Improve any function(s)
- ...

### rr : Revision number (in minor version)
- Fix bug(s)
- Update document(s)
- ...


Format
------

This `Changes` file was formatted in Markdown.

$ perl -MText::Markdown -MFile::Slurp -e 'print (Text::Markdown->new->markdown(scalar read_file("Changes")));'
86 changes: 54 additions & 32 deletions MANIFEST
@@ -1,34 +1,45 @@
Changes
LICENSE
MANIFEST
META.yml
Makefile.PL
README
SimpleLinks.yml
.gitignore
Changes
LICENSE
MANIFEST
MANIFEST.SKIP
META.yml
Makefile.PL
README
SimpleLinks.yml
extlib/Faktro/Class/Factory.pm
extlib/Faktro/Class/Factory/Wrapper.pm
extlib/Faktro/Class/Flyweight.pm
extlib/Faktro/Class/Flyweight/Wrapper.pm
extlib/Faktro/Class/Singleton.pm
extlib/Faktro/Entity/Common/MailAddress.pm
extlib/Faktro/Schema/Factory.pm
extlib/Faktro/Schema/Factory/Base.pm
extlib/Faktro/Schema/Factory/DBI.pm
extlib/Faktro/Schema/Factory/SQLite.pm
extlib/local/lib.pm
inc/Module/AutoInstall.pm
inc/Module/Install.pm
inc/Module/Install/AutoInstall.pm
inc/Module/Install/Base.pm
inc/Module/Install/Can.pm
inc/Module/Install/Fetch.pm
inc/Module/Install/Include.pm
inc/Module/Install/Makefile.pm
inc/Module/Install/Metadata.pm
inc/Module/Install/Scripts.pm
inc/Module/Install/TestBase.pm
inc/Module/Install/Win32.pm
inc/Module/Install/WriteAll.pm
inc/Spiffy.pm
inc/Test/Base.pm
inc/Test/Base/Filter.pm
inc/Test/Builder.pm
inc/Test/Builder/Module.pm
inc/Test/More.pm
extlib/Faktro/Types.pm
extlib/local/lib.pm
inc/Module/AutoInstall.pm
inc/Module/Install.pm
inc/Module/Install/AuthorTests.pm
inc/Module/Install/AutoInstall.pm
inc/Module/Install/Base.pm
inc/Module/Install/Can.pm
inc/Module/Install/Fetch.pm
inc/Module/Install/Include.pm
inc/Module/Install/Makefile.pm
inc/Module/Install/Metadata.pm
inc/Module/Install/TestBase.pm
inc/Module/Install/Win32.pm
inc/Module/Install/WriteAll.pm
inc/Module/Load.pm
inc/Spiffy.pm
inc/Test/Base.pm
inc/Test/Base/Filter.pm
inc/Test/Builder.pm
inc/Test/Builder/Module.pm
inc/Test/More.pm
inc/Test/Warn.pm
lib/SimpleLinks.pm
lib/SimpleLinks/Schema/Column.pm
lib/SimpleLinks/Schema/Mixin/Base.pm
Expand All @@ -43,13 +54,24 @@ lib/SimpleLinks/Web.pm
lib/SimpleLinks/Web/Controller/Root.pm
lib/SimpleLinks/Web/Model/Links.pm
script/simplelinks.cgi
script/simplelinks_server.pl
script/simplelinks_server.pl
t/00_startup/00_compile.t
t/00_startup/10_create_database.t
t/10_model/00_category/00_insert.t
t/10_model/10_tag/00_insert.t
t/10_model/20_website/00_insert.t
t/10_model/00_category/00_create.t
t/10_model/00_category/02_might_have_parent_at_create.t
t/10_model/00_category/10_read.t
t/10_model/00_category/20_update.t
t/10_model/00_category/30_delete.t
t/10_model/01_tag/00_create.t
t/10_model/02_website/00_create.t
t/20_controller/00_index.t
t/90_cleanup/00_unlink_database.t
t/lib/SimpleLinks/Test/Cleanup.pm
t/lib/SimpleLinks/Test/Constant.pm
t/lib/SimpleLinks/Test/Constant.pm
xt/no_tabs.t
xt/perlcritic.t
xt/perlcriticrc
xt/pod.t
xt/pod_coverage.t
xt/synopsis.t
xt/use_all_modules.t
173 changes: 115 additions & 58 deletions Makefile.PL
@@ -1,89 +1,146 @@
use strict;
use warnings;

use inc::Module::Install;

my $application_root_module = 'lib/SimpleLinks.pm';

# ================================================================
# meta information
name 'SimpleLinks';
all_from $application_root_module;
abstract_from $application_root_module;
# author_from $application_root_module;
author 'MORIYA Masaki ("Gardejo") <moriya at ermitejo dot com>';
version_from $application_root_module;
license_from $application_root_module;
perl_version_from $application_root_module;

# ================================================================
name_from $application_root_module;
abstract_from $application_root_module;
all_from $application_root_module;
version_from $application_root_module;
author 'MORIYA Masaki ("Gardejo") <moriya at ermitejo dot com>';
license_from $application_root_module;
resources (
repository => 'git://github.com/gardejo/p5-ark-sample-simplelinks.git',
bugtracker => undef,
homepage => 'http://blog.eorzea.asia/2009/07/post_35.html',
);
# use lib 'extlib';
no_index directory => 'extlib';
no_index directory => 'examples';
no_index directory => 'extlib';

# ================================================================
# build dependencies
build_requires 'Module::Load' => '0'; # -> perl 5.009_004
build_requires 'Module::Install' => '0.91'; # YAML::Tiny problem at Win32
# ================================================================
build_requires 'Module::Install' => '0.80'; # YAML::Tiny problem
build_requires 'Module::Load' => '0'; # > perl 5.009_004

# ================================================================
# general dependencies
requires 'Any::Moose' => '0';
requires 'Ark' => '0.001000_002';
# requires 'Carp' => '0'; # -> perl 5
# requires 'Data::Dumper::Dumper => '0'; # -> perl 5.005;
requires 'Data::Model' => '0';
# requires 'Data::Model::Mixin::FindOrCreate' => '0'; # -> Data::Model
# requires 'DBD::SQLite' => '0'; # -> Data::Model
# requires 'DBI' => '0'; # -> Data::Model
requires 'DateTime' => '0';
requires 'DateTime::Format::MySQL' => '0';
# requires 'FindBin' => '0'; # -> perl 5.003_07
requires 'FindBin::libs' => '0';
requires 'List::MoreUtils' => '0'; # -> Ark -> Data::Util ???
requires 'List::Util' => '0'; # -> Ark -> Data::Util ???
# requires 'Scalar::Util' => '0'; # -> Ark
requires 'Text::MicroTemplate::Extended' => '0.01001';
requires 'URI' => '0';
requires 'local::lib' => '0';

# ================================================================
perl_version_from $application_root_module;
# requires 'Any::Moose' => '0'; # > Ark > HTTP::Engine
requires 'Ark' => '0.001000_002'; # from GitHub
# requires 'Carp' => '0'; # > perl 5
# requires 'Data::Dumper' => '0'; # > perl 5.005;
requires 'Data::Model' => '0.00003';
# requires 'Data::Model::Mixin::FindOrCreate' => '0'; # > Data::Model
# requires 'DBD::SQLite' => '0'; # > Data::Model
# requires 'DBI' => '0'; # > Data::Model
# requires 'DateTime' => '0'; # > HTTP::Engine::Middleware
# requires 'Encode' => '1.9801'; # > perl 5.008_001
requires 'DateTime::Format::MySQL' => '0';
# requires 'FindBin' => '0'; # > perl 5.003_07
# requires 'FindBin::libs' => '0'; # > Ark
# requires 'Getopt::Long' => '0'; # > Ark
# requires 'HTTP::Engine' => '0'; # > Ark
# requires 'HTTP::Engine::Middleware' => '0'; # > Ark
requires 'List::MoreUtils' => '0.24'; # > 'none' fix, HTML::Shakan
# requires 'List::Util' => '0'; # > perl 5.06_00
# requires 'Mouse' => '0'; # > Ark
# requires 'MouseX::Types' => '0'; # > Ark > HTTP::Engine
# requires 'Scalar::Util' => '1.19'; # > Ark > HTTP::Engine
requires 'Text::MicroTemplate::Extended' => '0.01001';
# requires 'URI' => '0'; # > Ark
requires 'local::lib' => '0';

# Note: I want replace code with Scalar::Util as with Data::Util
# because it interest me in is_number() as alternate looks_like_number().

# ================================================================
# optional dependencies
# ================================================================
feacures(
'Support Markdown format for comment' => [
-default => 1,
recommends( 'Text::Markdown' => '0' ),
],
'Support E-mail sending' => [
-default => 1,
recommends( 'Email::Send' => '0' ),
],
'Support YAML format for dump' => [
-default => 1,
recommends( 'YAML::Any' => '0' ),
# recommends( 'YAML::Syck' => '0' ),
-default => 0,
recommends( 'Email::Send' => '0' ),
],
'Support JSON format for dump' => [
-default => 1,
recommends( 'JSON::Any' => '0' ),
# recommends( 'JSON::Syck' => '0' ),
-default => 0,
recommends( 'JSON::Any' => '0' ),
],
'Support Markdown format for comment' => [
-default => 0,
recommends( 'Text::Markdown' => '0' ),
],
'Support XML format for dump' => [
-default => 1,
recommends( 'XML::LibXML' => '0' ), # Any XML?
-default => 0,
recommends( 'XML::LibXML' => '0' ), # Any XML?
],
'Support YAML format for dump' => [
-default => 0,
recommends( 'YAML::Any' => '0' ),
],
);

# ================================================================
# internal dependencies
# requires 'Faktro::Schema::Factory' => '0';

# test_requires 'File::Temp' => '0';
test_requires 'Test::Exception' => '0';
test_requires 'Test::More' => '0.87_01'; # to use done_testing()
test_requires 'Test::Warn' => '0';
# test_requires 'Time::HiRes' => '0'; # -> perl 5.007_003;

# ================================================================
# requires 'Faktro::Schema::Factory' => '0';

# ================================================================
# dependencies for tests
# ================================================================
# test_requires 'File::Temp' => '0';
# test_requires 'Test::Exception' => '0'; # > Data::Model
test_requires 'Test::More' => '0.87_01'; # to use done_testing()
test_requires 'Test::Warn' => '0';
# test_requires 'Time::HiRes' => '0'; # > perl 5.007_003;

# Ark::Test

# ================================================================
# dependencies for author tests
# plan skip_all => 'xxxx required for testing xxxx' if ...
# ================================================================
# test_requires 'Test::NoTabs' => '0';
# test_requires 'Test::Output' => '0';
# test_requires 'Test::Perl::Critic' => '1.094'; # for equivalent_modules
# test_requires 'Test::Pod' => '0';
# test_requires 'Test::Pod::Coverage' => '0';
# test_requires 'Test::Spelling' => '0';
# test_requires 'Test::Synopsis' => '0';
# test_requires 'Test::UseAllModules' => '0';

# ================================================================
# tests
# ================================================================
use_test_base;
tests 't/*.t t/*/*.t t/*/*/*.t';
tests 't/*.t t/*/*.t t/*/*/*.t';
author_tests 'xt';

# ================================================================
# installation
# ================================================================
auto_include;
auto_install;

# ================================================================
# META.yml writter
# ================================================================
WriteAll;

__END__
# ****************************************************************
# POD
# ****************************************************************
=head1 NAME
Makefile.PL - Makefile builder
Expand All @@ -92,7 +149,7 @@ Makefile.PL - Makefile builder
=head1 SYNOPSIS
$ cpan -t .
$ make install
$ cpan -i .
=head1 AUTHOR
Expand All @@ -107,7 +164,7 @@ L<http://ttt.ermitejo.com/>
=back
=head1 LICENCE AND COPYRIGHT
=head1 LICENSE AND COPYRIGHT
Copyright (c) 2009 by MORIYA Masaki ("Gardejo"),
L<http://ttt.ermitejo.com>.
Expand Down

0 comments on commit 79751b7

Please sign in to comment.