stone_checksums 1.0.0 → 1.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10c24907c04341700760f767dee6961380dad863a854e27311ea5bad4adbbe87
4
- data.tar.gz: ae70388ffc487abe1212908966cdc766257334aa35d0fc8cbfc8003783e492e2
3
+ metadata.gz: 53958cb29bf4368670d6559ed4980432987e6f376059b2e93258c420d6aefefa
4
+ data.tar.gz: aeca2d93a773bc50c617439e46546349d3fbf16f322c1b6b8da02c3d30188b52
5
5
  SHA512:
6
- metadata.gz: 739fecf5f505e1d3233d93b6dab4ad7ce25f1ebf92a9dc493436cc2b24aa605ba25d24402ae5297015f622414e7e226a8df264ea5844cc6b94f34ea89373224a
7
- data.tar.gz: 72194ebfe4981c8d4477572c72cb82bde815e65c94df3509511c27364d91b99b072ced8bc2cf0204473bef0704a42e4504c845ece9ea219463d6c505d92020d1
6
+ metadata.gz: ab4dec6052f0f4284e6ac425588b12f0ee08ea2d07ef9c71a1ed84f5a44a02707d6dcaf16c1daf26856f78f73aa4c2deebb4065b2e3839b154745b9ccf98d48e
7
+ data.tar.gz: c6ad4db779904e0787866fb3e45c5d6775a83c983e5bbeded283ea183d9223d641237a524eefe9aebe7e6a20a6162ad747fd1aa374a821cc11aef4b6aa8c22ba
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -19,16 +19,40 @@ Please file a bug if you notice a violation of semantic versioning.
19
19
  ## [Unreleased]
20
20
  ### Added
21
21
  ### Changed
22
- ### Fixed
22
+ ### Deprecated
23
23
  ### Removed
24
+ ### Fixed
25
+ ### Security
26
+
27
+ ## [1.0.1] - 2025-08-26
28
+ - TAG: [v1.0.1][1.0.1t]
29
+ - COVERAGE: 100.00% -- 97/97 lines in 6 files
30
+ - BRANCH COVERAGE: 92.86% -- 26/28 branches in 6 files
31
+ - 68.42% documented
32
+ ### Added
33
+ - Added proper namespace: StoneChecksums
34
+ - Namespace now matches gem name according to RubyGems convention
35
+ - Old Namespace, GemChecksums, will be dropped in next major version
36
+ ### Changed
37
+ - Improve error help text on old bundler, recommend upgrading
38
+ ### Fixed
39
+ - Support for bundler >= v2.7, which no longer relies on SOURCE_DATE_EPOCH
40
+ - NOTE: Bundler v2.7+ defaults to a constant build date in 1980 to make all builds reproducible.
41
+ ### Documentation
42
+ - Updated README with checksum usage, Bundler version guidance, and env vars.
43
+ - Added YARD docstrings for public APIs.
44
+ - Expanded RBS signatures for public constants and methods.
24
45
 
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
46
+ ## [1.0.0] - 2025-02-23
47
+ - TAG: [v1.0.0][1.0.0t]
48
+ - COVERAGE: 98.67% -- 74/75 lines in 5 files
49
+ - BRANCH COVERAGE: 79.17% -- 19/24 branches in 5 files
28
50
  - 38.46% documented
29
51
  ### Added
30
52
  - Initial release
31
53
 
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
54
+ [Unreleased]: https://gitlab.com/galtzo-floss/stone_checksums/-/compare/v1.0.0...HEAD
55
+ [1.0.1]: https://gitlab.com/galtzo-floss/stone_checksums/-/compare/v1.0.0...v1.0.1
56
+ [1.0.1t]: https://gitlab.com/galtzo-floss/stone_checksums/-/tags/v1.0.1
57
+ [1.0.0]: https://gitlab.com/galtzo-floss/stone_checksums/-/compare/1fd75630d9d3c4a1ef8fed384fda98755ae01d5e...v1.0.0
58
+ [1.0.0t]: https://gitlab.com/galtzo-floss/stone_checksums/-/tags/v1.0.0
data/CODE_OF_CONDUCT.md CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  # Contributor Covenant Code of Conduct
3
2
 
4
3
  ## Our Pledge
@@ -61,7 +60,7 @@ representative at an online or offline event.
61
60
 
62
61
  Instances of abusive, harassing, or otherwise unacceptable behavior may be
63
62
  reported to the community leaders responsible for enforcement at
64
- [![Contact BDFL][🚂bdfl-contact-img]][🚂bdfl-contact].
63
+ [![Contact Maintainer][🚂maint-contact-img]][🚂maint-contact].
65
64
  All complaints will be reviewed and investigated promptly and fairly.
