Skip to content

Commit

Permalink
Switch to my dzil bundle - add $VERSION to all modules - add generate…
Browse files Browse the repository at this point in the history
… files
  • Loading branch information
autarch committed Jul 4, 2015
1 parent 026f974 commit 4d468cf
Show file tree
Hide file tree
Showing 16 changed files with 582 additions and 44 deletions.
1 change: 1 addition & 0 deletions .mailmap
@@ -0,0 +1 @@
Dave Rolsky <autarch@urth.org> <devnull@localhost>
379 changes: 379 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

67 changes: 67 additions & 0 deletions cpanfile
@@ -0,0 +1,67 @@
requires "B" => "0";
requires "Carp" => "0";
requires "Data::Dumper" => "0";
requires "Encode" => "0";
requires "HTTP::Headers::ActionPack" => "0.07";
requires "HTTP::Status" => "0";
requires "Hash::MultiValue" => "0";
requires "IO::Handle::Util" => "0";
requires "List::Util" => "0";
requires "Locale::Maketext" => "0";
requires "Module::Runtime" => "0";
requires "Plack::Component" => "0";
requires "Plack::Request" => "0";
requires "Plack::Response" => "0";
requires "Plack::Util" => "0";
requires "Scalar::Util" => "0";
requires "Sub::Exporter" => "0";
requires "Try::Tiny" => "0";
requires "parent" => "0";
requires "strict" => "0";
requires "warnings" => "0";

on 'test' => sub {
requires "ExtUtils::MakeMaker" => "0";
requires "File::Spec" => "0";
requires "FindBin" => "0";
requires "HTTP::Message::PSGI" => "0";
requires "HTTP::Request" => "0";
requires "HTTP::Request::Common" => "0";
requires "HTTP::Response" => "0";
requires "IO::Handle" => "0";
requires "IPC::Open3" => "0";
requires "MIME::Base64" => "0";
requires "Net::HTTP" => "0";
requires "Plack::Runner" => "0";
requires "Plack::Test" => "0";
requires "Test::FailWarnings" => "0";
requires "Test::Fatal" => "0.003";
requires "Test::More" => "0.96";
requires "base" => "0";
requires "lib" => "0";
requires "perl" => "5.006";
requires "utf8" => "0";
};

on 'test' => sub {
recommends "CPAN::Meta" => "2.120900";
};

on 'configure' => sub {
requires "ExtUtils::MakeMaker" => "0";
};

on 'develop' => sub {
requires "Perl::Critic" => "1.123";
requires "Perl::Tidy" => "20140711";
requires "Pod::Coverage::TrustPod" => "0";
requires "Test::CPAN::Changes" => "0.19";
requires "Test::EOL" => "0";
requires "Test::More" => "0.88";
requires "Test::NoTabs" => "0";
requires "Test::Pod" => "1.41";
requires "Test::Pod::Coverage" => "1.08";
requires "Test::Spelling" => "0.12";
requires "Test::Synopsis" => "0";
requires "Test::Version" => "1";
};
56 changes: 12 additions & 44 deletions dist.ini
Expand Up @@ -3,42 +3,19 @@ author = Stevan Little <stevan.little@iinteractive.com>
license = Perl_5
copyright_holder = Infinity Interactive, Inc.

version = 0.15

;authordep Pod::Weaver::Section::Contributors

[@Basic]

[InstallGuide]
[MetaJSON]

[NextRelease]
format=%v %{EEE. MMM. dd, YYYY}d

[PkgVersion]
[Authority]
authority = cpan:STEVAN

[MetaResources]
bugtracker.web = https://rt.cpan.org/Dist/Display.html?Name=Web::Machine
bugtracker.mailto = bug-web-machine@rt.cpan.org
repository.url = https://github.com/stevan/webmachine-perl.git
repository.web = https://github.com/stevan/webmachine-perl
repository.type = git

[TestRelease]
[ConfirmRelease]
[ContributorsFromGit]
[PodWeaver]

