| 1 |
# CONTRIBUTING |
| 2 |
|
| 3 |
Thank you for considering contributing to this distribution. This file |
| 4 |
contains instructions that will help you work with the source code. |
| 5 |
|
| 6 |
Please note that if you have any questions or difficulties, you can reach the |
| 7 |
maintainer(s) through the bug queue described later in this document |
| 8 |
(preferred), or by emailing the releaser directly. You are not required to |
| 9 |
follow any of the steps in this document to submit a patch or bug report; |
| 10 |
these are just recommendations, intended to help you (and help us help you |
| 11 |
faster). |
| 12 |
|
| 13 |
The distribution is managed with |
| 14 |
[Dist::Zilla](https://metacpan.org/release/Dist-Zilla). |
| 15 |
|
| 16 |
However, you can still compile and test the code with the |
| 17 |
`Makefile.PL` |
| 18 |
in the repository: |
| 19 |
|
| 20 |
perl Makefile.PL |
| 21 |
make |
| 22 |
make test |
| 23 |
|
| 24 |
|
| 25 |
You may need to satisfy some dependencies. The easiest way to satisfy |
| 26 |
dependencies is to install the last release. This is available at |
| 27 |
https://metacpan.org/release/DateTime-TimeZone |
| 28 |
|
| 29 |
You can use [`cpanminus`](https://metacpan.org/pod/App::cpanminus) to do this |
| 30 |
without downloading the tarball first: |
| 31 |
|
| 32 |
$> cpanm --reinstall --installdeps --with-recommends DateTime::TimeZone |
| 33 |
|
| 34 |
[`Dist::Zilla`](https://metacpan.org/pod/Dist::Zilla) is a very powerful |
| 35 |
authoring tool, but requires a number of author-specific plugins. If you would |
| 36 |
like to use it for contributing, install it from CPAN, then the following |
| 37 |
command to install the needed distros: |
| 38 |
|
| 39 |
$> dzil authordeps --missing | cpanm |
| 40 |
|
| 41 |
There may also be additional requirements not needed by the dzil build which |
| 42 |
are needed for tests or other development: |
| 43 |
|
| 44 |
$> dzil listdeps --author --missing | cpanm |
| 45 |
|
| 46 |
Or, you can use the 'dzil stale' command to install all requirements at once: |
| 47 |
|
| 48 |
$> cpanm Dist::Zilla::App::Command::stale |
| 49 |
$> dzil stale --all | cpanm |
| 50 |
|
| 51 |
You can also do this via cpanm directly: |
| 52 |
|
| 53 |
$> cpanm --reinstall --installdeps --with-develop --with-recommends DateTime::TimeZone |
| 54 |
|
| 55 |
Once installed, here are some dzil commands you might try: |
| 56 |
|
| 57 |
$> dzil build |
| 58 |
$> dzil test |
| 59 |
$> dzil test --release |
| 60 |
$> dzil xtest |
| 61 |
$> dzil listdeps --json |
| 62 |
$> dzil build --notgz |
| 63 |
|
| 64 |
You can learn more about Dist::Zilla at http://dzil.org/. |
| 65 |
|
| 66 |
The code for this distribution is [hosted on GitHub](https://github.com/houseabsolute/DateTime-TimeZone). |
| 67 |
|
| 68 |
You can submit code changes by forking the repository, pushing your code |
| 69 |
changes to your clone, and then submitting a pull request. Please update the |
| 70 |
Changes file with a user-facing description of your changes as part of your |
| 71 |
work. See the GitHub documentation for [detailed instructions on pull |
| 72 |
requests](https://help.github.com/articles/creating-a-pull-request) |
| 73 |
|
| 74 |
If you have found a bug, but do not have an accompanying patch to fix it, you |
| 75 |
can submit an issue report [via the web](https://github.com/houseabsolute/DateTime-TimeZone/issues). |
| 76 |
|
| 77 |
## Continuous Integration |
| 78 |
|
| 79 |
All pull requests for this distribution will be automatically tested using |
| 80 |
GitHub Actions. |
| 81 |
|
| 82 |
All CI results will be visible in the pull request on GitHub. Follow the |
| 83 |
appropriate links for details when tests fail. PRs cannot be merged until tests |
| 84 |
pass. |
| 85 |
|
| 86 |
## Precious |
| 87 |
|
| 88 |
This distribution uses [precious](https://github.com/houseabsolute/precious) |
| 89 |
to enforce a uniform coding style. This is tested as part of the author |
| 90 |
testing suite. |
| 91 |
|
| 92 |
You can install this and any other necessary non-Perl tools with |
| 93 |
[`mise`](https://mise.jdx.dev/). Once you have `mise` installed, you can install this project's dev |
| 94 |
tools by running the following commands: |
| 95 |
|
| 96 |
$> mise trust |
| 97 |
$> mise install |
| 98 |
|
| 99 |
Then you can use `precious` to tidy and lint your code: |
| 100 |
|
| 101 |
$> precious tidy -a |
| 102 |
$> precious lint -a |
| 103 |
|
| 104 |
Please run `precious tidy -a` and `precious lint -a` before committing your |
| 105 |
changes and address any issues that it reports. |
| 106 |
|
| 107 |
You can also set up a git pre-commit hook that checks all changed files for |
| 108 |
linting issues by running `./git/setup.pl`. |
| 109 |
|
| 110 |
## Contributor Names |
| 111 |
|
| 112 |
If you send a patch or pull request, your name and email address will be |
| 113 |
included in the documentation as a contributor (using the attribution on the |
| 114 |
commit or patch), unless you specifically request for it not to be. If you |
| 115 |
wish to be listed under a different name or address, you should submit a pull |
| 116 |
request to the `.mailmap` file to contain the correct mapping. |
| 117 |
|
| 118 |
## Generated By |
| 119 |
|
| 120 |
This file was generated via Dist::Zilla::Plugin::GenerateFile::FromShareDir 0.016 from a |
| 121 |
template file originating in Dist-Zilla-PluginBundle-DROLSKY-1.25. |