66
65
 
67
66
  All community leaders are obligated to respect the privacy and security of the
@@ -131,5 +130,5 @@ For answers to common questions about this code of conduct, see the FAQ at
131
130
  [Mozilla CoC]: https://github.com/mozilla/diversity
132
131
  [FAQ]: https://www.contributor-covenant.org/faq
133
132
  [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
133
+ [🚂maint-contact]: http://www.railsbling.com/contact
134
+ [🚂maint-contact-img]: https://img.shields.io/badge/Contact-Maintainer-0093D0.svg?style=flat&logo=rubyonrails&logoColor=red
data/CONTRIBUTING.md CHANGED
@@ -1,38 +1,70 @@
1
1
  # Contributing
2
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
3
+ Bug reports and pull requests are welcome on GitHub, CodeBerg, or [GitLab][🚎src-main].
4
+ This project should be a safe, welcoming space for collaboration, so contributors agree to adhere to
5
5
  the [code of conduct][🤝conduct].
6
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.
7
+ To submit a patch, please fork the project, create a patch with tests, and send a pull request.
9
8
 
10
- We [![Keep A Changelog][📗keep-changelog-img]][📗keep-changelog] so if you make changes, remember to update it.
9
+ Remember to [![Keep A Changelog][📗keep-changelog-img]][📗keep-changelog].
11
10
 
12
- ## You can help!
11
+ ## Help out!
13
12
 
14
- Simply follow these instructions:
13
+ Take a look at the `reek` list which is the file called `REEK` and find something to improve.
14
+
15
+ Follow these instructions:
15
16
 
16
17
  1. Fork the repository
17
- 2. Create your feature branch (`git checkout -b my-new-feature`)
18
+ 2. Create a feature branch (`git checkout -b my-new-feature`)
18
19
  3. Make some fixes.
19
- 4. Commit your changes (`git commit -am 'Added some feature'`)
20
+ 4. Commit changes (`git commit -am 'Added some feature'`)
20
21
  5. Push to the branch (`git push origin my-new-feature`)
21
22
  6. Make sure to add tests for it. This is important, so it doesn't break in a future release.
22
23
  7. Create new Pull Request.
23
24
 
24
- ## Appraisals
25
+ ## Environment Variables for Local Development
25
26
 
26
- From time to time the appraisal gemfiles in `gemfiles/` will need to be updated.
27
- They are created and updated with the commands:
27
+ Below are the primary environment variables recognized by stone_checksums (and its integrated tools). Unless otherwise noted, set boolean values to the string "true" to enable.
28
+
29
+ General/runtime
30
+ - DEBUG: Enable extra internal logging for this library (default: false)
31
+ - REQUIRE_BENCH: Enable `require_bench` to profile requires (default: false)
32
+ - CI: When set to true, adjusts default rake tasks toward CI behavior
33
+
34
+ Coverage (kettle-soup-cover / SimpleCov)
35
+ - K_SOUP_COV_DO: Enable coverage collection (default: true in .envrc)
36
+ - K_SOUP_COV_FORMATTERS: Comma-separated list of formatters (html, xml, rcov, lcov, json, tty)
37
+ - K_SOUP_COV_MIN_LINE: Minimum line coverage threshold (integer, e.g., 100)
38
+ - K_SOUP_COV_MIN_BRANCH: Minimum branch coverage threshold (integer, e.g., 100)
39
+ - K_SOUP_COV_MIN_HARD: Fail the run if thresholds are not met (true/false)
40
+ - K_SOUP_COV_MULTI_FORMATTERS: Enable multiple formatters at once (true/false)
41
+ - K_SOUP_COV_OPEN_BIN: Path to browser opener for HTML (empty disables auto-open)
42
+ - MAX_ROWS: Limit console output rows for simplecov-console (e.g., 1)
43
+ Tip: When running a single spec file locally, you may want `K_SOUP_COV_MIN_HARD=false` to avoid failing thresholds for a partial run.
28
44
 
29
- NOTE: We run on a [fork][🚎appraisal-fork] of Appraisal.
45
+ GitHub API and CI helpers
46
+ - GITHUB_TOKEN or GH_TOKEN: Token used by `ci:act` and release workflow checks to query GitHub Actions status at higher rate limits
30
47
 
31
- Please upvote the PR for `eval_gemfile` [support][🚎appraisal-eval-gemfile-pr]
48
+ Releasing and signing
49
+ - SKIP_GEM_SIGNING: If set, skip gem signing during build/release
50
+ - GEM_CERT_USER: Username for selecting your public cert in `certs/<USER>.pem` (defaults to $USER)
51
+ - SOURCE_DATE_EPOCH: Reproducible build timestamp. `kettle-release` will set this automatically for the session.
52
+
53
+ Git hooks and commit message helpers (exe/kettle-commit-msg)
54
+ - GIT_HOOK_BRANCH_VALIDATE: Branch name validation mode (e.g., `jira`) or `false` to disable
55
+ - GIT_HOOK_FOOTER_APPEND: Append a footer to commit messages when goalie allows (true/false)
56
+ - GIT_HOOK_FOOTER_SENTINEL: Required when footer append is enabled — a unique first-line sentinel to prevent duplicates
57
+ - GIT_HOOK_FOOTER_APPEND_DEBUG: Extra debug output in the footer template (true/false)
58
+
59
+ For a quick starting point, this repository’s `.envrc` shows sane defaults, and `.env.local` can override them locally.
60
+
61
+ ## Appraisals
62
+
63
+ From time to time the Appraisal2 gemfiles in `gemfiles/` will need to be updated.
64
+ They are created and updated with the commands:
32
65
 
33
- ```shell
34
- BUNDLE_GEMFILE=Appraisal.root.gemfile bundle
35
- BUNDLE_GEMFILE=Appraisal.root.gemfile bundle exec appraisal update
66
+ ```console
67
+ bin/rake appraisal:update
36
68
  ```
37
69
 
38
70
  When adding an appraisal to CI check the [runner tool cache][🏃‍♂️runner-tool-cache] to see which runner to use.
@@ -43,7 +75,7 @@ Take a look at the `reek` list which is the file called `REEK` and find somethin
43
75
 
44
76
  To refresh the `reek` list:
45
77
 
46
- ```bash
78
+ ```console
47
79
  bundle exec reek > REEK
48
80
  ```
49
81
 
@@ -51,24 +83,43 @@ bundle exec reek > REEK
51
83
 
52
84
  To run all tests
53
85
 
54
- ```bash
86
+ ```console
55
87
  bundle exec rake test
56
88
  ```
57
89
 
90
+ ### Spec organization (required)
91
+
92
+ - For each class or module under `lib/`, keep all of its unit tests in a single spec file under `spec/` that mirrors the path and file name (e.g., specs for `lib/kettle/dev/release_cli.rb` live in `spec/kettle/dev/release_cli_spec.rb`).
93
+ - Do not create ad-hoc "_more" or split spec files for the same class/module. Consolidate all unit tests into the main spec file for that class/module.
94
+ - Only integration scenarios that intentionally span multiple classes belong in `spec/integration/`.
95
+
58
96
  ## Lint It
59
97
 
60
98
  Run all the default tasks, which includes running the gradually autocorrecting linter, `rubocop-gradual`.
61
99
 
62
- ```bash
100
+ ```console
63
101
  bundle exec rake
64
102
  ```
65
103
 
66
104
  Or just run the linter.
67
105
 
68
- ```bash
106
+ ```console
69
107
  bundle exec rake rubocop_gradual:autocorrect
70
108
  ```
71
109
 
110
+ For more detailed information about using RuboCop in this project, please see the [RUBOCOP.md](RUBOCOP.md) guide. This project uses `rubocop_gradual` instead of vanilla RuboCop, which requires specific commands for checking violations.
111
+
112
+ ### Important: Do not add inline RuboCop disables
113
+
114
+ Never add `# rubocop:disable ...` / `# rubocop:enable ...` comments to code or specs (except when following the few existing `rubocop:disable` patterns for a rule already being disabled elsewhere in the code). Instead:
115
+
116
+ - Prefer configuration-based exclusions when a rule should not apply to certain paths or files (e.g., via `.rubocop.yml`).
117
+ - When a violation is temporary and you plan to fix it later, record it in `.rubocop_gradual.lock` using the gradual workflow:
118
+ - `bundle exec rake rubocop_gradual:autocorrect` (preferred)
119
+ - `bundle exec rake rubocop_gradual:force_update` (only when you cannot fix the violations immediately)
120
+
121
+ As a general rule, fix style issues rather than ignoring them. For example, our specs should follow RSpec conventions like using `described_class` for the class under test.
122
+
72
123
  ## Contributors
73
124
 
74
125
  Your picture could be here!
@@ -77,55 +128,67 @@ Your picture could be here!
77
128
 
78
129
  Made with [contributors-img][🖐contrib-rocks].
79
130
 
80
- Also see GitLab Contributors: [https://gitlab.com/pboling/gem_checksums/-/graphs/main][🚎contributors-gl]
131
+ Also see GitLab Contributors: [https://gitlab.com/galtzo-floss/stone_checksums/-/graphs/main][🚎contributors-gl]
81
132
 
82
133
  ## For Maintainers
83
134
 
84
135
  ### One-time, Per-maintainer, Setup
85
136
 
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.
137
+ **IMPORTANT**: If you want to sign the build you create,
138
+ your public key for signing gems will need to be picked up by the line in the
139
+ `gemspec` defining the `spec.cert_chain` (check the relevant ENV variables there).
140
+ All releases to RubyGems.org will be signed.
89
141
  See: [RubyGems Security Guide][🔒️rubygems-security-guide]
90
142
 
143
+ NOTE: To build without signing the gem you must set `SKIP_GEM_SIGNING` to some value in your environment.
144
+
91
145
  ### To release a new version:
92
146
 
93
- 1. Run `bin/setup && bin/rake` as a tests, coverage, & linting sanity check
147
+ #### Automated process
148
+
149
+ Run `kettle-release`.
150
+
151
+ #### Manual process
152
+
153
+ 1. Run `bin/setup && bin/rake` as a "test, coverage, & linting" sanity check
94
154
  2. Update the version number in `version.rb`, and ensure `CHANGELOG.md` reflects changes
95
155
  3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`
96
156
  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]!
157
+ 5. Run `git push` to trigger the final CI pipeline before release, and merge PRs
158
+ - NOTE: Remember to [check the build][🧪build].
99
159
  6. Run `export GIT_TRUNK_BRANCH_NAME="$(git remote show origin | grep 'HEAD branch' | cut -d ' ' -f5)" && echo $GIT_TRUNK_BRANCH_NAME`
100
160
  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`
161
+ 8. Run `git pull origin $GIT_TRUNK_BRANCH_NAME` to ensure latest trunk code
162
+ 9. Optional for older Bundler (< 2.7.0): Set `SOURCE_DATE_EPOCH` so `rake build` and `rake release` use the same timestamp and generate the same checksums
163
+ - If your Bundler is >= 2.7.0, you can skip this; builds are reproducible by default.
164
+ - Run `export SOURCE_DATE_EPOCH=$EPOCHSECONDS && echo $SOURCE_DATE_EPOCH`
165
+ - If the echo above has no output, then it didn't work.
166
+ - Note: `zsh/datetime` module is needed, if running `zsh`.
167
+ - In older versions of `bash` you can use `date +%s` instead, i.e. `export SOURCE_DATE_EPOCH=$(date +%s) && echo $SOURCE_DATE_EPOCH`
107
168
  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
169
+ 11. Run `bin/gem_checksums` (more context [1][🔒️rubygems-checksums-pr], [2][🔒️rubygems-guides-pr])
170
+ to create SHA-256 and SHA-512 checksums. This functionality is provided by the `stone_checksums`
171
+ [gem][💎stone_checksums].
172
+ - The script automatically commits but does not push the checksums
173
+ 12. Sanity check the SHA256, comparing with the output from the `bin/gem_checksums` command:
174
+ - `sha256sum pkg/<gem name>-<version>.gem`
175
+ 13. Run `bundle exec rake release` which will create a git tag for the version,
176
+ push git commits and tags, and push the `.gem` file to [rubygems.org][💎rubygems]
177
+
178
+ [🚎src-main]: https://gitlab.com/galtzo-floss/stone_checksums
179
+ [🧪build]: https://github.com/galtzo-floss/stone_checksums/actions
180
+ [🤝conduct]: https://gitlab.com/galtzo-floss/stone_checksums/-/blob/main/CODE_OF_CONDUCT.md
117
181
  [🖐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
182
+ [🖐contributors]: https://github.com/galtzo-floss/stone_checksums/graphs/contributors
183
+ [🚎contributors-gl]: https://gitlab.com/galtzo-floss/stone_checksums/-/graphs/main
184
+ [🖐contributors-img]: https://contrib.rocks/image?repo=galtzo-floss/stone_checksums
121
185
  [💎rubygems]: https://rubygems.org
122
186
  [🔒️rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
123
187
  [🔒️rubygems-checksums-pr]: https://github.com/rubygems/rubygems/pull/6022
124
188
  [🔒️rubygems-guides-pr]: https://github.com/rubygems/guides/pull/325
189
+ [💎stone_checksums]: https://github.com/galtzo-floss/stone_checksums
125
190
  [📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
126
191
  [📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat
127
192
  [📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
128
193
  [📌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
194
  [🏃‍♂️runner-tool-cache]: https://github.com/ruby/ruby-builder/releases/tag/toolcache