From 05c9205909a82c5511fdc590b5a46633868e98a3 Mon Sep 17 00:00:00 2001 From: Kage Date: Sun, 23 Jun 2019 00:52:28 +0000 Subject: [PATCH] Cleaning up things for Dist::Zilla --- .gitignore | 2 + MANIFEST | 6 --- README.pod | 16 +++--- dist.ini | 72 ++++++++++++++++++++++---- lib/Mojolicious/Plugin/TrustedProxy.pm | 34 ++++++++---- 5 files changed, 95 insertions(+), 35 deletions(-) delete mode 100644 MANIFEST diff --git a/.gitignore b/.gitignore index 04737c7..2bb682c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ *.bak *.old *.swp +/.build/ /blib/ /cover_db /inc/ @@ -13,3 +14,4 @@ /META* /MYMETA* /pm_to_blib +Mojolicious-Plugin-TrustedProxy-* diff --git a/MANIFEST b/MANIFEST deleted file mode 100644 index c1105d0..0000000 --- a/MANIFEST +++ /dev/null @@ -1,6 +0,0 @@ -lib/Mojolicious/Plugin/TrustedProxy.pm -t/basic.t -Changes -Makefile.PL -README.pod -MANIFEST diff --git a/README.pod b/README.pod index c400472..7ba3637 100644 --- a/README.pod +++ b/README.pod @@ -49,25 +49,21 @@ a C attribute into C. If a remote IP address override header is matched from a trusted upstream proxy, then C<< tx->remote_proxy_address >> will be set to the IP address of that proxy. -Build status: +=over -=begin html +=item Build status - +=for html -=end html - -Code coverage: +=item Code coverage -=begin html - - +=for html -=end html +=back =head1 CONFIG diff --git a/dist.ini b/dist.ini index 0902c79..a2cb199 100644 --- a/dist.ini +++ b/dist.ini @@ -2,18 +2,72 @@ name = Mojolicious-Plugin-TrustedProxy author = Kage license = MIT copyright_holder = Kage -version = 0.02 +copyright_year = 2019 + +[lib] +lib = lib -[NextRelease] -[@Git] -[@Basic] [GithubMeta] issues = 1 +user = Kage +homepage = https://metacpan.org/pod/Mojolicious::Plugin::TrustedProxy -[MetaJSON] -[PodWeaver] -[PkgVersion] -[ReadmeFromPod] -[PodSyntaxTests] +[ReadmeAnyFromPod / Readme_Github] +type = pod +source_filename = lib/Mojolicious/Plugin/TrustedProxy.pm +filename = README.pod +location = root +phase = release + +[CheckChangesHasContent] [Prereqs::FromCPANfile] +[Git::Contributors] +[MetaResources] +x_IRC = irc://irc.hackthissite.org/#opensource + +[Git::Check] +allow_dirty = dist.ini +allow_dirty = Changes +allow_dirty = README.pod +[RewriteVersion] +[NextRelease] +format = %-9v %{yyyy-MM-dd HH:mm:ss VVV}d%{ (TRIAL RELEASE)}T +[CopyFilesFromRelease] +filename = LICENSE +filename = META.json +filename = Makefile.PL +[Git::Commit] +commit_msg = %v%n%n%c +allow_dirty = dist.ini +allow_dirty = Changes +allow_dirty = README.pod +allow_dirty = LICENSE +allow_dirty = META.json +allow_dirty = Makefile.PL +add_files_in = / +[Git::Tag] +tag_format = %v +tag_message = %v +[BumpVersionAfterRelease] +munge_makefile_pl = 0 +[Git::Commit / Commit_Version_Bump] +allow_dirty_match = ^(?:lib|script|bin)/ +commit_msg = Bump version +[Git::Push] + +[Git::GatherDir] +exclude_filename = LICENSE +exclude_filename = META.json +exclude_filename = Makefile.PL +[Regenerate::AfterReleasers] +plugin = Readme_Github +plugin = CopyFilesFromRelease + +;[ModuleShareDirs] +;Dist::Zilla::MintingProfile::Starter = profiles + +[@Starter] +revision = 3 +-remove = GatherDir +;MetaNoIndex.directory[] = profiles diff --git a/lib/Mojolicious/Plugin/TrustedProxy.pm b/lib/Mojolicious/Plugin/TrustedProxy.pm index a78b832..00a0277 100644 --- a/lib/Mojolicious/Plugin/TrustedProxy.pm +++ b/lib/Mojolicious/Plugin/TrustedProxy.pm @@ -176,6 +176,24 @@ sub register { } +#=begin html +# +# +# +# +# +#=end html +# +#Code coverage: +# +#=begin html +# +# +# +# +# +#=end html + 1; __END__ =head1 NAME @@ -229,25 +247,21 @@ a C attribute into C. If a remote IP address override header is matched from a trusted upstream proxy, then C<< tx->remote_proxy_address >> will be set to the IP address of that proxy. -Build status: +=over -=begin html +=item Build status - +=for html -=end html - -Code coverage: +=item Code coverage -=begin html - - +=for html -=end html +=back =head1 CONFIG