kettle-soup-cover 1.1.1 → 1.1.2
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 +51 -1
- data/CITATION.cff +9 -9
- data/CODE_OF_CONDUCT.md +3 -4
- data/CONTRIBUTING.md +153 -37
- data/FUNDING.md +74 -0
- data/LICENSE.md +12 -0
- data/README.md +156 -227
- data/RUBOCOP.md +71 -0
- data/SECURITY.md +4 -4
- data/certs/pboling.pem +27 -0
- data/exe/kettle-soup-cover +8 -5
- data/lib/kettle/change.rb +1 -1
- data/lib/kettle/soup/cover/config.rb +6 -0
- data/lib/kettle/soup/cover/constants.rb +36 -2
- data/lib/kettle/soup/cover/loaders.rb +8 -8
- data/lib/kettle/soup/cover/rakelib/coverage.rake +3 -3
- data/lib/kettle/soup/cover/rakelib/turbo_tests.rake +15 -0
- data/lib/kettle/soup/cover/version.rb +2 -1
- data/lib/kettle/soup/cover.rb +102 -0
- data/sig/kettle/soup/cover/version.rbs +1 -0
- data.tar.gz.sig +0 -0
- metadata +53 -43
- metadata.gz.sig +0 -0
- data/LICENSE.txt +0 -21
- data/REEK +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f01008c0daa0eceaa622d9f879a064cfc0e035e60bd8a92072182c4a26c45260
|
|
4
|
+
data.tar.gz: 7d57d55201e3d214a30bb351b290be94973f88f516d6b96856b489d723d64cfb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 72b6248a8d8d2bb70ab4a6176ca35da2c2e5395e905afd516224dca6147ebb3d2dadd85f61242769aa2bc8f6ccbabfd4db0d51f7ce200ab9f6b8019b1910067d
|
|
7
|
+
data.tar.gz: 0f7da5beaacc56087486cc68349d85eb1b2be0e36ec7225af192767117ea8325916056a703d18eac9950130ca60c9d672e7529fa8434e9408108ded50aabd5c8
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/CHANGELOG.md
CHANGED
|
@@ -28,8 +28,55 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
28
28
|
|
|
29
29
|
### Fixed
|
|
30
30
|
|
|
31
|
+
- Removed duplicate-load warnings in the spec bootstrap while preserving coverage
|
|
32
|
+
tracking for the library under test.
|
|
33
|
+
- Covered Ruby 4.0.5 / SimpleCov branch paths that were causing `bin/rake` to
|
|
34
|
+
fail the configured coverage gate.
|
|
35
|
+
- Stabilized self-test coverage for rake task files so randomized spec order no
|
|
36
|
+
longer changes the final branch coverage result.
|
|
37
|
+
- Removed the duplicate RuboCop Gradual run from the style workflow and fixed
|
|
38
|
+
the generated style appraisal Gemfile for Ruby 4 extracted stdlibs.
|
|
39
|
+
- Removed the duplicate current workflow job caused by stale matrix axes.
|
|
40
|
+
- Marked generated workflow files as template-owned to prevent stale YAML keys
|
|
41
|
+
from surviving future template runs.
|
|
42
|
+
|
|
31
43
|
### Security
|
|
32
44
|
|
|
45
|
+
## [1.1.2] - 2026-05-23
|
|
46
|
+
|
|
47
|
+
- TAG: [v1.1.2][1.1.2t]
|
|
48
|
+
- COVERAGE: 96.06% -- 195/203 lines in 11 files
|
|
49
|
+
- BRANCH COVERAGE: 80.00% -- 40/50 branches in 11 files
|
|
50
|
+
- 18.46% documented
|
|
51
|
+
|
|
52
|
+
### Added
|
|
53
|
+
|
|
54
|
+
- `CLEAN_RESULTSET` / `K_SOUP_COV_CLEAN_RESULTSET`: deletes `coverage/.resultset.json`
|
|
55
|
+
before SimpleCov starts to prevent stale entries from prior runs (e.g. after a refactor
|
|
56
|
+
that shifts line/branch IDs) from producing phantom uncovered branches. Defaults to
|
|
57
|
+
`false` on CI (each job already starts clean) and `true` locally (where developers
|
|
58
|
+
re-run tests frequently). Override via `K_SOUP_COV_CLEAN_RESULTSET=true/false` or by
|
|
59
|
+
setting the constant directly in Ruby. `Kettle::Soup::Cover.clean_resultset!` is also
|
|
60
|
+
exposed as a public method for callers who want to trigger cleanup explicitly.
|
|
61
|
+
**Note:** set `K_SOUP_COV_CLEAN_RESULTSET=false` inside `.simplecov_spawn.rb` so
|
|
62
|
+
spawned subprocesses do not wipe the resultset being accumulated by the main process.
|
|
63
|
+
- Added `turbo_tests:setup` and `turbo_tests:cleanup` rake hooks for
|
|
64
|
+
`turbo_tests2` coverage collection.
|
|
65
|
+
- Added `K_SOUP_COV_TURBO_TESTS` and `K_SOUP_COV_TURBO_TESTS_DIR` support so
|
|
66
|
+
parallel workers write coverage under per-worker directories and the cleanup
|
|
67
|
+
hook can collate the resultsets.
|
|
68
|
+
|
|
69
|
+
### Changed
|
|
70
|
+
|
|
71
|
+
- Updated documentation on hostile takeover of RubyGems
|
|
72
|
+
- https://dev.to/galtzo/hostile-takeover-of-rubygems-my-thoughts-5hlo
|
|
73
|
+
|
|
74
|
+
### Fixed
|
|
75
|
+
|
|
76
|
+
- Deferred hard coverage minimum enforcement for `turbo_tests2` workers to the
|
|
77
|
+
final collated coverage report, so individual workers with partial coverage do
|
|
78
|
+
not fail before merged coverage is available.
|
|
79
|
+
|
|
33
80
|
## [1.1.1] - 2025-12-28
|
|
34
81
|
|
|
35
82
|
- TAG: [v1.1.1][1.1.1t]
|
|
@@ -287,9 +334,12 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
287
334
|
- `K_SOUP_COV_*`
|
|
288
335
|
|
|
289
336
|
## [0.1.0] - 2023-10-17
|
|
337
|
+
|
|
290
338
|
- Initial release
|
|
291
339
|
|
|
292
|
-
[Unreleased]: https://github.com/kettle-rb/kettle-soup-cover/compare/v1.1.
|
|
340
|
+
[Unreleased]: https://github.com/kettle-rb/kettle-soup-cover/compare/v1.1.2...HEAD
|
|
341
|
+
[1.1.2]: https://github.com/kettle-rb/kettle-soup-cover/compare/v1.1.1...v1.1.2
|
|
342
|
+
[1.1.2t]: https://github.com/kettle-rb/kettle-soup-cover/releases/tag/v1.1.2
|
|
293
343
|
[1.1.1]: https://github.com/kettle-rb/kettle-soup-cover/compare/v1.1.0...v1.1.1
|
|
294
344
|
[1.1.1t]: https://github.com/kettle-rb/kettle-soup-cover/releases/tag/v1.1.1
|
|
295
345
|
[1.1.0]: https://github.com/kettle-rb/kettle-soup-cover/compare/v1.0.10...v1.1.0
|
data/CITATION.cff
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
cff-version: 1.2.0
|
|
2
|
-
title:
|
|
2
|
+
title: "kettle-soup-cover"
|
|
3
3
|
message: >-
|
|
4
4
|
If you use this work and you want to cite it,
|
|
5
5
|
then you can use the metadata from this file.
|
|
6
6
|
type: software
|
|
7
7
|
authors:
|
|
8
|
-
- given-names: Peter
|
|
9
|
-
family-names: Boling
|
|
10
|
-
email:
|
|
11
|
-
affiliation:
|
|
8
|
+
- given-names: "Peter H."
|
|
9
|
+
family-names: "Boling"
|
|
10
|
+
email: "floss@galtzo.com"
|
|
11
|
+
affiliation: "galtzo.com"
|
|
12
12
|
orcid: 'https://orcid.org/0009-0008-8519-441X'
|
|
13
13
|
identifiers:
|
|
14
14
|
- type: url
|
|
15
|
-
value: 'https://github.com/kettle-rb/kettle-soup-cover
|
|
16
|
-
description:
|
|
17
|
-
repository-code: 'https://github.com/kettle-rb/kettle-soup-cover
|
|
15
|
+
value: 'https://github.com/kettle-rb/kettle-soup-cover'
|
|
16
|
+
description: "kettle-soup-cover"
|
|
17
|
+
repository-code: 'https://github.com/kettle-rb/kettle-soup-cover'
|
|
18
18
|
abstract: >-
|
|
19
|
-
|
|
19
|
+
kettle-soup-cover
|
|
20
20
|
license: See license file
|
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
|
|
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
|
-
[🚂
|
|
135
|
-
[🚂
|
|
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,17 +1,24 @@
|
|
|
1
1
|
# Contributing
|
|
2
2
|
|
|
3
|
-
Bug reports and pull requests are welcome on GitLab
|
|
4
|
-
|
|
3
|
+
Bug reports and pull requests are welcome on [CodeBerg][📜src-cb], [GitLab][📜src-gl], or [GitHub][📜src-gh].
|
|
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
|
|
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
|
-
|
|
9
|
+
Remember to [![Keep A Changelog][📗keep-changelog-img]][📗keep-changelog] if you make changes.
|
|
11
10
|
|
|
12
|
-
##
|
|
11
|
+
## Developer Certificate of Origin
|
|
13
12
|
|
|
14
|
-
|
|
13
|
+
In order to protect users of this project, we require all contributors to comply with the
|
|
14
|
+
[Developer Certificate of Origin](https://developercertificate.org/).
|
|
15
|
+
This ensures that all contributions are properly licensed and attributed.
|
|
16
|
+
|
|
17
|
+
## Help out!
|
|
18
|
+
|
|
19
|
+
Take a look at the open issues and pull requests, or use the gem and find something to improve.
|
|
20
|
+
|
|
21
|
+
Follow these instructions:
|
|
15
22
|
|
|
16
23
|
1. Join the Discord: [![Live Chat on Discord][✉️discord-invite-img]][✉️discord-invite]
|
|
17
24
|
2. Fork the repository
|
|
@@ -23,24 +30,102 @@ Simply follow these instructions:
|
|
|
23
30
|
8. Create new Pull Request.
|
|
24
31
|
9. Announce it in the channel for this org in the [Discord][✉️discord-invite]!
|
|
25
32
|
|
|
26
|
-
##
|
|
33
|
+
## Executables vs Rake tasks
|
|
34
|
+
|
|
35
|
+
Executables shipped by dependencies, such as kettle-dev, and stone_checksums, are available
|
|
36
|
+
after running `bin/setup`. These include:
|
|
37
|
+
|
|
38
|
+
- gem_checksums
|
|
39
|
+
- kettle-changelog
|
|
40
|
+
- kettle-commit-msg
|
|
41
|
+
- kettle-dev-setup
|
|
42
|
+
- kettle-dvcs
|
|
43
|
+
- kettle-pre-release
|
|
44
|
+
- kettle-readme-backers
|
|
45
|
+
- kettle-release
|
|
46
|
+
|
|
47
|
+
There are many Rake tasks available as well. You can see them by running:
|
|
48
|
+
|
|
49
|
+
```shell
|
|
50
|
+
bin/rake -T
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Environment Variables for Local Development
|
|
54
|
+
|
|
55
|
+
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.
|
|
56
|
+
|
|
57
|
+
General/runtime
|
|
58
|
+
- DEBUG: Enable extra internal logging for this library (default: false)
|
|
59
|
+
- REQUIRE_BENCH: Enable `require_bench` to profile requires (default: false)
|
|
60
|
+
- CI: When set to true, adjusts default rake tasks toward CI behavior
|
|
61
|
+
|
|
62
|
+
Coverage (kettle-soup-cover / SimpleCov)
|
|
63
|
+
- K_SOUP_COV_DO: Enable coverage collection (default: true in `mise.toml`)
|
|
64
|
+
- K_SOUP_COV_FORMATTERS: Comma-separated list of formatters (html, xml, rcov, lcov, json, tty)
|
|
65
|
+
- K_SOUP_COV_MIN_LINE: Minimum line coverage threshold (integer, e.g., 100)
|
|
66
|
+
- K_SOUP_COV_MIN_BRANCH: Minimum branch coverage threshold (integer, e.g., 100)
|
|
67
|
+
- K_SOUP_COV_MIN_HARD: Fail the run if thresholds are not met (true/false)
|
|
68
|
+
- K_SOUP_COV_MULTI_FORMATTERS: Enable multiple formatters at once (true/false)
|
|
69
|
+
- K_SOUP_COV_OPEN_BIN: Path to browser opener for HTML (empty disables auto-open)
|
|
70
|
+
- MAX_ROWS: Limit console output rows for simplecov-console (e.g., 1)
|
|
71
|
+
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.
|
|
72
|
+
|
|
73
|
+
GitHub API and CI helpers
|
|
74
|
+
- GITHUB_TOKEN or GH_TOKEN: Token used by `ci:act` and release workflow checks to query GitHub Actions status at higher rate limits
|
|
75
|
+
|
|
76
|
+
Releasing and signing
|
|
77
|
+
- SKIP_GEM_SIGNING: If set, skip gem signing during build/release
|
|
78
|
+
- GEM_CERT_USER: Username for selecting your public cert in `certs/<USER>.pem` (defaults to $USER)
|
|
79
|
+
- SOURCE_DATE_EPOCH: Reproducible build timestamp.
|
|
80
|
+
- `kettle-release` will set this automatically for the session.
|
|
81
|
+
- Not needed on bundler >= 2.7.0, as reproducible builds have become the default.
|
|
82
|
+
|
|
83
|
+
Git hooks and commit message helpers (exe/kettle-commit-msg)
|
|
84
|
+
- GIT_HOOK_BRANCH_VALIDATE: Branch name validation mode (e.g., `jira`) or `false` to disable
|
|
85
|
+
- GIT_HOOK_FOOTER_APPEND: Append a footer to commit messages when goalie allows (true/false)
|
|
86
|
+
- GIT_HOOK_FOOTER_SENTINEL: Required when footer append is enabled — a unique first-line sentinel to prevent duplicates
|
|
87
|
+
- GIT_HOOK_FOOTER_APPEND_DEBUG: Extra debug output in the footer template (true/false)
|
|
88
|
+
|
|
89
|
+
For a quick starting point, this repository’s `mise.toml` defines the shared defaults, and `.env.local` can override them locally. Copy `.env.local.example` to `.env.local`, use `KEY=value` lines, and either activate `mise` in your shell or run commands through `mise exec -C /path/to/project -- ...`.
|
|
90
|
+
|
|
91
|
+
## Appraisals
|
|
92
|
+
|
|
93
|
+
From time to time the [appraisal2][🚎appraisal2] gemfiles in `gemfiles/` will need to be updated.
|
|
94
|
+
They are created and updated with the commands:
|
|
27
95
|
|
|
28
|
-
|
|
96
|
+
```console
|
|
97
|
+
bin/rake appraisal:update
|
|
98
|
+
```
|
|
29
99
|
|
|
30
|
-
|
|
100
|
+
If you need to reset all gemfiles/*.gemfile.lock files:
|
|
31
101
|
|
|
32
102
|
```console
|
|
33
|
-
|
|
103
|
+
bin/rake appraisal:reset
|
|
34
104
|
```
|
|
35
105
|
|
|
106
|
+
When adding an appraisal to CI, check the [runner tool cache][🏃♂️runner-tool-cache] to see which runner to use.
|
|
107
|
+
|
|
36
108
|
## Run Tests
|
|
37
109
|
|
|
38
|
-
|
|
110
|
+
Run tests via `kettle-test` (provided by `kettle-test`). It runs RSpec, writes the full log to
|
|
111
|
+
`tmp/kettle-test/rspec-TIMESTAMP.log`, and prints a compact highlight block with timing, seed,
|
|
112
|
+
pass/fail count, failing example list, and SimpleCov coverage percentages.
|
|
39
113
|
|
|
40
114
|
```console
|
|
41
|
-
bundle exec
|
|
115
|
+
bundle exec kettle-test
|
|
42
116
|
```
|
|
43
117
|
|
|
118
|
+
For targeted runs, disable the hard coverage threshold to avoid false failures:
|
|
119
|
+
|
|
120
|
+
```console
|
|
121
|
+
K_SOUP_COV_MIN_HARD=false bundle exec kettle-test spec/path/to/spec.rb
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Spec organization (required)
|
|
125
|
+
|
|
126
|
+
- One spec file per class/module. 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 exactly: `lib/kettle/soup/cover/my_class.rb` -> `spec/kettle/soup/cover/my_class_spec.rb`.
|
|
127
|
+
- Exception: Integration specs that intentionally span multiple classes. Place these under `spec/integration/` (or a clearly named integration folder), and do not directly mirror a single class. Name them after the scenario, not a class.
|
|
128
|
+
|
|
44
129
|
## Lint It
|
|
45
130
|
|
|
46
131
|
Run all the default tasks, which includes running the gradually autocorrecting linter, `rubocop-gradual`.
|
|
@@ -55,6 +140,19 @@ Or just run the linter.
|
|
|
55
140
|
bundle exec rake rubocop_gradual:autocorrect
|
|
56
141
|
```
|
|
57
142
|
|
|
143
|
+
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.
|
|
144
|
+
|
|
145
|
+
### Important: Do not add inline RuboCop disables
|
|
146
|
+
|
|
147
|
+
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:
|
|
148
|
+
|
|
149
|
+
- Prefer configuration-based exclusions when a rule should not apply to certain paths or files (e.g., via `.rubocop.yml`).
|
|
150
|
+
- When a violation is temporary, and you plan to fix it later, record it in `.rubocop_gradual.lock` using the gradual workflow:
|
|
151
|
+
- `bundle exec rake rubocop_gradual:autocorrect` (preferred)
|
|
152
|
+
- `bundle exec rake rubocop_gradual:force_update` (only when you cannot fix the violations immediately)
|
|
153
|
+
|
|
154
|
+
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.
|
|
155
|
+
|
|
58
156
|
## Contributors
|
|
59
157
|
|
|
60
158
|
Your picture could be here!
|
|
@@ -69,51 +167,69 @@ Also see GitLab Contributors: [https://gitlab.com/kettle-rb/kettle-soup-cover/-/
|
|
|
69
167
|
|
|
70
168
|
### One-time, Per-maintainer, Setup
|
|
71
169
|
|
|
72
|
-
**IMPORTANT**:
|
|
73
|
-
|
|
170
|
+
**IMPORTANT**: To sign a build,
|
|
171
|
+
a public key for signing gems will need to be picked up by the line in the
|
|
74
172
|
`gemspec` defining the `spec.cert_chain` (check the relevant ENV variables there).
|
|
75
|
-
All releases
|
|
173
|
+
All releases are signed releases.
|
|
76
174
|
See: [RubyGems Security Guide][🔒️rubygems-security-guide]
|
|
77
175
|
|
|
78
|
-
NOTE: To build without signing the gem
|
|
176
|
+
NOTE: To build without signing the gem set `SKIP_GEM_SIGNING` to any value in the environment.
|
|
79
177
|
|
|
80
178
|
### To release a new version:
|
|
81
179
|
|
|
82
|
-
|
|
180
|
+
#### Automated process
|
|
181
|
+
|
|
182
|
+
1. Update version.rb to contain the correct version-to-be-released.
|
|
183
|
+
2. Run `bundle exec kettle-changelog`.
|
|
184
|
+
3. Run `bundle exec kettle-release`.
|
|
185
|
+
4. Stay awake and monitor the release process for any errors, and answer any prompts.
|
|
186
|
+
|
|
187
|
+
#### Manual process
|
|
188
|
+
|
|
189
|
+
1. Run `bin/setup && bin/rake` as a "test, coverage, & linting" sanity check
|
|
83
190
|
2. Update the version number in `version.rb`, and ensure `CHANGELOG.md` reflects changes
|
|
84
191
|
3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`
|
|
85
|
-
4. Run `
|
|
86
|
-
5. Run `git
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
7. Run `git
|
|
90
|
-
8. Run `git
|
|
91
|
-
9.
|
|
192
|
+
4. Run `bin/rake yard` to regenerate the docs site using the canonical docs task
|
|
193
|
+
5. Run `git commit -am "🔖 Prepare release v<VERSION>"` to commit the changes
|
|
194
|
+
6. Run `git push` to trigger the final CI pipeline before release, and merge PRs
|
|
195
|
+
- NOTE: Remember to [check the build][🧪build].
|
|
196
|
+
7. Run `export GIT_TRUNK_BRANCH_NAME="$(git remote show origin | grep 'HEAD branch' | cut -d ' ' -f5)" && echo $GIT_TRUNK_BRANCH_NAME`
|
|
197
|
+
8. Run `git checkout $GIT_TRUNK_BRANCH_NAME`
|
|
198
|
+
9. Run `git pull origin $GIT_TRUNK_BRANCH_NAME` to ensure latest trunk code
|
|
199
|
+
10. 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
|
|
200
|
+
- If your Bundler is >= 2.7.0, you can skip this; builds are reproducible by default.
|
|
92
201
|
- Run `export SOURCE_DATE_EPOCH=$EPOCHSECONDS && echo $SOURCE_DATE_EPOCH`
|
|
93
202
|
- If the echo above has no output, then it didn't work.
|
|
94
|
-
- Note
|
|
203
|
+
- Note: `zsh/datetime` module is needed, if running `zsh`.
|
|
95
204
|
- In older versions of `bash` you can use `date +%s` instead, i.e. `export SOURCE_DATE_EPOCH=$(date +%s) && echo $SOURCE_DATE_EPOCH`
|
|
96
|
-
|
|
97
|
-
|
|
205
|
+
11. Run `bundle exec rake build`
|
|
206
|
+
12. Run `bin/gem_checksums` (more context [1][🔒️rubygems-checksums-pr], [2][🔒️rubygems-guides-pr])
|
|
98
207
|
to create SHA-256 and SHA-512 checksums. This functionality is provided by the `stone_checksums`
|
|
99
208
|
[gem][💎stone_checksums].
|
|
100
|
-
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
209
|
+
- The script automatically commits but does not push the checksums
|
|
210
|
+
13. Sanity check the SHA256, comparing with the output from the `bin/gem_checksums` command:
|
|
211
|
+
- `sha256sum pkg/<gem name>-<version>.gem`
|
|
212
|
+
14. Run `bundle exec rake release` which will create a git tag for the version,
|
|
213
|
+
push git commits and tags, and push the `.gem` file to the gem host configured in the gemspec.
|
|
214
|
+
|
|
215
|
+
[📜src-gl]: https://gitlab.com/kettle-rb/kettle-soup-cover
|
|
216
|
+
[📜src-cb]: https://codeberg.org/kettle-rb/kettle-soup-cover
|
|
217
|
+
[📜src-gh]: https://github.com/kettle-rb/kettle-soup-cover
|
|
105
218
|
[🧪build]: https://github.com/kettle-rb/kettle-soup-cover/actions
|
|
106
|
-
[🤝conduct]: https://
|
|
219
|
+
[🤝conduct]: https://github.com/kettle-rb/kettle-soup-cover/blob/main/CODE_OF_CONDUCT.md
|
|
107
220
|
[🖐contrib-rocks]: https://contrib.rocks
|
|
108
221
|
[🖐contributors]: https://github.com/kettle-rb/kettle-soup-cover/graphs/contributors
|
|
109
222
|
[🚎contributors-gl]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/graphs/main
|
|
110
223
|
[🖐contributors-img]: https://contrib.rocks/image?repo=kettle-rb/kettle-soup-cover
|
|
111
|
-
[💎
|
|
224
|
+
[💎gem-coop]: https://gem.coop
|
|
112
225
|
[🔒️rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
|
|
113
226
|
[🔒️rubygems-checksums-pr]: https://github.com/rubygems/rubygems/pull/6022
|
|
114
227
|
[🔒️rubygems-guides-pr]: https://github.com/rubygems/guides/pull/325
|
|
115
|
-
[💎stone_checksums]: https://github.com/
|
|
228
|
+
[💎stone_checksums]: https://github.com/galtzo-floss/stone_checksums
|
|
116
229
|
[📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
|
|
117
230
|
[📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat
|
|
231
|
+
[📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
|
|
232
|
+
[📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
|
|
233
|
+
[🚎appraisal2]: https://github.com/appraisal-rb/appraisal2
|
|
234
|
+
[🏃♂️runner-tool-cache]: https://github.com/ruby/ruby-builder/releases/tag/toolcache
|
|
118
235
|
[✉️discord-invite]: https://discord.gg/3qme4XHNKN
|
|
119
|
-
[✉️discord-invite-img]: https://img.shields.io/discord/1373797679469170758?style=for-the-badge
|
data/FUNDING.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<!-- RELEASE-NOTES-FOOTER-START -->
|
|
2
|
+
|
|
3
|
+
Official Discord 👉️ [![Live Chat on Discord][✉️discord-invite-img]][✉️discord-invite]
|
|
4
|
+
|
|
5
|
+
Many paths lead to being a sponsor or a backer of this project. Are you on such a path?
|
|
6
|
+
|
|
7
|
+
[![OpenCollective Backers][🖇osc-backers-i]][🖇osc-backers] [![OpenCollective Sponsors][🖇osc-sponsors-i]][🖇osc-sponsors] [![Sponsor Me on Github][🖇sponsor-img]][🖇sponsor] [![Liberapay Goal Progress][⛳liberapay-img]][⛳liberapay] [![Donate on PayPal][🖇paypal-img]][🖇paypal]
|
|
8
|
+
|
|
9
|
+
[![Buy me a coffee][🖇buyme-small-img]][🖇buyme] [![Donate on Polar][🖇polar-img]][🖇polar] [![Donate to my FLOSS efforts at ko-fi.com][🖇kofi-img]][🖇kofi] [![Donate to my FLOSS efforts using Patreon][🖇patreon-img]][🖇patreon]
|
|
10
|
+
|
|
11
|
+
[⛳liberapay-img]: https://img.shields.io/liberapay/goal/pboling.svg?logo=liberapay&color=a51611&style=flat
|
|
12
|
+
[⛳liberapay]: https://liberapay.com/pboling/donate
|
|
13
|
+
[🖇osc-backers]: https://opencollective.com/kettle-rb#backer
|
|
14
|
+
[🖇osc-backers-i]: https://opencollective.com/kettle-rb/backers/badge.svg?style=flat
|
|
15
|
+
[🖇osc-sponsors]: https://opencollective.com/kettle-rb#sponsor
|
|
16
|
+
[🖇osc-sponsors-i]: https://opencollective.com/kettle-rb/sponsors/badge.svg?style=flat
|
|
17
|
+
[🖇sponsor-img]: https://img.shields.io/badge/Sponsor_Me!-pboling.svg?style=social&logo=github
|
|
18
|
+
[🖇sponsor]: https://github.com/sponsors/pboling
|
|
19
|
+
[🖇polar-img]: https://img.shields.io/badge/polar-donate-a51611.svg?style=flat
|
|
20
|
+
[🖇polar]: https://polar.sh/pboling
|
|
21
|
+
[🖇kofi-img]: https://img.shields.io/badge/ko--fi-%E2%9C%93-a51611.svg?style=flat
|
|
22
|
+
[🖇kofi]: https://ko-fi.com/pboling
|
|
23
|
+
[🖇patreon-img]: https://img.shields.io/badge/patreon-donate-a51611.svg?style=flat
|
|
24
|
+
[🖇patreon]: https://patreon.com/galtzo
|
|
25
|
+
[🖇buyme-small-img]: https://img.shields.io/badge/buy_me_a_coffee-%E2%9C%93-a51611.svg?style=flat
|
|
26
|
+
[🖇buyme]: https://www.buymeacoffee.com/pboling
|
|
27
|
+
[🖇paypal-img]: https://img.shields.io/badge/donate-paypal-a51611.svg?style=flat&logo=paypal
|
|
28
|
+
[🖇paypal]: https://www.paypal.com/paypalme/peterboling
|
|
29
|
+
[✉️discord-invite]: https://discord.gg/3qme4XHNKN
|
|
30
|
+
[✉️discord-invite-img]: https://img.shields.io/discord/1373797679469170758?style=flat
|
|
31
|
+
|
|
32
|
+
<!-- RELEASE-NOTES-FOOTER-END -->
|
|
33
|
+
|
|
34
|
+
# 🤑 A request for help
|
|
35
|
+
|
|
36
|
+
Maintainers have teeth and need to pay their dentists.
|
|
37
|
+
After getting laid off in an RIF in March, and encountering difficulty finding a new one,
|
|
38
|
+
I began spending most of my time building open source tools.
|
|
39
|
+
I'm hoping to be able to pay for my kids' health insurance this month,
|
|
40
|
+
so if you value the work I am doing, I need your support.
|
|
41
|
+
Please consider sponsoring me or the project.
|
|
42
|
+
|
|
43
|
+
To join the community or get help 👇️ Join the Discord.
|
|
44
|
+
|
|
45
|
+
[![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
|
|
46
|
+
|
|
47
|
+
To say "thanks!" ☝️ Join the Discord or 👇️ send money.
|
|
48
|
+
|
|
49
|
+
[![Sponsor kettle-rb/kettle-soup-cover on Open Source Collective][🖇osc-all-bottom-img]][🖇osc] 💌 [![Sponsor me on GitHub Sponsors][🖇sponsor-bottom-img]][🖇sponsor] 💌 [![Sponsor me on Liberapay][⛳liberapay-bottom-img]][⛳liberapay] 💌 [![Donate on PayPal][🖇paypal-bottom-img]][🖇paypal]
|
|
50
|
+
|
|
51
|
+
# Another Way to Support Open Source Software
|
|
52
|
+
|
|
53
|
+
I’m driven by a passion to foster a thriving open-source community – a space where people can tackle complex problems, no matter how small. Revitalizing libraries that have fallen into disrepair, and building new libraries focused on solving real-world challenges, are my passions. I was recently affected by layoffs, and the tech jobs market is unwelcoming. I’m reaching out here because your support would significantly aid my efforts to provide for my family, and my farm (11 🐔 chickens, 2 🐶 dogs, 3 🐰 rabbits, 8 🐈 cats).
|
|
54
|
+
|
|
55
|
+
If you work at a company that uses my work, please encourage them to support me as a corporate sponsor. My work on gems you use might show up in `bundle fund`.
|
|
56
|
+
|
|
57
|
+
I’m developing a new library, [floss_funding][🖇floss-funding-gem], designed to empower open-source developers like myself to get paid for the work we do, in a sustainable way. Please give it a look.
|
|
58
|
+
|
|
59
|
+
**[Floss-Funding.dev][🖇floss-funding.dev]: 👉️ No network calls. 👉️ No tracking. 👉️ No oversight. 👉️ Minimal crypto hashing. 💡 Easily disabled nags**
|
|
60
|
+
|
|
61
|
+
[⛳liberapay-bottom-img]: https://img.shields.io/liberapay/goal/pboling.svg?style=for-the-badge&logo=liberapay&color=a51611
|
|
62
|
+
[🖇osc-all-img]: https://img.shields.io/opencollective/all/kettle-rb
|
|
63
|
+
[🖇osc-sponsors-img]: https://img.shields.io/opencollective/sponsors/kettle-rb
|
|
64
|
+
[🖇osc-backers-img]: https://img.shields.io/opencollective/backers/kettle-rb
|
|
65
|
+
[🖇osc-all-bottom-img]: https://img.shields.io/opencollective/all/kettle-rb?style=for-the-badge
|
|
66
|
+
[🖇osc-sponsors-bottom-img]: https://img.shields.io/opencollective/sponsors/kettle-rb?style=for-the-badge
|
|
67
|
+
[🖇osc-backers-bottom-img]: https://img.shields.io/opencollective/backers/kettle-rb?style=for-the-badge
|
|
68
|
+
[🖇osc]: https://opencollective.com/kettle-rb
|
|
69
|
+
[🖇sponsor-bottom-img]: https://img.shields.io/badge/Sponsor_Me!-pboling-blue?style=for-the-badge&logo=github
|
|
70
|
+
[🖇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
|
|
71
|
+
[🖇paypal-bottom-img]: https://img.shields.io/badge/donate-paypal-a51611.svg?style=for-the-badge&logo=paypal&color=0A0A0A
|
|
72
|
+
[🖇floss-funding.dev]: https://floss-funding.dev
|
|
73
|
+
[🖇floss-funding-gem]: https://github.com/galtzo-floss/floss_funding
|
|
74
|
+
[✉️discord-invite-img-ftb]: https://img.shields.io/discord/1373797679469170758?style=for-the-badge
|
data/LICENSE.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# License
|
|
2
|
+
|
|
3
|
+
This project is made available under the following license.
|
|
4
|
+
Choose the option that best fits your use case:
|
|
5
|
+
|
|
6
|
+
- [AGPL-3.0-only](AGPL-3.0-only.md)
|
|
7
|
+
|
|
8
|
+
If none of the above licenses fit your use case, please [contact us](mailto:floss@galtzo.com) to discuss a custom commercial license.
|
|
9
|
+
|
|
10
|
+
## Copyright Notice
|
|
11
|
+
|
|
12
|
+
Copyright (c) 2023-2026 Peter H. Boling
|