| 1 |
NAME |
| 2 |
Dist::Zilla::Plugin::AutoMetaResources - Automagical MetaResources |
| 3 |
|
| 4 |
VERSION |
| 5 |
version 1.21 |
| 6 |
|
| 7 |
SYNOPSIS |
| 8 |
# dist.ini |
| 9 |
name = Dist-Zilla-Plugin-AutoMetaResources |
| 10 |
... |
| 11 |
|
| 12 |
[AutoMetaResources] |
| 13 |
bugtracker.github = user:ajgb |
| 14 |
repository.github = user:ajgb |
| 15 |
homepage = https://metacpan.org/release/%{dist} |
| 16 |
|
| 17 |
or in PluginBundle::Easy |
| 18 |
|
| 19 |
$self->add_plugins( |
| 20 |
[ |
| 21 |
AutoMetaResources => { |
| 22 |
'bugtracker.github' => [{ user => 'ajgb' }], |
| 23 |
'repository.github' => [{ user => 'ajgb' }], |
| 24 |
'homepage' => 'https://metacpan.org/release/%{dist}', |
| 25 |
} |
| 26 |
] |
| 27 |
); |
| 28 |
|
| 29 |
both for Dist::Zilla::Plugin::AutoMetaResources would be equivalent of |
| 30 |
|
| 31 |
[MetaResources] |
| 32 |
bugtracker.web = https://github.com/ajgb/dist-zilla-plugin-autometaresources/issues |
| 33 |
repository.url = git://github.com/ajgb/dist-zilla-plugin-autometaresources.git |
| 34 |
repository.web = http://github.com/ajgb/dist-zilla-plugin-autometaresources |
| 35 |
repository.type = git |
| 36 |
homepage = https://metacpan.org/release/Dist-Zilla-Plugin-AutoMetaResources |
| 37 |
|
| 38 |
DESCRIPTION |
| 39 |
If you find repeating the dist name again in the configuration really |
| 40 |
annoying, this plugin comes to the rescue! |
| 41 |
|
| 42 |
CONFIGURATION |
| 43 |
Most of the known resources requires just boolean flag to be enabled, |
| 44 |
but you are free to pass your own options: |
| 45 |
|
| 46 |
bugtracker.rt = dist:Other-Name;lcdist:other-name |
| 47 |
|
| 48 |
which is transformed to: |
| 49 |
|
| 50 |
[{ |
| 51 |
dist => 'Other-Name', |
| 52 |
lcdist => 'other-name', |
| 53 |
}] |
| 54 |
|
| 55 |
BUGTRACKER |
| 56 |
RT bugtracker: |
| 57 |
|
| 58 |
[AutoMetaResources] |
| 59 |
bugtracker.rt = 1 |
| 60 |
|
| 61 |
# same as |
| 62 |
[MetaResources] |
| 63 |
bugtracker.web = https://rt.cpan.org/Public/Dist/Display.html?Name=%{dist} |
| 64 |
bugtracker.mailto = bug-%{dist}@rt.cpan.org |
| 65 |
|
| 66 |
GitHub issues: |
| 67 |
|
| 68 |
[AutoMetaResources] |
| 69 |
bugtracker.github = user:ajgb |
| 70 |
|
| 71 |
# same as |
| 72 |
[MetaResources] |
| 73 |
bugtracker.web = http://github.com/ajgb/%{lcdist}/issues |
| 74 |
|
| 75 |
Bitbucket issues: |
| 76 |
|
| 77 |
[AutoMetaResources] |
| 78 |
bugtracker.bitbucket = user:ajgb |
| 79 |
|
| 80 |
# same as |
| 81 |
[MetaResources] |
| 82 |
bugtracker.web = https://bitbucket.org/ajgb/%{lcdist}/issues |
| 83 |
|
| 84 |
REPOSITORY |
| 85 |
GitHub repository: |
| 86 |
|
| 87 |
[AutoMetaResources] |
| 88 |
repository.github = user:ajgb |
| 89 |
# or |
| 90 |
repository.GitHub = user:ajgb |
| 91 |
|
| 92 |
# same as |
| 93 |
[MetaResources] |
| 94 |
repository.url = git://github.com/ajgb/%{lcdist}.git |
| 95 |
repository.web = http://github.com/ajgb/%{lcdist} |
| 96 |
repository.type = git |
| 97 |
|
| 98 |
Bitbucket repository: |
| 99 |
|
| 100 |
[AutoMetaResources] |
| 101 |
repository.bitbucket = user:ajgb |
| 102 |
|
| 103 |
# same as |
| 104 |
[MetaResources] |
| 105 |
repository.url = git://bitbucket.org:ajgb/%{lcdist}.git |
| 106 |
repository.web = https://bitbucket.org/ajgb/%{lcdist} |
| 107 |
repository.type = git |
| 108 |
|
| 109 |
Git Moose repository: |
| 110 |
|
| 111 |
[AutoMetaResources] |
| 112 |
repository.gitmo = 1 |
| 113 |
|
| 114 |
# same as |
| 115 |
[MetaResources] |
| 116 |
repository.url = git://git.moose.perl.org/%{dist}.git |
| 117 |
repository.web = http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo/%{dist}.git;a=summary |
| 118 |
repository.type = git |
| 119 |
|
| 120 |
Catalyst Subversion repository: |
| 121 |
|
| 122 |
[AutoMetaResources] |
| 123 |
repository.catsvn = 1 |
| 124 |
|
| 125 |
# same as |
| 126 |
[MetaResources] |
| 127 |
repository.url = http://dev.catalyst.perl.org/repos/Catalyst/%{dist}/ |
| 128 |
repository.web = http://dev.catalystframework.org/svnweb/Catalyst/browse/%{dist} |
| 129 |
repository.type = svn |
| 130 |
|
| 131 |
Shadowcat's Git repositories: |
| 132 |
|
| 133 |
[AutoMetaResources] |
| 134 |
repository.catagits = 1 |
| 135 |
|
| 136 |
# same as |
| 137 |
[MetaResources] |
| 138 |
repository.url = git://git.shadowcat.co.uk/catagits/%{dist}.git |
| 139 |
repository.web = http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits/%{dist}.git;a=summary |
| 140 |
repository.type = git |
| 141 |
|
| 142 |
and |
| 143 |
|
| 144 |
[AutoMetaResources] |
| 145 |
repository.p5sagit = 1 |
| 146 |
|
| 147 |
# same as |
| 148 |
[MetaResources] |
| 149 |
repository.url = git://git.shadowcat.co.uk/p5sagit/%{dist}.git |
| 150 |
repository.web = http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit/%{dist}.git;a=summary |
| 151 |
repository.type = git |
| 152 |
|
| 153 |
and |
| 154 |
|
| 155 |
[AutoMetaResources] |
| 156 |
repository.dbsrgits = 1 |
| 157 |
|
| 158 |
# same as |
| 159 |
[MetaResources] |
| 160 |
repository.url = git://git.shadowcat.co.uk/dbsrgits/%{dist}.git |
| 161 |
repository.web = http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits/%{dist}.git;a=summary |
| 162 |
repository.type = git |
| 163 |
|
| 164 |
OTHER |
| 165 |
[AutoMetaResources] |
| 166 |
homepage = https://metacpan.org/release/%{dist} |
| 167 |
|
| 168 |
You are free to pass other valid metadata options to be included as |
| 169 |
resources. Values can contain following variables: |
| 170 |
|
| 171 |
*%{dist}* |
| 172 |
Name of the distribution |
| 173 |
|
| 174 |
*%{lcdist}* |
| 175 |
Name of the distribution (lowercase) |
| 176 |
|
| 177 |
AUTHOR |
| 178 |
Alex J. G. Burzyński <[email protected]> |
| 179 |
|
| 180 |
COPYRIGHT AND LICENSE |
| 181 |
This software is copyright (c) 2013 by Alex J. G. Burzyński |
| 182 |
<[email protected]>. |
| 183 |
|
| 184 |
This is free software; you can redistribute it and/or modify it under |
| 185 |
the same terms as the Perl 5 programming language system itself. |
| 186 |
|