Blame CONTRIBUTING.md

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