Skip to content

Commit

Permalink
Cleaning up things for Dist::Zilla
Browse files Browse the repository at this point in the history
  • Loading branch information
Kage committed Jun 23, 2019
1 parent 275bf13 commit 05c9205
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 35 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*.bak
*.old
*.swp
/.build/
/blib/
/cover_db
/inc/
Expand All @@ -13,3 +14,4 @@
/META*
/MYMETA*
/pm_to_blib
Mojolicious-Plugin-TrustedProxy-*
6 changes: 0 additions & 6 deletions MANIFEST

This file was deleted.

16 changes: 6 additions & 10 deletions README.pod
Original file line number Diff line number Diff line change
Expand Up @@ -49,25 +49,21 @@ a C<remote_proxy_address> attribute into C<Mojo::Transaction>. 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

<a href="https://travis-ci.org/Kage/Mojolicious-Plugin-TrustedProxy">
=for html <a href="https://travis-ci.org/Kage/Mojolicious-Plugin-TrustedProxy">
<img src="https://travis-ci.org/Kage/Mojolicious-Plugin-TrustedProxy.svg?branch=master">
</a>

=end html

Code coverage:
=item Code coverage

=begin html

<a href='https://coveralls.io/github/Kage/Mojolicious-Plugin-TrustedProxy?branch=master'>
=for html <a href='https://coveralls.io/github/Kage/Mojolicious-Plugin-TrustedProxy?branch=master'>
<img src='https://coveralls.io/repos/github/Kage/Mojolicious-Plugin-TrustedProxy/badge.svg?branch=master'>
</a>

=end html
=back

=head1 CONFIG

Expand Down
72 changes: 63 additions & 9 deletions dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,72 @@ name = Mojolicious-Plugin-TrustedProxy
author = Kage <kage@kage.wtf>
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
34 changes: 24 additions & 10 deletions lib/Mojolicious/Plugin/TrustedProxy.pm
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,24 @@ sub register {

}

#=begin html
#
#<a href="https://travis-ci.org/Kage/Mojolicious-Plugin-TrustedProxy">
#<img src="https://travis-ci.org/Kage/Mojolicious-Plugin-TrustedProxy.svg?branch=master">
#</a>
#
#=end html
#
#Code coverage:
#
#=begin html
#
#<a href='https://coveralls.io/github/Kage/Mojolicious-Plugin-TrustedProxy?branch=master'>
#<img src='https://coveralls.io/repos/github/Kage/Mojolicious-Plugin-TrustedProxy/badge.svg?branch=master'>
#</a>
#
#=end html

1;
__END__
=head1 NAME
Expand Down Expand Up @@ -229,25 +247,21 @@ a C<remote_proxy_address> attribute into C<Mojo::Transaction>. 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
<a href="https://travis-ci.org/Kage/Mojolicious-Plugin-TrustedProxy">
=for html <a href="https://travis-ci.org/Kage/Mojolicious-Plugin-TrustedProxy">
<img src="https://travis-ci.org/Kage/Mojolicious-Plugin-TrustedProxy.svg?branch=master">
</a>
=end html
Code coverage:
=item Code coverage
=begin html
<a href='https://coveralls.io/github/Kage/Mojolicious-Plugin-TrustedProxy?branch=master'>
=for html <a href='https://coveralls.io/github/Kage/Mojolicious-Plugin-TrustedProxy?branch=master'>
<img src='https://coveralls.io/repos/github/Kage/Mojolicious-Plugin-TrustedProxy/badge.svg?branch=master'>
</a>
=end html
=back
=head1 CONFIG
Expand Down

0 comments on commit 05c9205

Please sign in to comment.