Blame CONTRIBUTING.md

Packit 92cec9
# CONTRIBUTING
Packit 92cec9
Packit 92cec9
Thank you for considering contributing to this distribution. This file
Packit 92cec9
contains instructions that will help you work with the source code.
Packit 92cec9
Packit 92cec9
Please note that if you have any questions or difficulties, you can reach the
Packit 92cec9
maintainer(s) through the bug queue described later in this document
Packit 92cec9
(preferred), or by emailing the releaser directly. You are not required to
Packit 92cec9
follow any of the steps in this document to submit a patch or bug report;
Packit 92cec9
these are just recommendations, intended to help you (and help us help you
Packit 92cec9
faster).
Packit 92cec9
Packit 92cec9
Packit 92cec9
The distribution is managed with
Packit 92cec9
[Dist::Zilla](https://metacpan.org/release/Dist-Zilla).
Packit 92cec9
Packit 92cec9
However, you can still compile and test the code with the `Makefile.PL` or
Packit 92cec9
`Build.PL` in the repository:
Packit 92cec9
Packit 92cec9
    perl Makefile.PL
Packit 92cec9
    make
Packit 92cec9
    make test
Packit 92cec9
Packit 92cec9
or
Packit 92cec9
    perl Build.PL
Packit 92cec9
    ./Build
Packit 92cec9
    ./Build test
Packit 92cec9
Packit 92cec9
As well as:
Packit 92cec9
Packit 92cec9
    $ prove -bvr t
Packit 92cec9
Packit 92cec9
or
Packit 92cec9
Packit 92cec9
    $ perl -Mblib t/some_test_file.t
Packit 92cec9
Packit 92cec9
You may need to satisfy some dependencies. The easiest way to satisfy
Packit 92cec9
dependencies is to install the last release. This is available at
Packit 92cec9
https://metacpan.org/release/Package-DeprecationManager
Packit 92cec9
Packit 92cec9
If you use cpanminus, you can do it without downloading the tarball first:
Packit 92cec9
Packit 92cec9
    $ cpanm --reinstall --installdeps --with-recommends Package::DeprecationManager
Packit 92cec9
Packit 92cec9
Dist::Zilla is a very powerful authoring tool, but requires a number of
Packit 92cec9
author-specific plugins. If you would like to use it for contributing, install
Packit 92cec9
it from CPAN, then run one of the following commands, depending on your CPAN
Packit 92cec9
client:
Packit 92cec9
Packit 92cec9
    $ cpan `dzil authordeps --missing`
Packit 92cec9
Packit 92cec9
or
Packit 92cec9
Packit 92cec9
    $ dzil authordeps --missing | cpanm
Packit 92cec9
Packit 92cec9
They may also be additional requirements not needed by the dzil build which
Packit 92cec9
are needed for tests or other development:
Packit 92cec9
Packit 92cec9
    $ cpan `dzil listdeps --author --missing`
Packit 92cec9
Packit 92cec9
or
Packit 92cec9
Packit 92cec9
    $ dzil listdeps --author --missing | cpanm
Packit 92cec9
Packit 92cec9
Or, you can use the 'dzil stale' command to install all requirements at once:
Packit 92cec9
Packit 92cec9
    $ cpan Dist::Zilla::App::Command::stale
Packit 92cec9
    $ cpan `dzil stale --all`
Packit 92cec9
Packit 92cec9
or
Packit 92cec9
Packit 92cec9
    $ cpanm Dist::Zilla::App::Command::stale
Packit 92cec9
    $ dzil stale --all | cpanm
Packit 92cec9
Packit 92cec9
You can also do this via cpanm directly:
Packit 92cec9
Packit 92cec9
    $ cpanm --reinstall --installdeps --with-develop --with-recommends Package::DeprecationManager
Packit 92cec9
Packit 92cec9
Once installed, here are some dzil commands you might try:
Packit 92cec9
Packit 92cec9
    $ dzil build
Packit 92cec9
    $ dzil test
Packit 92cec9
    $ dzil test --release
Packit 92cec9
    $ dzil xtest
Packit 92cec9
    $ dzil listdeps --json
Packit 92cec9
    $ dzil build --notgz
Packit 92cec9
Packit 92cec9
You can learn more about Dist::Zilla at http://dzil.org/.
Packit 92cec9
Packit 92cec9
The code for this distribution is [hosted at GitHub](https://github.com/moose/Package-DeprecationManager).
Packit 92cec9
Packit 92cec9
You can submit code changes by forking the repository, pushing your code
Packit 92cec9
changes to your clone, and then submitting a pull request. Detailed
Packit 92cec9
instructions for doing that is available here:
Packit 92cec9
Packit 92cec9
https://help.github.com/articles/creating-a-pull-request
Packit 92cec9
Packit 92cec9
If you have found a bug, but do not have an accompanying patch to fix it, you
Packit 92cec9
can submit an issue report [via the web](http://rt.cpan.org/Public/Dist/Display.html?Name=Package-DeprecationManager)
Packit 92cec9
or [via email](bug-package-deprecationmanager@rt.cpan.org.
Packit 92cec9
This is a good place to send your questions about the usage of this distribution.
Packit 92cec9
Packit 92cec9
## Travis
Packit 92cec9
Packit 92cec9
All pull requests for this distribution will be automatically tested by
Packit 92cec9
[Travis](https://travis-ci.org/) and the build status will be reported on the
Packit 92cec9
pull request page. If your build fails, please take a look at the output.
Packit 92cec9
Packit 92cec9
## Tidyall
Packit 92cec9
Packit 92cec9
This distribution uses
Packit 92cec9
[Code::TidyAll](https://metacpan.org/release/Code-TidyAll) to enforce a
Packit 92cec9
uniform coding style. This is tested as part of the author testing suite. You
Packit 92cec9
can install and run tidyall by running the following commands:
Packit 92cec9
Packit 92cec9
    $ cpanm Code::TidyAll
Packit 92cec9
    $ tidyall -a
Packit 92cec9
Packit 92cec9
Please run this before committing your changes and address any issues it
Packit 92cec9
brings up.
Packit 92cec9
Packit 92cec9
## Contributor Names
Packit 92cec9
Packit 92cec9
If you send me a patch or pull request, your name and email address will be
Packit 92cec9
included in the documentation as a contributor (using the attribution on the
Packit 92cec9
commit or patch), unless you specifically request for it not to be. If you
Packit 92cec9
wish to be listed under a different name or address, you should submit a pull
Packit 92cec9
request to the .mailmap file to contain the correct mapping.
Packit 92cec9
Packit 92cec9
This file was generated via Dist::Zilla::Plugin::GenerateFile::FromShareDir 0.009 from a
Packit 92cec9
template file originating in Dist-Zilla-PluginBundle-DROLSKY-0.62.