stone_checksums 1.0.9 → 1.0.11
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +56 -4
- data/README.md +32 -57
- data/lib/gem_checksums.rb +21 -1
- data/lib/stone_checksums/version.rb +1 -1
- data/lib/stone_checksums.rb +9 -0
- data/sig/stone_checksums.rbs +1 -0
- data.tar.gz.sig +0 -0
- metadata +24 -24
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a0c15617a844a6ff087841198d345d5fd0aa8c4eb0e79b6ae0551afaf505ae83
|
|
4
|
+
data.tar.gz: 2e8d2704f9b21aa3a7f58d26425aaf7f19b18b4551fdb0222c36f800f4592e8d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b7862a96776efd5e81d3af931bdd40c707f0d776f35ee1db50dc1b4e12e4f8beabb0b8841cdd7740bf3b27a3acd47e35c6fd321de196167de5462bda8ba950c2
|
|
7
|
+
data.tar.gz: 125024364af0c573f9e28f14748c55c6cd07bf8b3698489916b6924c188033750ce4c079345e9a7e2286ca41d946a0bc8e91ee2ff84b90c5e871e244109ad2a9
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/CHANGELOG.md
CHANGED
|
@@ -30,6 +30,57 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
30
30
|
|
|
31
31
|
### Security
|
|
32
32
|
|
|
33
|
+
## [1.0.11] - 2026-11-15
|
|
34
|
+
|
|
35
|
+
- TAG: [v1.0.11][1.0.11t]
|
|
36
|
+
- COVERAGE: 100.00% -- 140/140 lines in 8 files
|
|
37
|
+
- BRANCH COVERAGE: 97.92% -- 47/48 branches in 8 files
|
|
38
|
+
- 65.38% documented
|
|
39
|
+
|
|
40
|
+
### Changed
|
|
41
|
+
|
|
42
|
+
- [kc] kettle-jem/prepare: updated 9 project files:
|
|
43
|
+
- dependencies (9)
|
|
44
|
+
|
|
45
|
+
- [kc] kettle-jem/template: updated 16 project files:
|
|
46
|
+
- code and tests (1)
|
|
47
|
+
- dependencies (3)
|
|
48
|
+
- documentation (1)
|
|
49
|
+
- other (3)
|
|
50
|
+
- workflows (8)
|
|
51
|
+
|
|
52
|
+
## [1.0.10] - 2026-11-08
|
|
53
|
+
|
|
54
|
+
- TAG: [v1.0.10][1.0.10t]
|
|
55
|
+
- COVERAGE: 100.00% -- 129/129 lines in 8 files
|
|
56
|
+
- BRANCH COVERAGE: 97.62% -- 41/42 branches in 8 files
|
|
57
|
+
- 62.50% documented
|
|
58
|
+
|
|
59
|
+
### Added
|
|
60
|
+
|
|
61
|
+
- kettle-jem-template-20260913-001 - Templating now also surfaces a review
|
|
62
|
+
entry in `dependency_conflicts.resolve` when a direct development
|
|
63
|
+
dependency doesn't support one or more of this project's declared
|
|
64
|
+
`engines:` and has no template-managed modular home (e.g. `sqlite3` on
|
|
65
|
+
`jruby`). Review each entry and pick a resolution per the project's own
|
|
66
|
+
engine support needs.
|
|
67
|
+
|
|
68
|
+
### Changed
|
|
69
|
+
|
|
70
|
+
- [kc] kettle-jem/prepare: updated 35 project files:
|
|
71
|
+
- configuration (2)
|
|
72
|
+
- dependencies (33)
|
|
73
|
+
- [kc] kettle-jem/template: updated 80 project files:
|
|
74
|
+
- code and tests (3)
|
|
75
|
+
- dependencies (8)
|
|
76
|
+
- documentation (3)
|
|
77
|
+
- other (7)
|
|
78
|
+
- workflows (59)
|
|
79
|
+
|
|
80
|
+
### Fixed
|
|
81
|
+
|
|
82
|
+
- stone_checksums: use a Conventional Commit type/scope followed by a Gitmoji for generated checksum commits.
|
|
83
|
+
|
|
33
84
|
## [1.0.9] - 2026-09-11
|
|
34
85
|
|
|
35
86
|
- TAG: [v1.0.9][1.0.9t]
|
|
@@ -116,9 +167,6 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
116
167
|
missing canonical version spec when a project only has shim namespace version
|
|
117
168
|
specs.
|
|
118
169
|
|
|
119
|
-
- kettle-jem-template-20260729-001 - Generated JRuby 9.4 workflows now use the
|
|
120
|
-
legacy manual bundle install path, avoiding setup-time Bundler full-index
|
|
121
|
-
failures against `gem.coop`.
|
|
122
170
|
- Restored the canonical `StoneChecksums::Version` spec so
|
|
123
171
|
`lib/stone_checksums/version_gem.rb` is covered by the release suite.
|
|
124
172
|
|
|
@@ -276,7 +324,11 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
276
324
|
|
|
277
325
|
- Initial release
|
|
278
326
|
|
|
279
|
-
[Unreleased]: https://github.com/galtzo-floss/stone_checksums/compare/v1.0.
|
|
327
|
+
[Unreleased]: https://github.com/galtzo-floss/stone_checksums/compare/v1.0.11...HEAD
|
|
328
|
+
[1.0.11]: https://github.com/galtzo-floss/stone_checksums/compare/v1.0.10...v1.0.11
|
|
329
|
+
[1.0.11t]: https://github.com/galtzo-floss/stone_checksums/releases/tag/v1.0.11
|
|
330
|
+
[1.0.10]: https://github.com/galtzo-floss/stone_checksums/compare/v1.0.9...v1.0.10
|
|
331
|
+
[1.0.10t]: https://github.com/galtzo-floss/stone_checksums/releases/tag/v1.0.10
|
|
280
332
|
[1.0.9]: https://github.com/galtzo-floss/stone_checksums/compare/v1.0.8...v1.0.9
|
|
281
333
|
[1.0.9t]: https://github.com/galtzo-floss/stone_checksums/releases/tag/v1.0.9
|
|
282
334
|
[1.0.8]: https://github.com/galtzo-floss/stone_checksums/compare/v1.0.7...v1.0.8
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<a href="https://github.com/galtzo-floss"><img alt="galtzo-floss Logo by GitHub" src="https://github.com/galtzo-floss.png?size=192" width="14%" align="right"/></a>
|
|
2
2
|
|
|
3
|
-
#
|
|
3
|
+
# 🗿 StoneChecksums
|
|
4
4
|
|
|
5
5
|
[![Version][👽versioni]][👽version] [![Ruby Users Forum][✉️ruby-forum-top-img]][✉️ruby-forum] [![GitHub tag (latest SemVer)][⛳️tag-img]][⛳️tag] [![License: MIT][📄license-img]][📄license] [![Total downloads][👽dl-ranki]][👽dl-rank] [![CodeCov Test Coverage][🏀codecovi]][🏀codecov] [![Coveralls Test Coverage][🏀coveralls-img]][🏀coveralls] [![QLTY Test Coverage][🏀qlty-covi]][🏀qlty-cov] [![QLTY Maintainability][🏀qlty-mnti]][🏀qlty-mnt] [![CI Heads][🚎3-hd-wfi]][🚎3-hd-wf] [![CI Runtime Dependencies @ HEAD][🚎12-crh-wfi]][🚎12-crh-wf] [![CI Current][🚎11-c-wfi]][🚎11-c-wf] [![CI Truffle Ruby][🚎9-t-wfi]][🚎9-t-wf] [![CI JRuby][🚎10-j-wfi]][🚎10-j-wf] [![Deps Locked][🚎13-🔒️-wfi]][🚎13-🔒️-wf] [![Deps Unlocked][🚎14-🔓️-wfi]][🚎14-🔓️-wf] [![CI Test Coverage][🚎2-cov-wfi]][🚎2-cov-wf] [![CI Style][🚎5-st-wfi]][🚎5-st-wf] [![Apache SkyWalking Eyes License Compatibility Check][🚎15-🪪-wfi]][🚎15-🪪-wf]
|
|
6
6
|
|
|
@@ -22,7 +22,7 @@ I've summarized my thoughts in [this blog post](https://dev.to/galtzo/hostile-ta
|
|
|
22
22
|
## 🌻 Synopsis <a href="https://discord.gg/3qme4XHNKN"><img alt="Galtzo FLOSS Logo by Aboling0, CC BY-SA 4.0" src="https://logos.galtzo.com/assets/images/galtzo-floss/avatar-128px.svg" width="8%" align="right"/></a> <a href="https://ruby-toolbox.com"><img alt="ruby-lang Logo, Yukihiro Matsumoto, Ruby Visual Identity Team, CC BY-SA 2.5" src="https://logos.galtzo.com/assets/images/ruby-lang/avatar-128px.svg" width="8%" align="right"/></a>
|
|
23
23
|
|
|
24
24
|
Generate SHA-256 and SHA-512 checksums of a rubygem library,
|
|
25
|
-
and commit them to your repository.
|
|
25
|
+
and commit them to your repository with a `chore(checksums): 🔒️ ...` subject.
|
|
26
26
|
The SHA-256 will match the shown for each gem published to RubyGems.org.
|
|
27
27
|
|
|
28
28
|
```console
|
|
@@ -36,8 +36,8 @@ bin/generate_checksums
|
|
|
36
36
|
|
|
37
37
|
| Tokens to Remember | [![Gem name][⛳️name-img]][⛳️gem-name] [![Gem namespace][⛳️namespace-img]][⛳️gem-namespace] |
|
|
38
38
|
|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
39
|
-
| Works with JRuby | [![JRuby
|
|
40
|
-
| Works with Truffle Ruby | [![Truffle Ruby
|
|
39
|
+
| Works with JRuby | [![JRuby 10.0 Compat][💎jruby-10.0i]][🚎jruby-10.0-wf] [![JRuby current Compat][💎jruby-c-i]][🚎10-j-wf] [![JRuby HEAD Compat][💎jruby-headi]][🚎3-hd-wf]|
|
|
40
|
+
| Works with Truffle Ruby | [![Truffle Ruby 33.0 Compat][💎truby-33.0i]][🚎truby-33.0-wf] [![Truffle Ruby current Compat][💎truby-c-i]][🚎9-t-wf]|
|
|
41
41
|
| Works with MRI Ruby 4 | [![Ruby current Compat][💎ruby-c-i]][🚎11-c-wf] [![Ruby HEAD Compat][💎ruby-headi]][🚎3-hd-wf]|
|
|
42
42
|
| Works with MRI Ruby 3 | [![Ruby 3.0 Compat][💎ruby-3.0i]][🚎ruby-3.0-wf] [![Ruby 3.1 Compat][💎ruby-3.1i]][🚎ruby-3.1-wf] [![Ruby 3.2 Compat][💎ruby-3.2i]][🚎ruby-3.2-wf] [![Ruby 3.3 Compat][💎ruby-3.3i]][🚎ruby-3.3-wf] [![Ruby 3.4 Compat][💎ruby-3.4i]][🚎ruby-3.4-wf]|
|
|
43
43
|
| Works with MRI Ruby 2 | ![Ruby 2.2 Compat][💎ruby-2.2i] ![Ruby 2.3 Compat][💎ruby-2.3i] <br/> [![Ruby 2.4 Compat][💎ruby-2.4i]][🚎ruby-2.4-wf] [![Ruby 2.5 Compat][💎ruby-2.5i]][🚎ruby-2.5-wf] [![Ruby 2.6 Compat][💎ruby-2.6i]][🚎ruby-2.6-wf] [![Ruby 2.7 Compat][💎ruby-2.7i]][🚎ruby-2.7-wf]|
|
|
@@ -51,11 +51,12 @@ bin/generate_checksums
|
|
|
51
51
|
|
|
52
52
|
### Compatibility
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
The gem's declared runtime compatibility floor is MRI Ruby 2.2.0+, with concordant releases of JRuby and TruffleRuby.
|
|
55
55
|
CI workflows and Appraisals are generated for MRI Ruby 2.4+.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
The current MRI CI lane runs on Linux and macOS.
|
|
57
|
+
The test floor is configured by `ruby.test_minimum` in `.kettle-jem.yml`.
|
|
58
|
+
When it is higher than the runtime floor, older runtime-compatible Rubies are
|
|
59
|
+
not covered by the generated CI or Appraisal matrix.
|
|
59
60
|
|
|
60
61
|
<a href="https://github.com/kettle-dev"><img alt="kettle-dev Logo by Aboling0, CC BY-SA 4.0" src="https://logos.galtzo.com/assets/images/kettle-dev/avatar-128px.svg" width="14%" align="right"/></a>
|
|
61
62
|
|
|
@@ -92,29 +93,12 @@ The _amazing_ test matrix is powered by the kettle-dev stack.
|
|
|
92
93
|
|
|
93
94
|
### Enterprise Support
|
|
94
95
|
|
|
95
|
-
[
|
|
96
|
+
For enterprise support from the maintainer, use [Upwork][👨🏼🏫expsup-upwork] or [CodeMentor][👨🏼🏫expsup-codementor].
|
|
96
97
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
<details markdown="1">
|
|
100
|
-
<summary>Need enterprise-level guarantees?</summary>
|
|
101
|
-
|
|
102
|
-
The maintainers of this and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use.
|
|
103
|
-
|
|
104
|
-
[![Get help from me on Tidelift][🏙️entsup-tidelift-img]][🏙️entsup-tidelift]
|
|
105
|
-
|
|
106
|
-
- 💡Subscribe for support guarantees covering _all_ your FLOSS dependencies
|
|
107
|
-
- 💡Tidelift is part of [Sonar][🏙️entsup-tidelift-sonar]
|
|
108
|
-
- 💡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
|
|
109
|
-
|
|
110
|
-
Alternatively:
|
|
98
|
+
Other support channels:
|
|
111
99
|
|
|
112
100
|
- [![Ruby Users Forum][✉️ruby-forum-img]][✉️ruby-forum]
|
|
113
101
|
- [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
|
|
114
|
-
- [![Get help from me on Upwork][👨🏼🏫expsup-upwork-img]][👨🏼🏫expsup-upwork]
|
|
115
|
-
- [![Get help from me on Codementor][👨🏼🏫expsup-codementor-img]][👨🏼🏫expsup-codementor]
|
|
116
|
-
|
|
117
|
-
</details>
|
|
118
102
|
|
|
119
103
|
## ✨ Installation
|
|
120
104
|
|
|
@@ -143,6 +127,18 @@ Configuration env vars:
|
|
|
143
127
|
### Generate Gem Checksums (SHA-256 and SHA-512)
|
|
144
128
|
|
|
145
129
|
This library helps you generate checksums for your built gem and commit them.
|
|
130
|
+
The generated commit subject uses Conventional Commits and Gitmoji, for example
|
|
131
|
+
`chore(checksums): 🔒️ update checksums for v1.2.3`.
|
|
132
|
+
|
|
133
|
+
To verify an existing package against `checksums/<package>.sha256`:
|
|
134
|
+
|
|
135
|
+
```ruby
|
|
136
|
+
require "stone_checksums"
|
|
137
|
+
StoneChecksums.validate_sha256!("pkg/your_gem-1.2.3.gem")
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
The method returns `true` on a match and raises `GemChecksums::Error` if a file
|
|
141
|
+
is missing or the digest differs. Pass `checksums_dir:` to use another directory.
|
|
146
142
|
|
|
147
143
|
- Bundler >= 2.7.0: No SOURCE_DATE_EPOCH needed. Bundler now uses a constant timestamp internally, making builds reproducible by default.
|
|
148
144
|
- Bundler < 2.7.0: You must set SOURCE_DATE_EPOCH before building the gem to get deterministic checksums, or upgrade Bundler.
|
|
@@ -185,19 +181,18 @@ We welcome both individual and corporate sponsors! We also offer a
|
|
|
185
181
|
wide array of funding channels to account for your preferences.
|
|
186
182
|
Currently, [Open Collective][🖇osc] is our preferred funding platform.
|
|
187
183
|
|
|
184
|
+
### Corporate Sponsorship
|
|
185
|
+
|
|
188
186
|
**If you're working in a company that's making significant use of galtzo-floss tools we'd
|
|
189
187
|
appreciate it if you suggest to your company to become a galtzo-floss sponsor.**
|
|
190
188
|
|
|
189
|
+
### Individual Support
|
|
190
|
+
|
|
191
191
|
You can support the development of galtzo-floss tools via
|
|
192
192
|
[GitHub Sponsors][🖇sponsor],
|
|
193
193
|
[Liberapay][⛳liberapay],
|
|
194
|
-
[
|
|
195
|
-
[
|
|
196
|
-
and [Tidelift][🏙️entsup-tidelift].
|
|
197
|
-
|
|
198
|
-
| 📍 NOTE |
|
|
199
|
-
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
200
|
-
| If doing a sponsorship in the form of donation is problematic for your company <br/> from an accounting standpoint, we'd recommend the use of Tidelift, <br/> where you can get a support-like subscription instead. |
|
|
194
|
+
[Open Collective][🖇osc],
|
|
195
|
+
and [PayPal][🖇paypal].
|
|
201
196
|
|
|
202
197
|
### Open Collective for Individuals
|
|
203
198
|
|
|
@@ -412,9 +407,6 @@ Thanks for RTFM. ☺️
|
|
|
412
407
|
[👨🏼🏫expsup-upwork-img]: https://img.shields.io/badge/UpWork-13544E?style=for-the-badge&logo=Upwork&logoColor=white
|
|
413
408
|
[👨🏼🏫expsup-codementor]: https://www.codementor.io/peterboling?utm_source=github&utm_medium=button&utm_term=peterboling&utm_campaign=github
|
|
414
409
|
[👨🏼🏫expsup-codementor-img]: https://img.shields.io/badge/CodeMentor-Get_Help-1abc9c?style=for-the-badge&logo=CodeMentor&logoColor=white
|
|
415
|
-
[🏙️entsup-tidelift]: https://tidelift.com/subscription/pkg/rubygems-stone_checksums?utm_source=rubygems-stone_checksums&utm_medium=referral&utm_campaign=readme
|
|
416
|
-
[🏙️entsup-tidelift-img]: https://img.shields.io/badge/Tidelift_and_Sonar-Enterprise_Support-FD3456?style=for-the-badge&logo=sonar&logoColor=white
|
|
417
|
-
[🏙️entsup-tidelift-sonar]: https://blog.tidelift.com/tidelift-joins-sonar
|
|
418
410
|
[💁🏼♂️peterboling]: http://www.peterboling.com
|
|
419
411
|
[🚂railsbling]: http://www.railsbling.com
|
|
420
412
|
[📜src-gl-img]: https://img.shields.io/badge/GitLab-FBA326?style=for-the-badge&logo=Gitlab&logoColor=orange
|
|
@@ -450,15 +442,7 @@ Thanks for RTFM. ☺️
|
|
|
450
442
|
[🚎ruby-3.2-wf]: https://github.com/galtzo-floss/stone_checksums/actions/workflows/ruby-3.2.yml
|
|
451
443
|
[🚎ruby-3.3-wf]: https://github.com/galtzo-floss/stone_checksums/actions/workflows/ruby-3.3.yml
|
|
452
444
|
[🚎ruby-3.4-wf]: https://github.com/galtzo-floss/stone_checksums/actions/workflows/ruby-3.4.yml
|
|
453
|
-
[🚎jruby-9.2-wf]: https://github.com/galtzo-floss/stone_checksums/actions/workflows/jruby-9.2.yml
|
|
454
|
-
[🚎jruby-9.3-wf]: https://github.com/galtzo-floss/stone_checksums/actions/workflows/jruby-9.3.yml
|
|
455
|
-
[🚎jruby-9.4-wf]: https://github.com/galtzo-floss/stone_checksums/actions/workflows/jruby-9.4.yml
|
|
456
445
|
[🚎jruby-10.0-wf]: https://github.com/galtzo-floss/stone_checksums/actions/workflows/jruby-10.0.yml
|
|
457
|
-
[🚎truby-22.3-wf]: https://github.com/galtzo-floss/stone_checksums/actions/workflows/truffleruby-22.3.yml
|
|
458
|
-
[🚎truby-23.0-wf]: https://github.com/galtzo-floss/stone_checksums/actions/workflows/truffleruby-23.0.yml
|
|
459
|
-
[🚎truby-23.1-wf]: https://github.com/galtzo-floss/stone_checksums/actions/workflows/truffleruby-23.1.yml
|
|
460
|
-
[🚎truby-24.2-wf]: https://github.com/galtzo-floss/stone_checksums/actions/workflows/truffleruby-24.2.yml
|
|
461
|
-
[🚎truby-25.0-wf]: https://github.com/galtzo-floss/stone_checksums/actions/workflows/truffleruby-25.0.yml
|
|
462
446
|
[🚎truby-33.0-wf]: https://github.com/galtzo-floss/stone_checksums/actions/workflows/truffleruby-33.0.yml
|
|
463
447
|
[🚎2-cov-wf]: https://github.com/galtzo-floss/stone_checksums/actions/workflows/coverage.yml
|
|
464
448
|
[🚎2-cov-wfi]: https://github.com/galtzo-floss/stone_checksums/actions/workflows/coverage.yml/badge.svg
|
|
@@ -493,17 +477,8 @@ Thanks for RTFM. ☺️
|
|
|
493
477
|
[💎ruby-3.4i]: https://img.shields.io/badge/Ruby-3.4-CC342D?style=for-the-badge&logo=ruby&logoColor=white
|
|
494
478
|
[💎ruby-c-i]: https://img.shields.io/badge/Ruby-current-CC342D?style=for-the-badge&logo=ruby&logoColor=green
|
|
495
479
|
[💎ruby-headi]: https://img.shields.io/badge/Ruby-HEAD-CC342D?style=for-the-badge&logo=ruby&logoColor=blue
|
|
496
|
-
[💎truby-22.3i]: https://img.shields.io/badge/Truffle_Ruby-22.3-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
|
|
497
|
-
[💎truby-23.0i]: https://img.shields.io/badge/Truffle_Ruby-23.0-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
|
|
498
|
-
[💎truby-23.1i]: https://img.shields.io/badge/Truffle_Ruby-23.1-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
|
|
499
|
-
[💎truby-24.2i]: https://img.shields.io/badge/Truffle_Ruby-24.2-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
|
|
500
|
-
[💎truby-25.0i]: https://img.shields.io/badge/Truffle_Ruby-25.0-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
|
|
501
480
|
[💎truby-33.0i]: https://img.shields.io/badge/Truffle_Ruby-33.0-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
|
|
502
481
|
[💎truby-c-i]: https://img.shields.io/badge/Truffle_Ruby-current-34BCB1?style=for-the-badge&logo=ruby&logoColor=green
|
|
503
|
-
[💎truby-headi]: https://img.shields.io/badge/Truffle_Ruby-HEAD-34BCB1?style=for-the-badge&logo=ruby&logoColor=blue
|
|
504
|
-
[💎jruby-9.2i]: https://img.shields.io/badge/JRuby-9.2-FBE742?style=for-the-badge&logo=ruby&logoColor=red
|
|
505
|
-
[💎jruby-9.3i]: https://img.shields.io/badge/JRuby-9.3-FBE742?style=for-the-badge&logo=ruby&logoColor=red
|
|
506
|
-
[💎jruby-9.4i]: https://img.shields.io/badge/JRuby-9.4-FBE742?style=for-the-badge&logo=ruby&logoColor=red
|
|
507
482
|
[💎jruby-10.0i]: https://img.shields.io/badge/JRuby-10.0-FBE742?style=for-the-badge&logo=ruby&logoColor=red
|
|
508
483
|
[💎jruby-c-i]: https://img.shields.io/badge/JRuby-current-FBE742?style=for-the-badge&logo=ruby&logoColor=green
|
|
509
484
|
[💎jruby-headi]: https://img.shields.io/badge/JRuby-HEAD-FBE742?style=for-the-badge&logo=ruby&logoColor=blue
|
|
@@ -533,7 +508,7 @@ Thanks for RTFM. ☺️
|
|
|
533
508
|
[📌gitmoji]: https://gitmoji.dev
|
|
534
509
|
[📌gitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
|
|
535
510
|
[🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
|
|
536
|
-
[🧮kloc-img]: https://img.shields.io/badge/KLOC-0.
|
|
511
|
+
[🧮kloc-img]: https://img.shields.io/badge/KLOC-0.140-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
|
|
537
512
|
[🔐security]: https://github.com/galtzo-floss/stone_checksums/blob/main/SECURITY.md
|
|
538
513
|
[🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
|
|
539
514
|
[📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
|
@@ -559,9 +534,9 @@ Thanks for RTFM. ☺️
|
|
|
559
534
|
| Field | Value |
|
|
560
535
|
|---|---|
|
|
561
536
|
| Package | stone_checksums |
|
|
562
|
-
| Description |
|
|
537
|
+
| Description | 🗿 Generate both SHA256 & SHA512 checksums into the checksums directory, and git commit them.<br>gem install stone_checksums<br>Then, use the rake task or the script:<br>rake build:generate_checksums<br>gem_checksums<br>Control options with ENV variables!<br>Fund overlooked open source projects - bottom of stack, dev/test dependencies: floss-funding.dev |
|
|
563
538
|
| Homepage | https://github.com/galtzo-floss/stone_checksums |
|
|
564
539
|
| Source | https://github.com/galtzo-floss/stone_checksums |
|
|
565
540
|
| License | `MIT` |
|
|
566
|
-
| Funding | https://github.com/sponsors/pboling, https://ko-fi.com/pboling, https://liberapay.com/pboling/donate, https://opencollective.com/galtzo-floss, https://thanks.dev/u/gh/pboling, https://
|
|
541
|
+
| Funding | https://github.com/sponsors/pboling, https://ko-fi.com/pboling, https://liberapay.com/pboling/donate, https://opencollective.com/galtzo-floss, https://thanks.dev/u/gh/pboling, https://www.buymeacoffee.com/pboling |
|
|
567
542
|
<!-- kettle-jem:metadata:end -->
|
data/lib/gem_checksums.rb
CHANGED
|
@@ -179,7 +179,7 @@ Tip: set GEM_CHECKSUMS_ASSUME_YES=true to proceed non-interactively (still requi
|
|
|
179
179
|
git_add_flag = git_dry_run_flag ? "--dry-run" : nil
|
|
180
180
|
git_cmd = <<-GIT_MSG.rstrip
|
|
181
181
|
git add #{git_add_flag} #{CHECKSUMS_DIR}/* && \
|
|
182
|
-
git commit #{git_commit_flag} -m "🔒️
|
|
182
|
+
git commit #{git_commit_flag} -m "chore(checksums): 🔒️ update checksums for v#{version}"
|
|
183
183
|
GIT_MSG
|
|
184
184
|
|
|
185
185
|
if git_dry_run_flag
|
|
@@ -219,6 +219,26 @@ rm -f #{digest256_32bit_path}
|
|
|
219
219
|
end
|
|
220
220
|
module_function :generate
|
|
221
221
|
|
|
222
|
+
# Verify that a built gem matches its recorded SHA-256 checksum.
|
|
223
|
+
#
|
|
224
|
+
# @param gem_path [String] path to the built gem
|
|
225
|
+
# @param checksums_dir [String] directory containing the .sha256 file
|
|
226
|
+
# @return [Boolean] true when the checksum matches
|
|
227
|
+
# @raise [Error] when a file is missing or the checksum does not match
|
|
228
|
+
def validate_sha256!(gem_path, checksums_dir: CHECKSUMS_DIR, **options)
|
|
229
|
+
raise Error, "Built gem not found: #{gem_path}" unless File.file?(gem_path)
|
|
230
|
+
|
|
231
|
+
checksum_path = File.join(checksums_dir, "#{File.basename(gem_path)}.sha256")
|
|
232
|
+
raise Error, "Expected checksum file not found: #{checksum_path}" unless File.file?(checksum_path)
|
|
233
|
+
|
|
234
|
+
expected = File.read(checksum_path).strip
|
|
235
|
+
actual = Digest::SHA256.file(gem_path).hexdigest
|
|
236
|
+
return true if actual == expected
|
|
237
|
+
|
|
238
|
+
raise Error, "SHA256 mismatch for #{gem_path}: expected #{expected} from #{checksum_path}, got #{actual}"
|
|
239
|
+
end
|
|
240
|
+
module_function :validate_sha256!
|
|
241
|
+
|
|
222
242
|
def validate_project_package!(gem_pkg)
|
|
223
243
|
project_spec = current_project_spec
|
|
224
244
|
return unless project_spec
|
|
@@ -4,7 +4,7 @@ module StoneChecksums
|
|
|
4
4
|
# Version namespace for this gem.
|
|
5
5
|
module Version
|
|
6
6
|
# Current gem version.
|
|
7
|
-
VERSION = "1.0.
|
|
7
|
+
VERSION = "1.0.11"
|
|
8
8
|
end
|
|
9
9
|
# Current gem version exposed at the traditional constant location.
|
|
10
10
|
VERSION = Version::VERSION # Traditional Constant Location
|
data/lib/stone_checksums.rb
CHANGED
|
@@ -38,6 +38,15 @@ module StoneChecksums
|
|
|
38
38
|
::GemChecksums.install_tasks
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
+
# Verify a built gem against its recorded SHA-256 checksum.
|
|
42
|
+
# @param gem_path [String] path to the built gem
|
|
43
|
+
# @param checksums_dir [String] directory containing the checksum
|
|
44
|
+
# @return [Boolean] true if the checksum matches
|
|
45
|
+
# @raise [GemChecksums::Error] if validation fails
|
|
46
|
+
def validate_sha256!(gem_path, checksums_dir: ::GemChecksums::CHECKSUMS_DIR, **options)
|
|
47
|
+
::GemChecksums.validate_sha256!(gem_path, checksums_dir: checksums_dir, **options)
|
|
48
|
+
end
|
|
49
|
+
|
|
41
50
|
# Generate SHA-256 and SHA-512 checksums for a built .gem and commit them.
|
|
42
51
|
#
|
|
43
52
|
# Behavior, options, and side effects are identical to
|
data/sig/stone_checksums.rbs
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stone_checksums
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Peter H. Boling
|
|
@@ -46,7 +46,7 @@ dependencies:
|
|
|
46
46
|
version: '1.1'
|
|
47
47
|
- - ">="
|
|
48
48
|
- !ruby/object:Gem::Version
|
|
49
|
-
version: 1.1.
|
|
49
|
+
version: 1.1.17
|
|
50
50
|
type: :runtime
|
|
51
51
|
prerelease: false
|
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -56,7 +56,7 @@ dependencies:
|
|
|
56
56
|
version: '1.1'
|
|
57
57
|
- - ">="
|
|
58
58
|
- !ruby/object:Gem::Version
|
|
59
|
-
version: 1.1.
|
|
59
|
+
version: 1.1.17
|
|
60
60
|
- !ruby/object:Gem::Dependency
|
|
61
61
|
name: kettle-dev
|
|
62
62
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -66,7 +66,7 @@ dependencies:
|
|
|
66
66
|
version: '3.1'
|
|
67
67
|
- - ">="
|
|
68
68
|
- !ruby/object:Gem::Version
|
|
69
|
-
version: 3.1.
|
|
69
|
+
version: 3.1.29
|
|
70
70
|
type: :development
|
|
71
71
|
prerelease: false
|
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -76,7 +76,7 @@ dependencies:
|
|
|
76
76
|
version: '3.1'
|
|
77
77
|
- - ">="
|
|
78
78
|
- !ruby/object:Gem::Version
|
|
79
|
-
version: 3.1.
|
|
79
|
+
version: 3.1.29
|
|
80
80
|
- !ruby/object:Gem::Dependency
|
|
81
81
|
name: bundler-audit
|
|
82
82
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -134,7 +134,7 @@ dependencies:
|
|
|
134
134
|
version: '0.1'
|
|
135
135
|
- - ">="
|
|
136
136
|
- !ruby/object:Gem::Version
|
|
137
|
-
version: 0.1.
|
|
137
|
+
version: 0.1.5
|
|
138
138
|
type: :development
|
|
139
139
|
prerelease: false
|
|
140
140
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -144,7 +144,7 @@ dependencies:
|
|
|
144
144
|
version: '0.1'
|
|
145
145
|
- - ">="
|
|
146
146
|
- !ruby/object:Gem::Version
|
|
147
|
-
version: 0.1.
|
|
147
|
+
version: 0.1.5
|
|
148
148
|
- !ruby/object:Gem::Dependency
|
|
149
149
|
name: appraisal2
|
|
150
150
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -154,7 +154,7 @@ dependencies:
|
|
|
154
154
|
version: '3.2'
|
|
155
155
|
- - ">="
|
|
156
156
|
- !ruby/object:Gem::Version
|
|
157
|
-
version: 3.2.
|
|
157
|
+
version: 3.2.6
|
|
158
158
|
type: :development
|
|
159
159
|
prerelease: false
|
|
160
160
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -164,7 +164,7 @@ dependencies:
|
|
|
164
164
|
version: '3.2'
|
|
165
165
|
- - ">="
|
|
166
166
|
- !ruby/object:Gem::Version
|
|
167
|
-
version: 3.2.
|
|
167
|
+
version: 3.2.6
|
|
168
168
|
- !ruby/object:Gem::Dependency
|
|
169
169
|
name: kettle-test
|
|
170
170
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -174,7 +174,7 @@ dependencies:
|
|
|
174
174
|
version: '2.0'
|
|
175
175
|
- - ">="
|
|
176
176
|
- !ruby/object:Gem::Version
|
|
177
|
-
version: 2.0.
|
|
177
|
+
version: 2.0.30
|
|
178
178
|
type: :development
|
|
179
179
|
prerelease: false
|
|
180
180
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -184,27 +184,27 @@ dependencies:
|
|
|
184
184
|
version: '2.0'
|
|
185
185
|
- - ">="
|
|
186
186
|
- !ruby/object:Gem::Version
|
|
187
|
-
version: 2.0.
|
|
187
|
+
version: 2.0.30
|
|
188
188
|
- !ruby/object:Gem::Dependency
|
|
189
189
|
name: turbo_tests2
|
|
190
190
|
requirement: !ruby/object:Gem::Requirement
|
|
191
191
|
requirements:
|
|
192
192
|
- - "~>"
|
|
193
193
|
- !ruby/object:Gem::Version
|
|
194
|
-
version: '
|
|
194
|
+
version: '4.0'
|
|
195
195
|
- - ">="
|
|
196
196
|
- !ruby/object:Gem::Version
|
|
197
|
-
version:
|
|
197
|
+
version: 4.0.2
|
|
198
198
|
type: :development
|
|
199
199
|
prerelease: false
|
|
200
200
|
version_requirements: !ruby/object:Gem::Requirement
|
|
201
201
|
requirements:
|
|
202
202
|
- - "~>"
|
|
203
203
|
- !ruby/object:Gem::Version
|
|
204
|
-
version: '
|
|
204
|
+
version: '4.0'
|
|
205
205
|
- - ">="
|
|
206
206
|
- !ruby/object:Gem::Version
|
|
207
|
-
version:
|
|
207
|
+
version: 4.0.2
|
|
208
208
|
- !ruby/object:Gem::Dependency
|
|
209
209
|
name: ruby-progressbar
|
|
210
210
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -228,7 +228,7 @@ dependencies:
|
|
|
228
228
|
version: '2.0'
|
|
229
229
|
- - ">="
|
|
230
230
|
- !ruby/object:Gem::Version
|
|
231
|
-
version: 2.0.
|
|
231
|
+
version: 2.0.16
|
|
232
232
|
type: :development
|
|
233
233
|
prerelease: false
|
|
234
234
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -238,8 +238,8 @@ dependencies:
|
|
|
238
238
|
version: '2.0'
|
|
239
239
|
- - ">="
|
|
240
240
|
- !ruby/object:Gem::Version
|
|
241
|
-
version: 2.0.
|
|
242
|
-
description: "\
|
|
241
|
+
version: 2.0.16
|
|
242
|
+
description: "\U0001F5FF Generate both SHA256 & SHA512 checksums into the checksums
|
|
243
243
|
directory, and git commit them.\n gem install stone_checksums\nThen, use the rake
|
|
244
244
|
task or the script:\n rake build:generate_checksums\n gem_checksums\nControl options
|
|
245
245
|
with ENV variables!\nFund overlooked open source projects - bottom of stack, dev/test
|
|
@@ -269,10 +269,10 @@ licenses:
|
|
|
269
269
|
- MIT
|
|
270
270
|
metadata:
|
|
271
271
|
homepage_uri: https://stone-checksums.galtzo.com
|
|
272
|
-
source_code_uri: https://github.com/galtzo-floss/stone_checksums/tree/v1.0.
|
|
273
|
-
changelog_uri: https://github.com/galtzo-floss/stone_checksums/blob/v1.0.
|
|
272
|
+
source_code_uri: https://github.com/galtzo-floss/stone_checksums/tree/v1.0.11
|
|
273
|
+
changelog_uri: https://github.com/galtzo-floss/stone_checksums/blob/v1.0.11/CHANGELOG.md
|
|
274
274
|
bug_tracker_uri: https://github.com/galtzo-floss/stone_checksums/issues
|
|
275
|
-
documentation_uri: https://www.rubydoc.info/gems/stone_checksums/1.0.
|
|
275
|
+
documentation_uri: https://www.rubydoc.info/gems/stone_checksums/1.0.11
|
|
276
276
|
funding_uri: https://github.com/sponsors/pboling
|
|
277
277
|
wiki_uri: https://github.com/galtzo-floss/stone_checksums/wiki
|
|
278
278
|
news_uri: https://www.railsbling.com/tags/stone_checksums
|
|
@@ -281,7 +281,7 @@ metadata:
|
|
|
281
281
|
rubygems_mfa_required: 'true'
|
|
282
282
|
rdoc_options:
|
|
283
283
|
- "--title"
|
|
284
|
-
- "stone_checksums - \
|
|
284
|
+
- "stone_checksums - \U0001F5FF Generate both SHA256 & SHA512 checksums of RubyGem
|
|
285
285
|
libraries"
|
|
286
286
|
- "--main"
|
|
287
287
|
- README.md
|
|
@@ -303,7 +303,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
303
303
|
- !ruby/object:Gem::Version
|
|
304
304
|
version: '0'
|
|
305
305
|
requirements: []
|
|
306
|
-
rubygems_version: 4.0.
|
|
306
|
+
rubygems_version: 4.0.24
|
|
307
307
|
specification_version: 4
|
|
308
|
-
summary: "\
|
|
308
|
+
summary: "\U0001F5FF Generate both SHA256 & SHA512 checksums of RubyGem libraries"
|
|
309
309
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|