[NoTabsTests]
[PodSyntaxTests]
[Test::Pod::LinkCheck]
[Test::Pod::No404s]
[Test::PodSpelling]
[@DROLSKY]
dist = Web-Machine
authority = STEVAN
pod_coverage_skip = Web::Machine::FSM::States
prereqs_skip = ^Test::TCP$
prereqs_skip = ^JSON::XS$
prereqs_skip = ^Path::Class$
prereqs_skip = ^GD::Simple$
prereqs_skip = ^My::Resource::Test022::Base$
stopwords = Andreas
stopwords = Axel
stopwords = Charset
stopwords = Cribbs
stopwords = ETag
stopwords = Encodings
stopwords = Erlang
Expand All @@ -53,6 +30,7 @@ stopwords = Oschwald
stopwords = RESTful
stopwords = Raynham
stopwords = Rolsky
stopwords = Sheehy
stopwords = Sibley
stopwords = Stevan
stopwords = WebDAV
Expand All @@ -61,14 +39,4 @@ stopwords = arity
stopwords = charsets
stopwords = fREW
stopwords = webmachine

[AutoPrereqs]
skip = ^Test::TCP$
skip = ^JSON::XS$
skip = ^Path::Class$
skip = ^GD::Simple$
skip = ^My::Resource::Test022::Base$

[CheckPrereqsIndexed]

[@Git]
-remove = Test::TidyAll
2 changes: 2 additions & 0 deletions lib/Web/Machine.pm
Expand Up @@ -4,6 +4,8 @@ package Web::Machine;
use strict;
use warnings;

our $VERSION = '0.16';

use Try::Tiny;
use Carp qw[ confess ];
use Scalar::Util qw[ blessed ];
Expand Down
4 changes: 4 additions & 0 deletions lib/Web/Machine/FSM.pm
Expand Up @@ -4,6 +4,8 @@ package Web::Machine::FSM;
use strict;
use warnings;

our $VERSION = '0.16';

