Blame CONTRIBUTING.md

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