stone_checksums 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 10c24907c04341700760f767dee6961380dad863a854e27311ea5bad4adbbe87
4
+ data.tar.gz: ae70388ffc487abe1212908966cdc766257334aa35d0fc8cbfc8003783e492e2
5
+ SHA512:
6
+ metadata.gz: 739fecf5f505e1d3233d93b6dab4ad7ce25f1ebf92a9dc493436cc2b24aa605ba25d24402ae5297015f622414e7e226a8df264ea5844cc6b94f34ea89373224a
7
+ data.tar.gz: 72194ebfe4981c8d4477572c72cb82bde815e65c94df3509511c27364d91b99b072ced8bc2cf0204473bef0704a42e4504c845ece9ea219463d6c505d92020d1
checksums.yaml.gz.sig ADDED
@@ -0,0 +1,3 @@
1
+ 2�@P�6)�� �v��B����C�e���+3�!�aq�����c�Y��f% �����I� U{���
2
+ DR��2�<"�+5Ӹ��b
3
+ #x �h����a�����(R����?;�H��d#�LM�W��ނŜy�N���hB�N� �+*]����~���V�̡ȇ��h�%���`ث�a� �ڟv҆��s�p/��,Z C���C���^�-d똲�8��HΜ"^��'k�TJ�,<ONb�!�D�y$���Oe�N#����3
data/CHANGELOG.md ADDED
@@ -0,0 +1,34 @@
1
+ # Changelog
2
+
3
+ [![SemVer 2.0.0][📌semver-img]][📌semver] [![Keep-A-Changelog 1.0.0][📗keep-changelog-img]][📗keep-changelog]
4
+
5
+ All notable changes to this project will be documented in this file.
6
+
7
+ The format is based on [Keep a Changelog][📗keep-changelog],
8
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
9
+ and [yes][📌major-versions-not-sacred], platform and engine support are part of the [public API][📌semver-breaking].
10
+ Please file a bug if you notice a violation of semantic versioning.
11
+
12
+ [📌semver]: https://semver.org/spec/v2.0.0.html
13
+ [📌semver-img]: https://img.shields.io/badge/semver-2.0.0-FFDD67.svg?style=flat
14
+ [📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
15
+ [📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
16
+ [📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
17
+ [📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat
18
+
19
+ ## [Unreleased]
20
+ ### Added
21
+ ### Changed
22
+ ### Fixed
23
+ ### Removed
24
+
25
+ ## [1.0.0] - 2025-02-23 ([tag][1.0.0t])
26
+ - COVERAGE: 98.67% -- 74/75 lines in 5 files
27
+ - BRANCH COVERAGE: 79.17% -- 19/24 branches in 5 files
28
+ - 38.46% documented
29
+ ### Added
30
+ - Initial release
31
+
32
+ [Unreleased]: https://github.com/pboling/gem_checksums/compare/v1.0.0...HEAD
33
+ [1.0.0]: https://github.com/pboling/gem_checksums/compare/SHA_HERE...v1.0.0
34
+ [1.0.0t]: https://github.com/pboling/gem_checksums/tags/v1.0.0
@@ -0,0 +1,135 @@
1
+
2
+ # Contributor Covenant Code of Conduct
3
+
4
+ ## Our Pledge
5
+
6
+ We as members, contributors, and leaders pledge to make participation in our
7
+ community a harassment-free experience for everyone, regardless of age, body
8
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
9
+ identity and expression, level of experience, education, socio-economic status,
10
+ nationality, personal appearance, race, caste, color, religion, or sexual
11
+ identity and orientation.
12
+
13
+ We pledge to act and interact in ways that contribute to an open, welcoming,
14
+ diverse, inclusive, and healthy community.
15
+
16
+ ## Our Standards
17
+
18
+ Examples of behavior that contributes to a positive environment for our
19
+ community include:
20
+
21
+ * Demonstrating empathy and kindness toward other people
22
+ * Being respectful of differing opinions, viewpoints, and experiences
23
+ * Giving and gracefully accepting constructive feedback
24
+ * Accepting responsibility and apologizing to those affected by our mistakes,
25
+ and learning from the experience
26
+ * Focusing on what is best not just for us as individuals, but for the overall
27
+ community
28
+
29
+ Examples of unacceptable behavior include:
30
+
31
+ * The use of sexualized language or imagery, and sexual attention or advances of
32
+ any kind
33
+ * Trolling, insulting or derogatory comments, and personal or political attacks
34
+ * Public or private harassment
35
+ * Publishing others' private information, such as a physical or email address,
36
+ without their explicit permission
37
+ * Other conduct which could reasonably be considered inappropriate in a
38
+ professional setting
39
+
40
+ ## Enforcement Responsibilities
41
+
42
+ Community leaders are responsible for clarifying and enforcing our standards of
43
+ acceptable behavior and will take appropriate and fair corrective action in
44
+ response to any behavior that they deem inappropriate, threatening, offensive,
45
+ or harmful.
46
+
47
+ Community leaders have the right and responsibility to remove, edit, or reject
48
+ comments, commits, code, wiki edits, issues, and other contributions that are
49
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
50
+ decisions when appropriate.
51
+
52
+ ## Scope
53
+
54
+ This Code of Conduct applies within all community spaces, and also applies when
55
+ an individual is officially representing the community in public spaces.
56
+ Examples of representing our community include using an official email address,
57
+ posting via an official social media account, or acting as an appointed
58
+ representative at an online or offline event.
59
+
60
+ ## Enforcement
61
+
62
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
63
+ reported to the community leaders responsible for enforcement at
64
+ [![Contact BDFL][🚂bdfl-contact-img]][🚂bdfl-contact].
65
+ All complaints will be reviewed and investigated promptly and fairly.
66
+
67
+ All community leaders are obligated to respect the privacy and security of the
68
+ reporter of any incident.
69
+
70
+ ## Enforcement Guidelines
71
+
72
+ Community leaders will follow these Community Impact Guidelines in determining
73
+ the consequences for any action they deem in violation of this Code of Conduct:
74
+
75
+ ### 1. Correction
76
+
77
+ **Community Impact**: Use of inappropriate language or other behavior deemed
78
+ unprofessional or unwelcome in the community.
79
+
80
+ **Consequence**: A private, written warning from community leaders, providing
81
+ clarity around the nature of the violation and an explanation of why the
82
+ behavior was inappropriate. A public apology may be requested.
83
+
84
+ ### 2. Warning
85
+
86
+ **Community Impact**: A violation through a single incident or series of
87
+ actions.
88
+
89
+ **Consequence**: A warning with consequences for continued behavior. No
90
+ interaction with the people involved, including unsolicited interaction with
91
+ those enforcing the Code of Conduct, for a specified period of time. This
92
+ includes avoiding interactions in community spaces as well as external channels
93
+ like social media. Violating these terms may lead to a temporary or permanent
94
+ ban.
95
+
96
+ ### 3. Temporary Ban
97
+
98
+ **Community Impact**: A serious violation of community standards, including
99
+ sustained inappropriate behavior.
100
+
101
+ **Consequence**: A temporary ban from any sort of interaction or public
102
+ communication with the community for a specified period of time. No public or
103
+ private interaction with the people involved, including unsolicited interaction
104
+ with those enforcing the Code of Conduct, is allowed during this period.
105
+ Violating these terms may lead to a permanent ban.
106
+
107
+ ### 4. Permanent Ban
108
+
109
+ **Community Impact**: Demonstrating a pattern of violation of community
110
+ standards, including sustained inappropriate behavior, harassment of an
111
+ individual, or aggression toward or disparagement of classes of individuals.
112
+
113
+ **Consequence**: A permanent ban from any sort of public interaction within the
114
+ community.
115
+
116
+ ## Attribution
117
+
118
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
119
+ version 2.1, available at
120
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
121
+
122
+ Community Impact Guidelines were inspired by
123
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
124
+
125
+ For answers to common questions about this code of conduct, see the FAQ at
126
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
127
+ [https://www.contributor-covenant.org/translations][translations].
128
+
129
+ [homepage]: https://www.contributor-covenant.org
130
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
131
+ [Mozilla CoC]: https://github.com/mozilla/diversity
132
+ [FAQ]: https://www.contributor-covenant.org/faq
133
+ [translations]: https://www.contributor-covenant.org/translations
134
+ [🚂bdfl-contact]: http://www.railsbling.com/contact
135
+ [🚂bdfl-contact-img]: https://img.shields.io/badge/Contact-BDFL-0093D0.svg?style=flat&logo=rubyonrails&logoColor=red
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,131 @@
1
+ # Contributing
2
+
3
+ Bug reports and pull requests are welcome on GitHub at [https://github.com/pboling/gem_checksums][🚎src-main]
4
+ . This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to
5
+ the [code of conduct][🤝conduct].
6
+
7
+ To submit a patch, please fork the project and create a patch with tests.
8
+ Once you're happy with it send a pull request.
9
+
10
+ We [![Keep A Changelog][📗keep-changelog-img]][📗keep-changelog] so if you make changes, remember to update it.
11
+
12
+ ## You can help!
13
+
14
+ Simply follow these instructions:
15
+
16
+ 1. Fork the repository
17
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
18
+ 3. Make some fixes.
19
+ 4. Commit your changes (`git commit -am 'Added some feature'`)
20
+ 5. Push to the branch (`git push origin my-new-feature`)
21
+ 6. Make sure to add tests for it. This is important, so it doesn't break in a future release.
22
+ 7. Create new Pull Request.
23
+
24
+ ## Appraisals
25
+
26
+ From time to time the appraisal gemfiles in `gemfiles/` will need to be updated.
27
+ They are created and updated with the commands:
28
+
29
+ NOTE: We run on a [fork][🚎appraisal-fork] of Appraisal.
30
+
31
+ Please upvote the PR for `eval_gemfile` [support][🚎appraisal-eval-gemfile-pr]
32
+
33
+ ```shell
34
+ BUNDLE_GEMFILE=Appraisal.root.gemfile bundle
35
+ BUNDLE_GEMFILE=Appraisal.root.gemfile bundle exec appraisal update
36
+ ```
37
+
38
+ When adding an appraisal to CI check the [runner tool cache][🏃‍♂️runner-tool-cache] to see which runner to use.
39
+
40
+ ## The Reek List
41
+
42
+ Take a look at the `reek` list which is the file called `REEK` and find something to improve.
43
+
44
+ To refresh the `reek` list:
45
+
46
+ ```bash
47
+ bundle exec reek > REEK
48
+ ```
49
+
50
+ ## Run Tests
51
+
52
+ To run all tests
53
+
54
+ ```bash
55
+ bundle exec rake test
56
+ ```
57
+
58
+ ## Lint It
59
+
60
+ Run all the default tasks, which includes running the gradually autocorrecting linter, `rubocop-gradual`.
61
+
62
+ ```bash
63
+ bundle exec rake
64
+ ```
65
+
66
+ Or just run the linter.
67
+
68
+ ```bash
69
+ bundle exec rake rubocop_gradual:autocorrect
70
+ ```
71
+
72
+ ## Contributors
73
+
74
+ Your picture could be here!
75
+
76
+ [![Contributors][🖐contributors-img]][🖐contributors]
77
+
78
+ Made with [contributors-img][🖐contrib-rocks].
79
+
80
+ Also see GitLab Contributors: [https://gitlab.com/pboling/gem_checksums/-/graphs/main][🚎contributors-gl]
81
+
82
+ ## For Maintainers
83
+
84
+ ### One-time, Per-maintainer, Setup
85
+
86
+ **IMPORTANT**: Your public key for signing gems will need to be picked up by the line in the
87
+ `gemspec` defining the `spec.cert_chain` (check the relevant ENV variables there),
88
+ in order to sign the new release.
89
+ See: [RubyGems Security Guide][🔒️rubygems-security-guide]
90
+
91
+ ### To release a new version:
92
+
93
+ 1. Run `bin/setup && bin/rake` as a tests, coverage, & linting sanity check
94
+ 2. Update the version number in `version.rb`, and ensure `CHANGELOG.md` reflects changes
95
+ 3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`
96
+ 4. Run `git commit -am "🔖 Prepare release v<VERSION>"` to commit the changes
97
+ 5. Run `git push` to trigger the final CI pipeline before release, & merge PRs
98
+ - NOTE: Remember to [check the build][🧪build]!
99
+ 6. Run `export GIT_TRUNK_BRANCH_NAME="$(git remote show origin | grep 'HEAD branch' | cut -d ' ' -f5)" && echo $GIT_TRUNK_BRANCH_NAME`
100
+ 7. Run `git checkout $GIT_TRUNK_BRANCH_NAME`
101
+ 8. Run `git pull origin $GIT_TRUNK_BRANCH_NAME` to ensure you will release the latest trunk code
102
+ 9. Set `SOURCE_DATE_EPOCH` so `rake build` and `rake release` use same timestamp, and generate same checksums
103
+ - Run `export SOURCE_DATE_EPOCH=$EPOCHSECONDS && echo $SOURCE_DATE_EPOCH`
104
+ - If the echo above has no output, then it didn't work.
105
+ - Note that you'll need the `zsh/datetime` module, if running `zsh`.
106
+ - In `bash` you can use `date +%s` instead, i.e. `export SOURCE_DATE_EPOCH=$(date +%s) && echo $SOURCE_DATE_EPOCH`
107
+ 10. Run `bundle exec rake build`
108
+ 11. Run `gem_checksums` (more context [1][🔒️rubygems-checksums-pr] and [2][🔒️rubygems-guides-pr])
109
+ to create SHA-256 and SHA-512 checksums
110
+ - Checksums will be committed automatically by the script, but not pushed
111
+ 12. Run `bundle exec rake release` which will create a git tag for the version,
112
+ push git commits and tags, and push the `.gem` file to [rubygems.org][💎rubygems]
113
+
114
+ [🚎src-main]: https://gitlab.com/pboling/gem_checksums
115
+ [🧪build]: https://github.com/pboling/gem_checksums/actions
116
+ [🤝conduct]: https://gitlab.com/pboling/gem_checksums/-/blob/main/CODE_OF_CONDUCT.md
117
+ [🖐contrib-rocks]: https://contrib.rocks
118
+ [🖐contributors]: https://github.com/pboling/gem_checksums/graphs/contributors
119
+ [🚎contributors-gl]: https://gitlab.com/pboling/gem_checksums/-/graphs/main
120
+ [🖐contributors-img]: https://contrib.rocks/image?repo=pboling/gem_checksums
121
+ [💎rubygems]: https://rubygems.org
122
+ [🔒️rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
123
+ [🔒️rubygems-checksums-pr]: https://github.com/rubygems/rubygems/pull/6022
124
+ [🔒️rubygems-guides-pr]: https://github.com/rubygems/guides/pull/325
125
+ [📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
126
+ [📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat
127
+ [📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
128
+ [📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
129
+ [🚎appraisal-eval-gemfile-pr]: https://github.com/thoughtbot/appraisal/pull/248
130
+ [🚎appraisal-fork]: https://github.com/pboling/appraisal/tree/galtzo
131
+ [🏃‍♂️runner-tool-cache]: https://github.com/ruby/ruby-builder/releases/tag/toolcache
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 - 2025 Peter Boling
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,462 @@
1
+ # StoneChecksums née GemChecksums
2
+
3
+ [![Version][👽versioni]][👽version]
4
+ [![License: MIT][📄license-img]][📄license-ref]
5
+ [![Downloads Rank][👽dl-ranki]][👽dl-rank]
6
+ [![Open Source Helpers][👽oss-helpi]][👽oss-help]
7
+ [![Depfu][🔑depfui♻️]][🔑depfu]
8
+ [![CodeCov Test Coverage][🔑codecovi♻️]][🔑codecov]
9
+ [![Coveralls Test Coverage][🔑coveralls-img]][🔑coveralls]
10
+ [![CodeClimate Test Coverage][🔑cc-covi♻️]][🔑cc-cov]
11
+ [![Maintainability][🔑cc-mnti♻️]][🔑cc-mnt]
12
+ [![CI Heads][🚎3-hd-wfi]][🚎3-hd-wf]
13
+ [![CI Current][🚎11-c-wfi]][🚎11-c-wf]
14
+ [![CI Truffle Ruby][🚎9-t-wfi]][🚎9-t-wf]
15
+ [![CI JRuby][🚎10-j-wfi]][🚎10-j-wf]
16
+ [![CI Supported][🚎6-s-wfi]][🚎6-s-wf]
17
+ [![CI Legacy][🚎4-lg-wfi]][🚎4-lg-wf]
18
+ [![CI Unsupported][🚎7-us-wfi]][🚎7-us-wf]
19
+ [![CI Ancient][🚎1-an-wfi]][🚎1-an-wf]
20
+ [![CI Hoary][🚎8-ho-wfi]][🚎8-ho-wf]
21
+ [![CI Test Coverage][🚎2-cov-wfi]][🚎2-cov-wf]
22
+ [![CI Style][🚎5-st-wfi]][🚎5-st-wf]
23
+
24
+ ---
25
+
26
+ [![Liberapay Patrons][⛳liberapay-img]][⛳liberapay]
27
+ [![Sponsor Me on Github][🖇sponsor-img]][🖇sponsor]
28
+ [![Buy me a coffee][🖇buyme-small-img]][🖇buyme]
29
+ [![Polar Shield][🖇polar-img]][🖇polar]
30
+ [![Donate to my FLOSS or refugee efforts at ko-fi.com][🖇kofi-img]][🖇kofi]
31
+ [![Donate to my FLOSS or refugee efforts using Patreon][🖇patreon-img]][🖇patreon]
32
+
33
+ A ruby shell script, and rake task, to generate SHA-256 and SHA-512 checksums of RubyGem libraries,
34
+ shipped as a RubyGem.
35
+
36
+ You may be familiar with the standard rake task `build:checksum` from RubyGems.
37
+ This gem ships an improved version as `build:generate_checksums`, based on the
38
+ [RubyGems pull request][🔒️rubygems-checksums-pr] I started in October 2022.
39
+
40
+ ```shell
41
+ rake build:generate_checksums
42
+ ```
43
+
44
+ Or giving the same result...
45
+
46
+ The script accomplishes the same thing if you prefer that:
47
+ ```shell
48
+ gem_checksums
49
+ ```
50
+
51
+ ## Info you can shake a stick at
52
+
53
+ | Tokens to Remember | [![Gem name][⛳️name-img]][⛳️gem-name] [![Gem namespace][⛳️namespace-img]][⛳️gem-namespace] |
54
+ |-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
55
+ | Works with JRuby | [![JRuby 9.1 Compat][💎jruby-9.1i]][🚎10-j-wf] [![JRuby 9.2 Compat][💎jruby-9.2i]][🚎10-j-wf] [![JRuby 9.3 Compat][💎jruby-9.3i]][🚎10-j-wf] [![JRuby 9.4 Compat][💎jruby-c-i]][🚎11-c-wf] [![JRuby HEAD Compat][💎jruby-headi]][🚎3-hd-wf] |
56
+ | Works with Truffle Ruby | [![Truffle Ruby 22.3 Compat][💎truby-22.3i]][🚎9-t-wf] [![Truffle Ruby 23.0 Compat][💎truby-23.0i]][🚎9-t-wf] [![Truffle Ruby 23.1 Compat][💎truby-23.1i]][🚎9-t-wf] [![Truffle Ruby 24.1 Compat][💎truby-c-i]][🚎11-c-wf] [![Truffle Ruby HEAD Compat][💎truby-headi]][🚎3-hd-wf] |
57
+ | Works with MRI Ruby 3 | [![Ruby 3.0 Compat][💎ruby-3.0i]][🚎4-lg-wf] [![Ruby 3.1 Compat][💎ruby-3.1i]][🚎6-s-wf] [![Ruby 3.2 Compat][💎ruby-3.2i]][🚎6-s-wf] [![Ruby 3.3 Compat][💎ruby-3.3i]][🚎6-s-wf] [![Ruby 3.4 Compat][💎ruby-c-i]][🚎11-c-wf] [![Ruby HEAD Compat][💎ruby-headi]][🚎3-hd-wf] |
58
+ | Works with MRI Ruby 2 | [![Ruby 2.2 Compat][💎ruby-2.2i]][🚎8-ho-wf] [![Ruby 2.3 Compat][💎ruby-2.3i]][🚎1-an-wf] [![Ruby 2.4 Compat][💎ruby-2.4i]][🚎1-an-wf] [![Ruby 2.5 Compat][💎ruby-2.5i]][🚎1-an-wf] [![Ruby 2.6 Compat][💎ruby-2.6i]][🚎7-us-wf] [![Ruby 2.7 Compat][💎ruby-2.7i]][🚎7-us-wf] |
59
+ | Source | [![Source on GitLab.com][📜src-gl-img]][📜src-gl] [![Source on Github.com][📜src-gh-img]][📜src-gh] [![The best SHA: dQw4w9WgXcQ!][🧮kloc-img]][🧮kloc] |
60
+ | Documentation | [![Current release on RubyDoc.info][📜docs-cr-rd-img]][🚎yard-current] [![HEAD on RubyDoc.info][📜docs-head-rd-img]][🚎yard-head] [![BDFL Blog][🚂bdfl-blog-img]][🚂bdfl-blog] [![Wiki][📜wiki-img]][📜wiki] |
61
+ | Compliance | [![License: MIT][📄license-img]][📄license-ref] [![📄ilo-declaration-img]][📄ilo-declaration] [![Security Policy][🔐security-img]][🔐security] [![CodeQL][🖐codeQL-img]][🖐codeQL] [![Contributor Covenant 2.1][🪇conduct-img]][🪇conduct] [![SemVer 2.0.0][📌semver-img]][📌semver] [![Keep-A-Changelog 1.0.0][📗keep-changelog-img]][📗keep-changelog] |
62
+ | Expert 1:1 Support | [![Get help from me on Upwork][👨🏼‍🏫expsup-upwork-img]][👨🏼‍🏫expsup-upwork] `or` [![Get help from me on Codementor][👨🏼‍🏫expsup-codementor-img]][👨🏼‍🏫expsup-codementor] |
63
+ | Enterprise Support | [![Get help from me on Tidelift][🏙️entsup-tidelift-img]][🏙️entsup-tidelift]<br/>💡Subscribe for support guarantees covering _all_ FLOSS dependencies!<br/>💡Tidelift is part of [Sonar][🏙️entsup-tidelift-sonar]!<br/>💡Tidelift pays maintainers to maintain the software you depend on!<br/>📊`@`Pointy Haired Boss: An [enterprise support][🏙️entsup-tidelift] subscription is "[never gonna let you down][🧮kloc]", and *supports* open source maintainers! |
64
+ | Comrade BDFL 🎖️ | [![Follow Me on LinkedIn][💖🖇linkedin-img]][💖🖇linkedin] [![Follow Me on Ruby.Social][💖🐘ruby-mast-img]][💖🐘ruby-mast] [![Follow Me on Bluesky][💖🦋bluesky-img]][💖🦋bluesky] [![Contact BDFL][🚂bdfl-contact-img]][🚂bdfl-contact] [![My technical writing][💖💁🏼‍♂️devto-img]][💖💁🏼‍♂️devto] |
65
+ | `...` 💖 | [![Find Me on WellFound:][💖✌️wellfound-img]][💖✌️wellfound] [![Find Me on CrunchBase][💖💲crunchbase-img]][💖💲crunchbase] [![My LinkTree][💖🌳linktree-img]][💖🌳linktree] [![More About Me][💖💁🏼‍♂️aboutme-img]][💖💁🏼‍♂️aboutme] |
66
+
67
+ ## Installation
68
+
69
+ Install the gem and add to your library's Gemfile by executing:
70
+
71
+ ```bash
72
+ bundle add stone_checksums
73
+ ```
74
+
75
+ Or add it as a development dependency to the gemspec:
76
+
77
+ ```ruby
78
+ Gem::Specification.new do |spec|
79
+ # ...
80
+ spec.add_development_dependency("stone_checksums", "~> 1.0")
81
+ end
82
+ ```
83
+
84
+ If bundler is not being used to manage dependencies, install the gem by executing:
85
+
86
+ ```bash
87
+ gem install stone_checksums
88
+ ```
89
+
90
+ ## Usage
91
+
92
+ Once installed you can use the shell script without any changes to your code.
93
+
94
+ ```shell
95
+ # prepend with `bundle exec` if gem was added to Gemfile instead of installed globally
96
+ gem_checksums
97
+ ```
98
+
99
+ However, if you want to use the bundled rake task you'll need to add it to your Rakefile first.
100
+
101
+ ```ruby
102
+ begin
103
+ require "stone_checksums"
104
+ GemChecksums.install_tasks
105
+ rescue LoadError
106
+ task("build:generate_checksums") do
107
+ warn("stone_checksums gem is not available")
108
+ end
109
+ end
110
+ ```
111
+
112
+ Then you can do:
113
+
114
+ ```shell
115
+ # prepend with `bundle exec` if gem was added to Gemfile instead of installed globally
116
+ rake build:generate_checksums
117
+ ```
118
+
119
+ It is different from, and improves on, the standard rake task in that it:
120
+ - does various checks to ensure the generated checksums will be valid
121
+ - does `git commit` the generated checksums
122
+
123
+ ### ENV variables
124
+
125
+ Behavior can be controlled by ENV variables!
126
+
127
+ - `GEM_CHECKSUMS_GIT_DRY_RUN` default value is `false`
128
+ - when `true` the `git commit` command will run with `--dry-run` flag
129
+ - when `true` the checksum files will be unstaged and deleted
130
+ - `GEM_CHECKSUMS_CHECKSUMS_DIR` default value is `checksums` (relative path)
131
+ - this directory will be created, relative to current working directory, if not present
132
+ - `GEM_CHECKSUMS_PACKAGE_DIR` default value is `pkg` (relative path)
133
+ - this directory will be searched for the latest gem package to generate checksums for
134
+
135
+ ### ARGV
136
+
137
+ If an argument is provided to the rake task it should be the path to
138
+ a specific `.gem` package you want to generate checksums for.
139
+
140
+ The script version does not accept arguments, and should be controlled by the ENV variables if needed.
141
+
142
+ ### How To: Release gem with checksums generated by `stone_checksums`
143
+
144
+ Generating checksums makes sense when you are building and releasing a gem, so how does it fit into that process?
145
+
146
+ NOTE: This is an example process which assumes your project has bundler binstubs, and a version.rb file,
147
+ with notes for `zsh` and `bash` shells.
148
+
149
+ 1. Run `bin/setup && bin/rake` as a tests, coverage, & linting sanity check
150
+ 2. Update the version number in `version.rb`
151
+ 3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`
152
+ 4. Run `git commit -am "🔖 Prepare release v<VERSION>"` to commit the changes
153
+ 5. Run `git push` to trigger the final CI pipeline before release, & merge PRs
154
+ - NOTE: Remember to [check your project's CI][🧪build]!
155
+ 6. Run `export GIT_TRUNK_BRANCH_NAME="$(git remote show origin | grep 'HEAD branch' | cut -d ' ' -f5)" && echo $GIT_TRUNK_BRANCH_NAME`
156
+ 7. Run `git checkout $GIT_TRUNK_BRANCH_NAME`
157
+ 8. Run `git pull origin $GIT_TRUNK_BRANCH_NAME` to ensure you will release the latest trunk code
158
+ 9. Set `SOURCE_DATE_EPOCH` so `rake build` and `rake release` use same timestamp, and generate same checksums
159
+ - Run `export SOURCE_DATE_EPOCH=$EPOCHSECONDS && echo $SOURCE_DATE_EPOCH`
160
+ - If the echo above has no output, then it didn't work.
161
+ - Note that you'll need the `zsh/datetime` module, if running `zsh`.
162
+ - In `bash` you can use `date +%s` instead, i.e. `export SOURCE_DATE_EPOCH=$(date +%s) && echo $SOURCE_DATE_EPOCH`
163
+ 10. Run `bundle exec rake build`
164
+ 11. Run `gem_checksums` (from this gem, and added to path in .envrc,
165
+ more context [1][🔒️rubygems-checksums-pr] and [2][🔒️rubygems-guides-pr]) to create SHA-256 and SHA-512 checksums
166
+ - Checksums will be committed automatically by the script, but not pushed
167
+ 12. Run `bundle exec rake release` which will create a git tag for the version,
168
+ push git commits and tags, and push the `.gem` file to [rubygems.org][💎rubygems]
169
+
170
+ [🧪build]: https://github.com/pboling/gem_checksums/actions
171
+ [💎rubygems]: https://rubygems.org
172
+ [🔒️rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
173
+ [🔒️rubygems-checksums-pr]: https://github.com/rubygems/rubygems/pull/6022
174
+ [🔒️rubygems-guides-pr]: https://github.com/rubygems/guides/pull/325
175
+
176
+ ### Too many steps?
177
+
178
+ If you don't follow the steps above you'll end up seeing this error:
179
+
180
+ ```
181
+ WARNING: Build time not provided via environment variable SOURCE_DATE_EPOCH.
182
+ To ensure consistent SHA-256 & SHA-512 checksums,
183
+ you must set this environment variable *before* building the gem.
184
+
185
+ IMPORTANT: After setting the build time, you *must re-build the gem*, i.e. bundle exec rake build, or gem build.
186
+
187
+ How to set the build time:
188
+
189
+ In zsh shell:
190
+ - export SOURCE_DATE_EPOCH=$EPOCHSECONDS && echo $SOURCE_DATE_EPOCH
191
+ - If the echo above has no output, then it didn't work.
192
+ - Note that you'll need the `zsh/datetime` module enabled.
193
+
194
+ In fish shell:
195
+ - set -x SOURCE_DATE_EPOCH (date +%s)
196
+ - echo $SOURCE_DATE_EPOCH
197
+
198
+ In bash shell:
199
+ - export SOURCE_DATE_EPOCH=$(date +%s) && echo $SOURCE_DATE_EPOCH`
200
+ ```
201
+
202
+ Just do what it says!
203
+
204
+ ## 🔐 Security
205
+
206
+ See [SECURITY.md][🔐security].
207
+
208
+ ## 🤝 Contributing
209
+
210
+ If you need some ideas of where to help, you could work on adding more code coverage,
211
+ or if it is already 💯 (see [below](#code-coverage)) check TODOs (see [below](#todos)),
212
+ or check [issues][🤝issues], or [PRs][🤝pulls],
213
+ or use the gem and think about how it could be better.
214
+
215
+ We [![Keep A Changelog][📗keep-changelog-img]][📗keep-changelog] so if you make changes, remember to update it.
216
+
217
+ See [CONTRIBUTING.md][🤝contributing] for more detailed instructions.
218
+
219
+ ### TODOs
220
+
221
+ - [ ] Prepend `rake build` task with check for `SOURCE_DATE_EPOCH` environment variable, and raise error if not set.
222
+
223
+ ### Code Coverage
224
+
225
+ [![Coverage Graph][🔑codecov-g♻️]][🔑codecov]
226
+
227
+ ### 🪇 Code of Conduct
228
+
229
+ Everyone interacting in this project's codebases, issue trackers,
230
+ chat rooms and mailing lists is expected to follow the [![Contributor Covenant 2.1][🪇conduct-img]][🪇conduct].
231
+
232
+ ## 🌈 Contributors
233
+
234
+ [![Contributors][🖐contributors-img]][🖐contributors]
235
+
236
+ Made with [contributors-img][🖐contrib-rocks].
237
+
238
+ Also see GitLab Contributors: [https://gitlab.com/pboling/gem_checksums/-/graphs/main][🚎contributors-gl]
239
+
240
+ ## ⭐️ Star History
241
+
242
+ <a href="https://star-history.com/#pboling/gem_checksums&Date">
243
+ <picture>
244
+ <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=pboling/gem_checksums&type=Date&theme=dark" />
245
+ <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=pboling/gem_checksums&type=Date" />
246
+ <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=pboling/gem_checksums&type=Date" />
247
+ </picture>
248
+ </a>
249
+
250
+ ## 📌 Versioning
251
+
252
+ This Library adheres to [![Semantic Versioning 2.0.0][📌semver-img]][📌semver].
253
+ Violations of this scheme should be reported as bugs.
254
+ Specifically, if a minor or patch version is released that breaks backward compatibility,
255
+ a new version should be immediately released that restores compatibility.
256
+ Breaking changes to the public API will only be introduced with new major versions.
257
+
258
+ ### 📌 Is "Platform Support" part of the public API?
259
+
260
+ Yes. But I'm obligated to include notes...
261
+
262
+ SemVer should, but doesn't explicitly, say that dropping support for specific Platforms
263
+ is a *breaking change* to an API.
264
+ It is obvious to many, but not all, and since the spec is silent, the bike shedding is endless.
265
+
266
+ > dropping support for a platform is both obviously and objectively a breaking change
267
+
268
+ - Jordan Harband (@ljharb) [in SemVer issue 716][📌semver-breaking]
269
+
270
+ To get a better understanding of how SemVer is intended to work over a project's lifetime,
271
+ read this article from the creator of SemVer:
272
+
273
+ - ["Major Version Numbers are Not Sacred"][📌major-versions-not-sacred]
274
+
275
+ As a result of this policy, and the interpretive lens used by the maintainer,
276
+ you can (and should) specify a dependency on these libraries using
277
+ the [Pessimistic Version Constraint][📌pvc] with two digits of precision.
278
+
279
+ For example:
280
+
281
+ ```ruby
282
+ spec.add_dependency("gem_checksums", "~> 1.1")
283
+ ```
284
+
285
+ See [CHANGELOG.md][📌changelog] for list of releases.
286
+
287
+ ## 📄 License
288
+
289
+ The gem is available as open source under the terms of
290
+ the [MIT License][📄license] [![License: MIT][📄license-img]][📄license-ref].
291
+ See [LICENSE.txt][📄license] for the official [Copyright Notice][📄copyright-notice-explainer].
292
+
293
+ ### © Copyright
294
+
295
+ <p>
296
+ Copyright (c) 2022 - 2025 Peter H. Boling,
297
+ <a href="https://railsbling.com">
298
+ RailsBling.com
299
+ <picture>
300
+ <img alt="Rails Bling" height="20" src="https://railsbling.com/images/logos/RailsBling-TrainLogo.svg" />
301
+ </picture>
302
+ </a>
303
+ </p>
304
+
305
+ ## 🤑 One more thing
306
+
307
+ You made it to the bottom of the page,
308
+ so perhaps you'll indulge me for another 20 seconds.
309
+ I maintain many dozens of gems, including this one,
310
+ because I want Ruby to be a great place for people to solve problems, big and small.
311
+ Please consider supporting my efforts via the giant yellow link below,
312
+ or one of the others at the head of this README.
313
+
314
+ [![Buy me a latte][🖇buyme-img]][🖇buyme]
315
+
316
+ [✇bundle-group-pattern]: https://gist.github.com/pboling/4564780
317
+ [⛳️gem-namespace]: https://github.com/pboling/gem_checksums/blob/main/lib/gem_checksums.rb
318
+ [⛳️namespace-img]: https://img.shields.io/badge/namespace-GemChecksums-brightgreen.svg?style=flat&logo=ruby&logoColor=white
319
+ [⛳️gem-name]: https://rubygems.org/gems/stone_checksums
320
+ [⛳️name-img]: https://img.shields.io/badge/name-stone__checksums-brightgreen.svg?style=flat&logo=rubygems&logoColor=red
321
+ [🚂bdfl-blog]: http://www.railsbling.com/tags/gem_checksums
322
+ [🚂bdfl-blog-img]: https://img.shields.io/badge/blog-railsbling-0093D0.svg?style=for-the-badge&logo=rubyonrails&logoColor=orange
323
+ [🚂bdfl-contact]: http://www.railsbling.com/contact
324
+ [🚂bdfl-contact-img]: https://img.shields.io/badge/Contact-BDFL-0093D0.svg?style=flat&logo=rubyonrails&logoColor=red
325
+ [💖🖇linkedin]: http://www.linkedin.com/in/peterboling
326
+ [💖🖇linkedin-img]: https://img.shields.io/badge/PeterBoling-LinkedIn-0B66C2?style=flat&logo=newjapanprowrestling
327
+ [💖✌️wellfound]: https://angel.co/u/peter-boling
328
+ [💖✌️wellfound-img]: https://img.shields.io/badge/peter--boling-orange?style=flat&logo=wellfound
329
+ [💖💲crunchbase]: https://www.crunchbase.com/person/peter-boling
330
+ [💖💲crunchbase-img]: https://img.shields.io/badge/peter--boling-purple?style=flat&logo=crunchbase
331
+ [💖🐘ruby-mast]: https://ruby.social/@galtzo
332
+ [💖🐘ruby-mast-img]: https://img.shields.io/mastodon/follow/109447111526622197?domain=https%3A%2F%2Fruby.social&style=flat&logo=mastodon&label=Ruby%20%40galtzo
333
+ [💖🦋bluesky]: https://galtzo.bsky.social
334
+ [💖🦋bluesky-img]: https://img.shields.io/badge/@galtzo.bsky.social-0285FF?style=flat&logo=bluesky&logoColor=white
335
+ [💖🌳linktree]: https://linktr.ee/galtzo
336
+ [💖🌳linktree-img]: https://img.shields.io/badge/galtzo-purple?style=flat&logo=linktree
337
+ [💖💁🏼‍♂️devto]: https://dev.to/galtzo
338
+ [💖💁🏼‍♂️devto-img]: https://img.shields.io/badge/dev.to-0A0A0A?style=flat&logo=devdotto&logoColor=white
339
+ [💖💁🏼‍♂️aboutme]: https://about.me/peter.boling
340
+ [💖💁🏼‍♂️aboutme-img]: https://img.shields.io/badge/about.me-0A0A0A?style=flat&logo=aboutme&logoColor=white
341
+ [👨🏼‍🏫expsup-upwork]: https://www.upwork.com/freelancers/~014942e9b056abdf86?mp_source=share
342
+ [👨🏼‍🏫expsup-upwork-img]: https://img.shields.io/badge/UpWork-13544E?style=for-the-badge&logo=Upwork&logoColor=white
343
+ [👨🏼‍🏫expsup-codementor]: https://www.codementor.io/peterboling?utm_source=github&utm_medium=button&utm_term=peterboling&utm_campaign=github
344
+ [👨🏼‍🏫expsup-codementor-img]: https://img.shields.io/badge/CodeMentor-Get_Help-1abc9c?style=for-the-badge&logo=CodeMentor&logoColor=white
345
+ [🏙️entsup-tidelift]: https://tidelift.com/subscription
346
+ [🏙️entsup-tidelift-img]: https://img.shields.io/badge/Tidelift_and_Sonar-Enterprise_Support-FD3456?style=for-the-badge&logo=sonar&logoColor=white
347
+ [🏙️entsup-tidelift-sonar]: https://blog.tidelift.com/tidelift-joins-sonar
348
+ [💁🏼‍♂️peterboling]: http://www.peterboling.com
349
+ [🚂railsbling]: http://www.railsbling.com
350
+ [📜src-gl-img]: https://img.shields.io/badge/GitLab-FBA326?style=for-the-badge&logo=Gitlab&logoColor=orange
351
+ [📜src-gl]: https://gitlab.com/pboling/gem_checksums/
352
+ [📜src-gh-img]: https://img.shields.io/badge/GitHub-238636?style=for-the-badge&logo=Github&logoColor=green
353
+ [📜src-gh]: https://github.com/pboling/gem_checksums
354
+ [📜docs-cr-rd-img]: https://img.shields.io/badge/RubyDoc-Current_Release-943CD2?style=for-the-badge&logo=readthedocs&logoColor=white
355
+ [📜docs-head-rd-img]: https://img.shields.io/badge/RubyDoc-HEAD-943CD2?style=for-the-badge&logo=readthedocs&logoColor=white
356
+ [📜wiki]: https://gitlab.com/pboling/gem_checksums/-/wikis/home
357
+ [📜wiki-img]: https://img.shields.io/badge/wiki-examples-943CD2.svg?style=for-the-badge&logo=Wiki&logoColor=white
358
+ [👽dl-rank]: https://rubygems.org/gems/stone_checksums
359
+ [👽dl-ranki]: https://img.shields.io/gem/rd/stone_checksums.svg
360
+ [👽oss-help]: https://www.codetriage.com/pboling/gem_checksums
361
+ [👽oss-helpi]: https://www.codetriage.com/pboling/gem_checksums/badges/users.svg
362
+ [👽version]: https://rubygems.org/gems/stone_checksums
363
+ [👽versioni]: https://img.shields.io/gem/v/stone_checksums.svg
364
+ [🔑cc-mnt]: https://codeclimate.com/github/pboling/gem_checksums/maintainability
365
+ [🔑cc-mnti♻️]: https://api.codeclimate.com/v1/badges/ff2234fcbe9051436f37/maintainability
366
+ [🔑cc-cov]: https://codeclimate.com/github/pboling/gem_checksums/test_coverage
367
+ [🔑cc-covi♻️]: https://api.codeclimate.com/v1/badges/ff2234fcbe9051436f37/test_coverage
368
+ [🔑codecov]: https://codecov.io/gh/pboling/gem_checksums
369
+ [🔑codecovi♻️]: https://codecov.io/gh/pboling/gem_checksums/branch/main/graph/badge.svg?token=iQykVGCFME
370
+ [🔑coveralls]: https://coveralls.io/github/pboling/gem_checksums?branch=main
371
+ [🔑coveralls-img]: https://coveralls.io/repos/github/pboling/gem_checksums/badge.svg?branch=main
372
+ [🔑depfu]: https://depfu.com/github/pboling/gem_checksums
373
+ [🔑depfui♻️]: https://badges.depfu.com/badges/85187dfdd2ecf7839b2ec78c64d2bf4e/count.svg
374
+ [🖐codeQL]: https://github.com/pboling/gem_checksums/security/code-scanning
375
+ [🖐codeQL-img]: https://github.com/pboling/gem_checksums/actions/workflows/codeql-analysis.yml/badge.svg
376
+ [🚎1-an-wf]: https://github.com/pboling/gem_checksums/actions/workflows/ancient.yml
377
+ [🚎1-an-wfi]: https://github.com/pboling/gem_checksums/actions/workflows/ancient.yml/badge.svg
378
+ [🚎2-cov-wf]: https://github.com/pboling/gem_checksums/actions/workflows/coverage.yml
379
+ [🚎2-cov-wfi]: https://github.com/pboling/gem_checksums/actions/workflows/coverage.yml/badge.svg
380
+ [🚎3-hd-wf]: https://github.com/pboling/gem_checksums/actions/workflows/heads.yml
381
+ [🚎3-hd-wfi]: https://github.com/pboling/gem_checksums/actions/workflows/heads.yml/badge.svg
382
+ [🚎4-lg-wf]: https://github.com/pboling/gem_checksums/actions/workflows/legacy.yml
383
+ [🚎4-lg-wfi]: https://github.com/pboling/gem_checksums/actions/workflows/legacy.yml/badge.svg
384
+ [🚎5-st-wf]: https://github.com/pboling/gem_checksums/actions/workflows/style.yml
385
+ [🚎5-st-wfi]: https://github.com/pboling/gem_checksums/actions/workflows/style.yml/badge.svg
386
+ [🚎6-s-wf]: https://github.com/pboling/gem_checksums/actions/workflows/supported.yml
387
+ [🚎6-s-wfi]: https://github.com/pboling/gem_checksums/actions/workflows/supported.yml/badge.svg
388
+ [🚎7-us-wf]: https://github.com/pboling/gem_checksums/actions/workflows/unsupported.yml
389
+ [🚎7-us-wfi]: https://github.com/pboling/gem_checksums/actions/workflows/unsupported.yml/badge.svg
390
+ [🚎8-ho-wf]: https://github.com/pboling/gem_checksums/actions/workflows/hoary.yml
391
+ [🚎8-ho-wfi]: https://github.com/pboling/gem_checksums/actions/workflows/hoary.yml/badge.svg
392
+ [🚎9-t-wf]: https://github.com/pboling/gem_checksums/actions/workflows/truffle.yml
393
+ [🚎9-t-wfi]: https://github.com/pboling/gem_checksums/actions/workflows/truffle.yml/badge.svg
394
+ [🚎10-j-wf]: https://github.com/pboling/gem_checksums/actions/workflows/jruby.yml
395
+ [🚎10-j-wfi]: https://github.com/pboling/gem_checksums/actions/workflows/jruby.yml/badge.svg
396
+ [🚎11-c-wf]: https://github.com/pboling/gem_checksums/actions/workflows/current.yml
397
+ [🚎11-c-wfi]: https://github.com/pboling/gem_checksums/actions/workflows/current.yml/badge.svg
398
+ [⛳liberapay-img]: https://img.shields.io/liberapay/patrons/pboling.svg?logo=liberapay
399
+ [⛳liberapay]: https://liberapay.com/pboling/donate
400
+ [🖇sponsor-img]: https://img.shields.io/badge/Sponsor_Me!-pboling.svg?style=social&logo=github
401
+ [🖇sponsor]: https://github.com/sponsors/pboling
402
+ [🖇polar-img]: https://polar.sh/embed/seeks-funding-shield.svg?org=pboling
403
+ [🖇polar]: https://polar.sh/pboling
404
+ [🖇kofi-img]: https://img.shields.io/badge/buy_me_coffee-donate-yellow.svg
405
+ [🖇kofi]: https://ko-fi.com/O5O86SNP4
406
+ [🖇patreon-img]: https://img.shields.io/badge/patreon-donate-yellow.svg
407
+ [🖇patreon]: https://patreon.com/galtzo
408
+ [💎ruby-2.2i]: https://img.shields.io/badge/Ruby-2.2-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
409
+ [💎ruby-2.3i]: https://img.shields.io/badge/Ruby-2.3-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
410
+ [💎ruby-2.4i]: https://img.shields.io/badge/Ruby-2.4-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
411
+ [💎ruby-2.5i]: https://img.shields.io/badge/Ruby-2.5-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
412
+ [💎ruby-2.6i]: https://img.shields.io/badge/Ruby-2.6-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
413
+ [💎ruby-2.7i]: https://img.shields.io/badge/Ruby-2.7-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
414
+ [💎ruby-3.0i]: https://img.shields.io/badge/Ruby-3.0-CC342D?style=for-the-badge&logo=ruby&logoColor=white
415
+ [💎ruby-3.1i]: https://img.shields.io/badge/Ruby-3.1-CC342D?style=for-the-badge&logo=ruby&logoColor=white
416
+ [💎ruby-3.2i]: https://img.shields.io/badge/Ruby-3.2-CC342D?style=for-the-badge&logo=ruby&logoColor=white
417
+ [💎ruby-3.3i]: https://img.shields.io/badge/Ruby-3.3-CC342D?style=for-the-badge&logo=ruby&logoColor=white
418
+ [💎ruby-c-i]: https://img.shields.io/badge/Ruby-current-CC342D?style=for-the-badge&logo=ruby&logoColor=green
419
+ [💎ruby-headi]: https://img.shields.io/badge/Ruby-HEAD-CC342D?style=for-the-badge&logo=ruby&logoColor=blue
420
+ [💎truby-22.3i]: https://img.shields.io/badge/Truffle_Ruby-22.3-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
421
+ [💎truby-23.0i]: https://img.shields.io/badge/Truffle_Ruby-23.0-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
422
+ [💎truby-23.1i]: https://img.shields.io/badge/Truffle_Ruby-23.1-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
423
+ [💎truby-c-i]: https://img.shields.io/badge/Truffle_Ruby-current-34BCB1?style=for-the-badge&logo=ruby&logoColor=green
424
+ [💎truby-headi]: https://img.shields.io/badge/Truffle_Ruby-HEAD-34BCB1?style=for-the-badge&logo=ruby&logoColor=blue
425
+ [💎jruby-9.1i]: https://img.shields.io/badge/JRuby-9.1-FBE742?style=for-the-badge&logo=ruby&logoColor=red
426
+ [💎jruby-9.2i]: https://img.shields.io/badge/JRuby-9.2-FBE742?style=for-the-badge&logo=ruby&logoColor=red
427
+ [💎jruby-9.3i]: https://img.shields.io/badge/JRuby-9.3-FBE742?style=for-the-badge&logo=ruby&logoColor=red
428
+ [💎jruby-c-i]: https://img.shields.io/badge/JRuby-current-FBE742?style=for-the-badge&logo=ruby&logoColor=green
429
+ [💎jruby-headi]: https://img.shields.io/badge/JRuby-HEAD-FBE742?style=for-the-badge&logo=ruby&logoColor=blue
430
+ [🤝issues]: https://github.com/pboling/gem_checksums/issues
431
+ [🤝pulls]: https://github.com/pboling/gem_checksums/pulls
432
+ [🤝contributing]: CONTRIBUTING.md
433
+ [🔑codecov-g♻️]: https://codecov.io/gh/pboling/gem_checksums/graphs/tree.svg?token=iQykVGCFME
434
+ [🖐contrib-rocks]: https://contrib.rocks
435
+ [🖐contributors]: https://github.com/pboling/gem_checksums/graphs/contributors
436
+ [🖐contributors-img]: https://contrib.rocks/image?repo=pboling/gem_checksums
437
+ [🚎contributors-gl]: https://gitlab.com/pboling/gem_checksums/-/graphs/main
438
+ [🪇conduct]: CODE_OF_CONDUCT.md
439
+ [🪇conduct-img]: https://img.shields.io/badge/Contributor_Covenant-2.1-4baaaa.svg
440
+ [📌pvc]: http://guides.rubygems.org/patterns/#pessimistic-version-constraint
441
+ [📌semver]: https://semver.org/spec/v2.0.0.html
442
+ [📌semver-img]: https://img.shields.io/badge/semver-2.0.0-FFDD67.svg?style=flat
443
+ [📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
444
+ [📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
445
+ [📌changelog]: CHANGELOG.md
446
+ [📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
447
+ [📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat
448
+ [🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
449
+ [🧮kloc-img]: https://img.shields.io/badge/KLOC-0.075-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
450
+ [🔐security]: SECURITY.md
451
+ [🔐security-img]: https://img.shields.io/badge/security-policy-brightgreen.svg?style=flat
452
+ [📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
453
+ [📄license]: LICENSE.txt
454
+ [📄license-ref]: https://opensource.org/licenses/MIT
455
+ [📄license-img]: https://img.shields.io/badge/License-MIT-green.svg
456
+ [📄ilo-declaration]: https://www.ilo.org/declaration/lang--en/index.htm
457
+ [📄ilo-declaration-img]: https://img.shields.io/badge/ILO_Fundamental_Principles-✓-brightgreen.svg?style=flat
458
+ [🚎yard-current]: http://rubydoc.info/gems/stone_checksums
459
+ [🚎yard-head]: https://rubydoc.info/github/pboling/gem_checksums/main
460
+ [🖇buyme-img]: https://img.buymeacoffee.com/button-api/?text=Buy%20me%20a%20latte&emoji=&slug=pboling&button_colour=FFDD00&font_colour=000000&font_family=Cookie&outline_colour=000000&coffee_colour=ffffff
461
+ [🖇buyme]: https://www.buymeacoffee.com/pboling
462
+ [🖇buyme-small-img]: https://img.shields.io/badge/Buy--Me--A--Coffee-✓-brightgreen.svg?style=flat
data/SECURITY.md ADDED
@@ -0,0 +1,21 @@
1
+ # Security Policy
2
+
3
+ ## Supported Versions
4
+
5
+ | Version | Supported |
6
+ |----------|-----------|
7
+ | 1.latest | ✅ |
8
+
9
+ ## Security contact information
10
+
11
+ To report a security vulnerability, please use the
12
+ [Tidelift security contact](https://tidelift.com/security).
13
+ Tidelift will coordinate the fix and disclosure.
14
+
15
+ ## Additional Support
16
+
17
+ If you are interested in support for versions older than the latest release,
18
+ please consider sponsoring the project / maintainer @ https://liberapay.com/pboling/donate,
19
+ or find other sponsorship links in the [README].
20
+
21
+ [README]: README.md
data/exe/gem_checksums ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+
5
+ require "gem_checksums"
6
+
7
+ GemChecksums.generate
@@ -0,0 +1,8 @@
1
+ # TODO: Override rake build task with check for SOURCE_DATE_EPOCH environment variable, and raise error if not set.
2
+
3
+ namespace :build do
4
+ desc "Generate both SHA256 & SHA512 checksums into the checksums directory, and git commit them"
5
+ task :generate_checksums do
6
+ GemChecksums.generate
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Load from a "rakelib" directory is automatic!
4
+ # Adding this library's custom directory of tasks as a "rakelib"
5
+ # directory makes them available.
6
+ abs_path = File.expand_path(__dir__)
7
+ rakelib = "#{abs_path}/rakelib"
8
+ Rake.add_rakelib(rakelib)
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module GemChecksums
4
+ module Version
5
+ VERSION = "1.0.0"
6
+ end
7
+ end
@@ -0,0 +1,171 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Std lib
4
+ require "digest/sha2"
5
+ require "fileutils"
6
+
7
+ # external gems
8
+ require "version_gem"
9
+
10
+ # this library's version
11
+ require_relative "gem_checksums/version"
12
+
13
+ # Primary namespace of this library
14
+ module GemChecksums
15
+ # Errors raised by this gem will use this class
16
+ class Error < StandardError; end
17
+
18
+ # Final clause of Regex `(?=\.gem)` is a positive lookahead assertion
19
+ # See: https://learnbyexample.github.io/Ruby_Regexp/lookarounds.html#positive-lookarounds
20
+ # Used to pattern match against a gem package name, which always ends with .gem.
21
+ # The positive lookahead ensures it is present, and prevents it from being captured.
22
+ VERSION_REGEX = /((\d+\.\d+\.\d+)([-.][0-9A-Za-z-]+)*)(?=\.gem)/.freeze
23
+ RUNNING_AS = File.basename($PROGRAM_NAME)
24
+ BUILD_TIME_ERROR_MESSAGE = "Environment variable SOURCE_DATE_EPOCH must be set. You'll need to rebuild the gem. See README.md of stone_checksums"
25
+ GIT_DRY_RUN_ENV = ENV.fetch("GEM_CHECKSUMS_GIT_DRY_RUN", "false").casecmp("true") == 0
26
+ CHECKSUMS_DIR = ENV.fetch("GEM_CHECKSUMS_CHECKSUMS_DIR", "checksums")
27
+ PACKAGE_DIR = ENV.fetch("GEM_CHECKSUMS_PACKAGE_DIR", "pkg")
28
+ BUILD_TIME_WARNING = <<-BUILD_TIME_WARNING
29
+ WARNING: Build time not provided via environment variable SOURCE_DATE_EPOCH.
30
+ To ensure consistent SHA-256 & SHA-512 checksums,
31
+ you must set this environment variable *before* building the gem.
32
+
33
+ IMPORTANT: After setting the build time, you *must re-build the gem*, i.e. bundle exec rake build, or gem build.
34
+
35
+ How to set the build time:
36
+
37
+ In zsh shell:
38
+ - export SOURCE_DATE_EPOCH=$EPOCHSECONDS && echo $SOURCE_DATE_EPOCH
39
+ - If the echo above has no output, then it didn't work.
40
+ - Note that you'll need the `zsh/datetime` module enabled.
41
+
42
+ In fish shell:
43
+ - set -x SOURCE_DATE_EPOCH (date +%s)
44
+ - echo $SOURCE_DATE_EPOCH
45
+
46
+ In bash shell:
47
+ - export SOURCE_DATE_EPOCH=$(date +%s) && echo $SOURCE_DATE_EPOCH`
48
+
49
+ BUILD_TIME_WARNING
50
+
51
+ # Make this gem's rake tasks available in your Rakefile:
52
+ #
53
+ # require "gem_checksums"
54
+ # GemChecksums.install_tasks
55
+ #
56
+ def install_tasks
57
+ load("gem_checksums/tasks.rb")
58
+ end
59
+ module_function :install_tasks
60
+
61
+ # Script, stolen from myself, from https://github.com/rubygems/guides/pull/325
62
+ # NOTE: SOURCE_DATE_EPOCH must be set in your environment prior to building the gem.
63
+ # This ensures that the gem build, and the gem checksum will use the same timestamp,
64
+ # and thus will match the SHA-256 checksum generated for every gem on Rubygems.org.
65
+ def generate(git_dry_run: false)
66
+ build_time = ENV.fetch("SOURCE_DATE_EPOCH", "")
67
+ build_time_missing = !(build_time =~ /\d{10,}/)
68
+ git_dry_run_flag = (git_dry_run || GIT_DRY_RUN_ENV) ? "--dry-run" : nil
69
+ warn("Will run git commit with --dry-run") if git_dry_run_flag
70
+
71
+ if build_time_missing
72
+ warn(BUILD_TIME_WARNING)
73
+ raise Error, BUILD_TIME_ERROR_MESSAGE
74
+ end
75
+
76
+ gem_path_parts =
77
+ case RUNNING_AS
78
+ when "rake", "gem_checksums"
79
+ first_arg = ARGV.first
80
+ first_arg.respond_to?(:split) ? first_arg.split("/") : []
81
+ else # e.g. "rspec"
82
+ []
83
+ end
84
+
85
+ if gem_path_parts.any?
86
+ gem_name = gem_path_parts.last
87
+ gem_pkg = File.join(gem_path_parts)
88
+ puts "Looking for: #{gem_pkg.inspect}"
89
+ gems = Dir[gem_pkg]
90
+ raise Error, "Unable to find gem #{gem_pkg}" if gems.empty?
91
+
92
+ puts "Found: #{gems.inspect}"
93
+ else
94
+ gem_pkgs = File.join(PACKAGE_DIR, "*.gem")
95
+ puts "Looking for: #{gem_pkgs.inspect}"
96
+ gems = Dir[gem_pkgs]
97
+ raise Error, "Unable to find gems #{gem_pkgs}" if gems.empty?
98
+
99
+ # Sort by newest last
100
+ # [ "my_gem-2.3.9.gem", "my_gem-2.3.11.pre.alpha.4.gem", "my_gem-2.3.15.gem", ... ]
101
+ gems.sort_by! { |gem| Gem::Version.new(gem[VERSION_REGEX]) }
102
+ gem_pkg = gems.last
103
+ gem_path_parts = gem_pkg.split("/")
104
+ gem_name = gem_path_parts.last
105
+ puts "Found: #{gems.length} gems; latest is #{gem_name}"
106
+ end
107
+
108
+ pkg_bits = File.read(gem_pkg)
109
+
110
+ # SHA-512 digest is 8 64-bit words
111
+ digest512_64bit = Digest::SHA512.new.hexdigest(pkg_bits)
112
+ digest512_64bit_path = "#{CHECKSUMS_DIR}/#{gem_name}.sha512"
113
+ Dir.mkdir(CHECKSUMS_DIR) unless Dir.exist?(CHECKSUMS_DIR)
114
+ File.write(digest512_64bit_path, digest512_64bit)
115
+
116
+ # SHA-256 digest is 8 32-bit words
117
+ digest256_32bit = Digest::SHA256.new.hexdigest(pkg_bits)
118
+ digest256_32bit_path = "#{CHECKSUMS_DIR}/#{gem_name}.sha256"
119
+ File.write(digest256_32bit_path, digest256_32bit)
120
+
121
+ version = gem_name[VERSION_REGEX]
122
+
123
+ git_cmd = <<-GIT_MSG.rstrip
124
+ git add #{CHECKSUMS_DIR}/* && \
125
+ git commit #{git_dry_run_flag} -m "🔒️ Checksums for v#{version}"
126
+ GIT_MSG
127
+
128
+ if git_dry_run_flag
129
+ git_cmd += <<-CLEANUP_MSG
130
+ && \
131
+ echo "Cleaning up in dry run mode" && \
132
+ git reset #{digest512_64bit_path} && \
133
+ git reset #{digest256_32bit_path} && \
134
+ rm -f #{digest512_64bit_path} && \
135
+ rm -f #{digest256_32bit_path}
136
+ CLEANUP_MSG
137
+ end
138
+
139
+ puts <<-RESULTS
140
+ [ GEM: #{gem_name} ]
141
+ [ VERSION: #{version} ]
142
+ [ GEM PKG LOCATION: #{gem_pkg} ]
143
+ [ CHECKSUM SHA-256: #{digest256_32bit} ]
144
+ [ CHECKSUM SHA-512: #{digest512_64bit} ]
145
+ [ CHECKSUM SHA-256 PATH: #{digest256_32bit_path} ]
146
+ [ CHECKSUM SHA-512 PATH: #{digest512_64bit_path} ]
147
+
148
+ ... Running ...
149
+
150
+ #{git_cmd}
151
+ RESULTS
152
+
153
+ if git_dry_run_flag
154
+ %x{#{git_cmd}}
155
+ else
156
+ # `exec` will replace the current process with the git process, and exit.
157
+ # Within the generate method, Ruby code placed after the `exec` *will not be run*:
158
+ # See: https://www.akshaykhot.com/call-shell-commands-in-ruby
159
+ # But we can't exit the process when testing from RSpec,
160
+ # since that would exit the parent RSpec process
161
+ exec(git_cmd)
162
+ end
163
+ end
164
+ module_function :generate
165
+ end
166
+
167
+ GemChecksums::Version.class_eval do
168
+ extend VersionGem::Basic
169
+ end
170
+
171
+ GemChecksums.install_tasks if GemChecksums::RUNNING_AS == "rake"
@@ -0,0 +1,2 @@
1
+ # RubyGems disallowed pushing a gem called `gem_checksums`, hence the name games.
2
+ require_relative "gem_checksums"
@@ -0,0 +1,4 @@
1
+ module GemChecksums
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
data.tar.gz.sig ADDED
Binary file
metadata ADDED
@@ -0,0 +1,211 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: stone_checksums
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Peter Boling
8
+ bindir: exe
9
+ cert_chain:
10
+ - |
11
+ -----BEGIN CERTIFICATE-----
12
+ MIIEgDCCAuigAwIBAgIBATANBgkqhkiG9w0BAQsFADBDMRUwEwYDVQQDDAxwZXRl
13
+ ci5ib2xpbmcxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkW
14
+ A2NvbTAeFw0yNDA5MjAwODU4NDJaFw0yNTA5MjAwODU4NDJaMEMxFTATBgNVBAMM
15
+ DHBldGVyLmJvbGluZzEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPy
16
+ LGQBGRYDY29tMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAjrxsKObI
17
+ rFQjBpzvVfqnT6JlF8/pkpgEEjFh7ex3zIerfuHzZvSrx+sRDGxQ8koWWG0Wjx8s
18
+ wkBZ5dIqvl0g3sWP5asa28u/09opxkQTC1Ao77iYxcBcwoCe/Dpf1m4Q/m6oH0kL
19
+ 2AZVNJQL3UkqAcLS0tsj/s/jAKnVlsaZZE5gQiIIi8HtkvSsajtx+Cq2AxDvcWvV
20
+ /CliD+pmzYkTjvjwGm8yeyFGGGgrisJMryiZdZlkTwrQSjCzudIKbLeuG8Se4JTD
21
+ TAcT+rPubr27v1jwmtIjtiot3rf4nof7LHLb122a/0VR7cC7xPLnXw0Cq1BShvoq
22
+ /GKRdSwMNinTOGkFTK1gKnjN+3iD4zyXU3XO3CXoTr+Ju8fXPN1x4tpOMgbv8dme
23
+ WbcQMOH9ZjmA5w0bSVRL1c3NhRRpUzrKTNXBEvqOyWjUnintxWKj+cRXx+z+dUgI
24
+ dL3kj68fcsiTgl75In3C485pnCMmq1eLuVoiy3jkLNOn2lHeLt9ZK63LAgMBAAGj
25
+ fzB9MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBRhfc+2UaVYd74p
26
+ yJ1JclGiUYN8+jAhBgNVHREEGjAYgRZwZXRlci5ib2xpbmdAZ21haWwuY29tMCEG
27
+ A1UdEgQaMBiBFnBldGVyLmJvbGluZ0BnbWFpbC5jb20wDQYJKoZIhvcNAQELBQAD
28
+ ggGBAA4fLU2+mQ++jBhVM2IeyvQdw1nm+0thkH4Ldv8ZOBm5ZxCPGIMoYliDDzg4
29
+ 4JDFxZR1wR4sdrz/K5tWtEkN23SKzopwbNb1NIQRSLQ7nOoc+4bkuz9xwKinmIvF
30
+ D+5qsl2S27WLKFreMDtGoh0CREIMBUxU4rGTh0gtzmweGR+fnOShg4Jo0kxrjU5h
31
+ uYk/uVE+bn/jOEGs43GvKXZLyshpBrZjQ+ArbvxDht5t35zbSxerbUxUPZUbXUCW
32
+ tTyh38a9UYjAAHvnh6Y4Fi9wd4/pGNsektrzB3z/zlVj4YF2TMLX9XfNJWEGRGpO
33
+ sSkLYdtEX1WQAmuZtActVW2cL3HdQaRbiv7VbfpA0eSk0ZdZHvBCl516ZZu10uX6
34
+ 82W1mg6fuezdpeBOiXwrEbZSt/oGiF4V511F6nd55p0okwHc/6nS10F/3aKJ4gwC
35
+ I5o+DRfXQHqKucx1ldFHvI2rE/kSCWqGTHN2eyu1sqCPeOoIMxrltJhaejKPkxqj
36
+ zaF9Og==
37
+ -----END CERTIFICATE-----
38
+ date: 2025-02-24 00:00:00.000000000 Z
39
+ dependencies:
40
+ - !ruby/object:Gem::Dependency
41
+ name: version_gem
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 1.1.5
47
+ - - "<"
48
+ - !ruby/object:Gem::Version
49
+ version: '3'
50
+ type: :runtime
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 1.1.5
57
+ - - "<"
58
+ - !ruby/object:Gem::Version
59
+ version: '3'
60
+ - !ruby/object:Gem::Dependency
61
+ name: rspec
62
+ requirement: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - "~>"
65
+ - !ruby/object:Gem::Version
66
+ version: '3.13'
67
+ type: :development
68
+ prerelease: false
69
+ version_requirements: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - "~>"
72
+ - !ruby/object:Gem::Version
73
+ version: '3.13'
74
+ - !ruby/object:Gem::Dependency
75
+ name: rspec-block_is_expected
76
+ requirement: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: '1.0'
81
+ type: :development
82
+ prerelease: false
83
+ version_requirements: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: '1.0'
88
+ - !ruby/object:Gem::Dependency
89
+ name: rspec-pending_for
90
+ requirement: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - "~>"
93
+ - !ruby/object:Gem::Version
94
+ version: '0.1'
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: 0.1.16
98
+ type: :development
99
+ prerelease: false
100
+ version_requirements: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: '0.1'
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: 0.1.16
108
+ - !ruby/object:Gem::Dependency
109
+ name: rspec-stubbed_env
110
+ requirement: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - "~>"
113
+ - !ruby/object:Gem::Version
114
+ version: '1.0'
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: 1.0.1
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '1.0'
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ version: 1.0.1
128
+ - !ruby/object:Gem::Dependency
129
+ name: rake
130
+ requirement: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - "~>"
133
+ - !ruby/object:Gem::Version
134
+ version: '13.0'
135
+ type: :development
136
+ prerelease: false
137
+ version_requirements: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - "~>"
140
+ - !ruby/object:Gem::Version
141
+ version: '13.0'
142
+ description: |-
143
+ Generate both SHA256 & SHA512 checksums into the checksums directory, and git commit them.
144
+ gem install stone_checksums
145
+ Then, use the rake task or the script:
146
+ rake build:generate_checksums
147
+ gem_checksums
148
+ Control options with ENV variables!
149
+ email:
150
+ - peter.boling@gmail.com
151
+ executables:
152
+ - gem_checksums
153
+ extensions: []
154
+ extra_rdoc_files:
155
+ - CHANGELOG.md
156
+ - CODE_OF_CONDUCT.md
157
+ - CONTRIBUTING.md
158
+ - LICENSE.txt
159
+ - README.md
160
+ - SECURITY.md
161
+ files:
162
+ - CHANGELOG.md
163
+ - CODE_OF_CONDUCT.md
164
+ - CONTRIBUTING.md
165
+ - LICENSE.txt
166
+ - README.md
167
+ - SECURITY.md
168
+ - exe/gem_checksums
169
+ - lib/gem_checksums.rb
170
+ - lib/gem_checksums/rakelib/gem_checksums.rake
171
+ - lib/gem_checksums/tasks.rb
172
+ - lib/gem_checksums/version.rb
173
+ - lib/stone_checksums.rb
174
+ - sig/gem_checksums.rbs
175
+ homepage: https://github.com/pboling/gem_checksums
176
+ licenses:
177
+ - MIT
178
+ metadata:
179
+ homepage_uri: https://railsbling.com/tags/stone_checksums/
180
+ source_code_uri: https://github.com/pboling/gem_checksums/tree/v1.0.0
181
+ changelog_uri: https://github.com/pboling/gem_checksums/blob/v1.0.0/CHANGELOG.md
182
+ bug_tracker_uri: https://github.com/pboling/gem_checksums/issues
183
+ documentation_uri: https://www.rubydoc.info/gems/stone_checksums/1.0.0
184
+ wiki_uri: https://github.com/pboling/gem_checksums/wiki
185
+ funding_uri: https://liberapay.com/pboling
186
+ rubygems_mfa_required: 'true'
187
+ rdoc_options:
188
+ - "--title"
189
+ - stone_checksums - Generate both SHA256 & SHA512 checksums of RubyGem libraries
190
+ - "--main"
191
+ - README.md
192
+ - "--line-numbers"
193
+ - "--inline-source"
194
+ - "--quiet"
195
+ require_paths:
196
+ - lib
197
+ required_ruby_version: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: 2.2.0
202
+ required_rubygems_version: !ruby/object:Gem::Requirement
203
+ requirements:
204
+ - - ">="
205
+ - !ruby/object:Gem::Version
206
+ version: '0'
207
+ requirements: []
208
+ rubygems_version: 3.6.4
209
+ specification_version: 4
210
+ summary: Generate both SHA256 & SHA512 checksums of RubyGem libraries
211
+ test_files: []
metadata.gz.sig ADDED
Binary file