use IO::Handle::Util 'io_from_getline';
use Plack::Util;
use Try::Tiny;
Expand Down Expand Up @@ -163,6 +165,8 @@ sub filter_response {

__END__
=for Pod::Coverage filter_response
=head1 SYNOPSIS
use Web::Machine::FSM;
Expand Down
2 changes: 2 additions & 0 deletions lib/Web/Machine/FSM/States.pm
Expand Up @@ -4,6 +4,8 @@ package Web::Machine::FSM::States;
use strict;
use warnings;

our $VERSION = '0.16';

use B ();
use Hash::MultiValue;

Expand Down
2 changes: 2 additions & 0 deletions lib/Web/Machine/I18N.pm
Expand Up @@ -6,6 +6,8 @@ use warnings;

use parent 'Locale::Maketext';

our $VERSION = '0.16';

1;

__END__
Expand Down
2 changes: 2 additions & 0 deletions lib/Web/Machine/I18N/en.pm
Expand Up @@ -6,6 +6,8 @@ use warnings;

use parent 'Web::Machine::I18N';

our $VERSION = '0.16';

our %Lexicon = (
100 => 'Continue',
101 => 'Switching Protocols',
Expand Down
4 changes: 4 additions & 0 deletions lib/Web/Machine/Resource.pm
Expand Up @@ -4,6 +4,8 @@ package Web::Machine::Resource;
use strict;
use warnings;

our $VERSION = '0.16';

use Carp qw[ confess ];
use Scalar::Util qw[ blessed ];

Expand Down Expand Up @@ -76,6 +78,8 @@ sub finish_request {}

__END__
=for Pod::Coverage new
=head1 SYNOPSIS
package HelloWorld::Resource;
Expand Down
4 changes: 4 additions & 0 deletions lib/Web/Machine/Util.pm
Expand Up @@ -4,6 +4,8 @@ package Web::Machine::Util;
use strict;
use warnings;

our $VERSION = '0.16';

use Carp qw[ confess ];
use Scalar::Util qw[ blessed ];
use List::Util qw[ first ];
Expand Down Expand Up @@ -73,6 +75,8 @@ sub bind_path {

__END__
=for Pod::Coverage get_action_pack
=head1 SYNOPSIS
use Web::Machine::Util;
Expand Down
2 changes: 2 additions & 0 deletions lib/Web/Machine/Util/BodyEncoding.pm
Expand Up @@ -4,6 +4,8 @@ package Web::Machine::Util::BodyEncoding;
use strict;
use warnings;

our $VERSION = '0.16';

use Scalar::Util qw/ weaken isweak /;
use Encode ();
use Web::Machine::Util qw[ first pair_key pair_value ];
Expand Down
2 changes: 2 additions & 0 deletions lib/Web/Machine/Util/ContentNegotiation.pm
Expand Up @@ -4,6 +4,8 @@ package Web::Machine::Util::ContentNegotiation;
use strict;
use warnings;

our $VERSION = '0.16';

use Scalar::Util qw[ blessed ];

use Web::Machine::Util qw[
Expand Down
58 changes: 58 additions & 0 deletions perlcriticrc
@@ -0,0 +1,58 @@
severity = 3
verbose = 11
theme = core + pbp + bugs + maintenance + cosmetic + complexity + security + tests + moose

exclude = Subroutines::ProhibitCallsToUndeclaredSubs

[BuiltinFunctions::ProhibitStringySplit]
severity = 3

[CodeLayout::RequireTrailingCommas]
severity = 3

[ControlStructures::ProhibitCStyleForLoops]
severity = 3

[InputOutput::RequireCheckedSyscalls]
functions = :builtins
exclude_functions = sleep
severity = 3

[RegularExpressions::ProhibitComplexRegexes]
max_characters = 200

[RegularExpressions::ProhibitUnusualDelimiters]
severity = 3

[Subroutines::ProhibitUnusedPrivateSubroutines]
private_name_regex = _(?!build)\w+

[TestingAndDebugging::ProhibitNoWarnings]
allow = redefine

[ValuesAndExpressions::ProhibitEmptyQuotes]
severity = 3

[ValuesAndExpressions::ProhibitInterpolationOfLiterals]
severity = 3

[ValuesAndExpressions::RequireUpperCaseHeredocTerminator]
severity = 3

[Variables::ProhibitPackageVars]
add_packages = Carp Test::Builder

[-Subroutines::RequireFinalReturn]

[-ErrorHandling::RequireCarping]

# No need for /xsm everywhere
[-RegularExpressions::RequireDotMatchAnything]
[-RegularExpressions::RequireExtendedFormatting]
[-RegularExpressions::RequireLineBoundaryMatching]

# http://stackoverflow.com/questions/2275317/why-does-perlcritic-dislike-using-shift-to-populate-subroutine-variables
[-Subroutines::RequireArgUnpacking]

# "use v5.14" is more readable than "use 5.014"
[-ValuesAndExpressions::ProhibitVersionStrings]
22 changes: 22 additions & 0 deletions perltidyrc
@@ -0,0 +1,22 @@
-l=78
-i=4
-ci=4
-se
-b
-bar
-boc
-vt=0
-vtc=0
-cti=0
-pt=1
-bt=1
-sbt=1
-bbt=1
-nolq
-npro
-nsfs
--blank-lines-before-packages=0
--opening-hash-brace-right
--no-outdent-long-comments
--iterations=2
-wbb="% + - * / x != == >= <= =~ !~ < > | & >= < = **= += *= &= <<= &&= -= /= |= >>= ||= .= %= ^= x="
19 changes: 19 additions & 0 deletions tidyall.ini
@@ -0,0 +1,19 @@
[PerlTidy]
select = **/*.{pl,pm,t,psgi}
ignore = t/00-*
ignore = t/author-*
ignore = t/release-*
ignore = blib/**/*
ignore = .build/**/*
ignore = Web-Machine-*/**/*
argv = --profile=$ROOT/perltidyrc

[PerlCritic]
select = **/*.{pl,pm,t,psgi}
ignore = t/00-*
ignore = t/author-*
ignore = t/release-*
ignore = blib/**/*
ignore = .build/**/*
ignore = Web-Machine-*/**/*
argv = --profile $ROOT/perlcriticrc --program-extensions .pl --program-extensions .t --program-extensions .psgi

0 comments on commit 4d468cf

Please sign in to comment.