version_gem 1.1.9 → 1.1.15

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.
data/CONTRIBUTING.md DELETED
@@ -1,200 +0,0 @@
1
- # Contributing
2
-
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
- the [code of conduct][🤝conduct].
6
-
7
- To submit a patch, please fork the project, create a patch with tests, and send a pull request.
8
-
9
- Remember to [![Keep A Changelog][📗keep-changelog-img]][📗keep-changelog] if you make changes.
10
-
11
- ## Help out!
12
-
13
- Take a look at the `reek` list which is the file called `REEK` and find something to improve.
14
-
15
- Follow these instructions:
16
-
17
- 1. Fork the repository
18
- 2. Create a feature branch (`git checkout -b my-new-feature`)
19
- 3. Make some fixes.
20
- 4. Commit changes (`git commit -am 'Added some feature'`)
21
- 5. Push to the branch (`git push origin my-new-feature`)
22
- 6. Make sure to add tests for it. This is important, so it doesn't break in a future release.
23
- 7. Create new Pull Request.
24
-
25
- ## Environment Variables for Local Development
26
-
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.
44
-
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
47
-
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][🚎appraisal2] gemfiles in `gemfiles/` will need to be updated.
64
- They are created and updated with the commands:
65
-
66
- ```console
67
- bin/rake appraisal:update
68
- ```
69
-
70
- When adding an appraisal to CI, check the [runner tool cache][🏃‍♂️runner-tool-cache] to see which runner to use.
71
-
72
- ## The Reek List
73
-
74
- Take a look at the `reek` list which is the file called `REEK` and find something to improve.
75
-
76
- To refresh the `reek` list:
77
-
78
- ```console
79
- bundle exec reek > REEK
80
- ```
81
-
82
- ## Run Tests
83
-
84
- To run all tests
85
-
86
- ```console
87
- bundle exec rake test
88
- ```
89
-
90
- ### Spec organization (required)
91
-
92
- - 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/version_gem/release_cli.rb` -> `spec/version_gem/release_cli_spec.rb`.
93
- - Never add a second spec file for the same class/module. Examples of disallowed names: `*_more_spec.rb`, `*_extra_spec.rb`, `*_status_spec.rb`, or any other suffix that still targets the same class. If you find yourself wanting a second file, merge those examples into the canonical spec file for that class/module.
94
- - 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.
95
- - Migration note: If a duplicate spec file exists, move all examples into the canonical file and delete the duplicate. Do not leave stubs or empty files behind.
96
-
97
- ## Lint It
98
-
99
- Run all the default tasks, which includes running the gradually autocorrecting linter, `rubocop-gradual`.
100
-
101
- ```console
102
- bundle exec rake
103
- ```
104
-
105
- Or just run the linter.
106
-
107
- ```console
108
- bundle exec rake rubocop_gradual:autocorrect
109
- ```
110
-
111
- 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.
112
-
113
- ### Important: Do not add inline RuboCop disables
114
-
115
- 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:
116
-
117
- - Prefer configuration-based exclusions when a rule should not apply to certain paths or files (e.g., via `.rubocop.yml`).
118
- - When a violation is temporary and you plan to fix it later, record it in `.rubocop_gradual.lock` using the gradual workflow:
119
- - `bundle exec rake rubocop_gradual:autocorrect` (preferred)
120
- - `bundle exec rake rubocop_gradual:force_update` (only when you cannot fix the violations immediately)
121
-
122
- 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.
123
-
124
- ## Contributors
125
-
126
- Your picture could be here!
127
-
128
- [![Contributors][🖐contributors-img]][🖐contributors]
129
-
130
- Made with [contributors-img][🖐contrib-rocks].
131
-
132
- Also see GitLab Contributors: [https://gitlab.com/ruby-oauth/version_gem/-/graphs/main][🚎contributors-gl]
133
-
134
- ## For Maintainers
135
-
136
- ### One-time, Per-maintainer, Setup
137
-
138
- **IMPORTANT**: To sign a build,
139
- a public key for signing gems will need to be picked up by the line in the
140
- `gemspec` defining the `spec.cert_chain` (check the relevant ENV variables there).
141
- All releases to RubyGems.org are signed releases.
142
- See: [RubyGems Security Guide][🔒️rubygems-security-guide]
143
-
144
- NOTE: To build without signing the gem set `SKIP_GEM_SIGNING` to any value in the environment.
145
-
146
- ### To release a new version:
147
-
148
- #### Automated process
149
-
150
- 1. Update version.rb to contian the correct version-to-be-released.
151
- 2. Run `bundle exec kettle-changelog`.
152
- 3. Run `bundle exec kettle-release`.
153
-
154
- #### Manual process
155
-
156
- 1. Run `bin/setup && bin/rake` as a "test, coverage, & linting" sanity check
157
- 2. Update the version number in `version.rb`, and ensure `CHANGELOG.md` reflects changes
158
- 3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`
159
- 4. Run `git commit -am "🔖 Prepare release v<VERSION>"` to commit the changes
160
- 5. Run `git push` to trigger the final CI pipeline before release, and merge PRs
161
- - NOTE: Remember to [check the build][🧪build].
162
- 6. Run `export GIT_TRUNK_BRANCH_NAME="$(git remote show origin | grep 'HEAD branch' | cut -d ' ' -f5)" && echo $GIT_TRUNK_BRANCH_NAME`
163
- 7. Run `git checkout $GIT_TRUNK_BRANCH_NAME`
164
- 8. Run `git pull origin $GIT_TRUNK_BRANCH_NAME` to ensure latest trunk code
165
- 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
166
- - If your Bundler is >= 2.7.0, you can skip this; builds are reproducible by default.
167
- - Run `export SOURCE_DATE_EPOCH=$EPOCHSECONDS && echo $SOURCE_DATE_EPOCH`
168
- - If the echo above has no output, then it didn't work.
169
- - Note: `zsh/datetime` module is needed, if running `zsh`.
170
- - In older versions of `bash` you can use `date +%s` instead, i.e. `export SOURCE_DATE_EPOCH=$(date +%s) && echo $SOURCE_DATE_EPOCH`
171
- 10. Run `bundle exec rake build`
172
- 11. Run `bin/gem_checksums` (more context [1][🔒️rubygems-checksums-pr], [2][🔒️rubygems-guides-pr])
173
- to create SHA-256 and SHA-512 checksums. This functionality is provided by the `stone_checksums`
174
- [gem][💎stone_checksums].
175
- - The script automatically commits but does not push the checksums
176
- 12. Sanity check the SHA256, comparing with the output from the `bin/gem_checksums` command:
177
- - `sha256sum pkg/<gem name>-<version>.gem`
178
- 13. Run `bundle exec rake release` which will create a git tag for the version,
179
- push git commits and tags, and push the `.gem` file to [rubygems.org][💎rubygems]
180
-
181
- [📜src-gl]: https://gitlab.com/ruby-oauth/version_gem/
182
- [📜src-cb]: https://codeberg.org/ruby-oauth/version_gem
183
- [📜src-gh]: https://github.com/ruby-oauth/version_gem
184
- [🧪build]: https://github.com/ruby-oauth/version_gem/actions
185
- [🤝conduct]: https://gitlab.com/ruby-oauth/version_gem/-/blob/main/CODE_OF_CONDUCT.md
186
- [🖐contrib-rocks]: https://contrib.rocks
187
- [🖐contributors]: https://github.com/ruby-oauth/version_gem/graphs/contributors
188
- [🚎contributors-gl]: https://gitlab.com/ruby-oauth/version_gem/-/graphs/main
189
- [🖐contributors-img]: https://contrib.rocks/image?repo=ruby-oauth/version_gem
190
- [💎rubygems]: https://rubygems.org
191
- [🔒️rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
192
- [🔒️rubygems-checksums-pr]: https://github.com/rubygems/rubygems/pull/6022
193
- [🔒️rubygems-guides-pr]: https://github.com/rubygems/guides/pull/325
194
- [💎stone_checksums]: https://github.com/galtzo-floss/stone_checksums
195
- [📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
196
- [📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat
197
- [📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
198
- [📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
199
- [🚎appraisal2]: https://github.com/appraisal-rb/appraisal2
200
- [🏃‍♂️runner-tool-cache]: https://github.com/ruby/ruby-builder/releases/tag/toolcache
data/FUNDING.md DELETED
@@ -1,77 +0,0 @@
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 or refugee efforts at ko-fi.com][🖇kofi-img]][🖇kofi] [![Donate to my FLOSS or refugee 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/ruby-oauth#backer
14
- [🖇osc-backers-i]: https://opencollective.com/ruby-oauth/backers/badge.svg?style=flat
15
- [🖇osc-sponsors]: https://opencollective.com/ruby-oauth#sponsor
16
- [🖇osc-sponsors-i]: https://opencollective.com/ruby-oauth/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-✓-a51611.svg?style=flat
22
- [🖇kofi]: https://ko-fi.com/O5O86SNP4
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-✓-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
- # 🤑 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 filled with many dozens of rejections,
38
- I'm now spending ~60+ hours a week 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 for maintaining such a great tool" ☝️ Join the Discord or 👇️ send money.
48
-
49
- [![Sponsor ruby-oauth/version_gem 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-img] 💌 [![Donate on PayPal][🖇paypal-bottom-img]][🖇paypal-img]
50
-
51
- # Another Way to Support Open Source Software
52
-
53
- > How wonderful it is that nobody need wait a single moment before starting to improve the world.<br/>
54
- >—Anne Frank
55
-
56
- 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 — totaling 79 hours of FLOSS coding over just the past seven days, a pretty regular week for me. 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).
57
-
58
- 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`.
59
-
60
- 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.
61
-
62
- **[Floss-Funding.dev][🖇floss-funding.dev]: 👉️ No network calls. 👉️ No tracking. 👉️ No oversight. 👉️ Minimal crypto hashing. 💡 Easily disabled nags**
63
-
64
- [⛳liberapay-bottom-img]: https://img.shields.io/liberapay/goal/pboling.svg?style=for-the-badge&logo=liberapay&color=a51611
65
- [🖇osc-all-img]: https://img.shields.io/opencollective/all/ruby-oauth
66
- [🖇osc-sponsors-img]: https://img.shields.io/opencollective/sponsors/ruby-oauth
67
- [🖇osc-backers-img]: https://img.shields.io/opencollective/backers/ruby-oauth
68
- [🖇osc-all-bottom-img]: https://img.shields.io/opencollective/all/ruby-oauth?style=for-the-badge
69
- [🖇osc-sponsors-bottom-img]: https://img.shields.io/opencollective/sponsors/ruby-oauth?style=for-the-badge
70
- [🖇osc-backers-bottom-img]: https://img.shields.io/opencollective/backers/ruby-oauth?style=for-the-badge
71
- [🖇osc]: https://opencollective.com/ruby-oauth
72
- [🖇sponsor-bottom-img]: https://img.shields.io/badge/Sponsor_Me!-pboling-blue?style=for-the-badge&logo=github
73
- [🖇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
74
- [🖇paypal-bottom-img]: https://img.shields.io/badge/donate-paypal-a51611.svg?style=for-the-badge&logo=paypal&color=0A0A0A
75
- [🖇floss-funding.dev]: https://floss-funding.dev
76
- [🖇floss-funding-gem]: https://github.com/galtzo-floss/floss_funding
77
- [✉️discord-invite-img-ftb]: https://img.shields.io/discord/1373797679469170758?style=for-the-badge
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
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/REEK DELETED
File without changes
data/RUBOCOP.md DELETED
@@ -1,71 +0,0 @@
1
- # RuboCop Usage Guide
2
-
3
- ## Overview
4
-
5
- A tale of two RuboCop plugin gems.
6
-
7
- ### RuboCop Gradual
8
-
9
- This project uses `rubocop_gradual` instead of vanilla RuboCop for code style checking. The `rubocop_gradual` tool allows for gradual adoption of RuboCop rules by tracking violations in a lock file.
10
-
11
- ### RuboCop LTS
12
-
13
- This project uses `rubocop-lts` to ensure, on a best-effort basis, compatibility with Ruby >= 1.9.2.
14
- RuboCop rules are meticulously configured by the `rubocop-lts` family of gems to ensure that a project is compatible with a specific version of Ruby. See: https://rubocop-lts.gitlab.io for more.
15
-
16
- ## Checking RuboCop Violations
17
-
18
- To check for RuboCop violations in this project, always use:
19
-
20
- ```bash
21
- bundle exec rake rubocop_gradual:check
22
- ```
23
-
24
- **Do not use** the standard RuboCop commands like:
25
- - `bundle exec rubocop`
26
- - `rubocop`
27
-
28
- ## Understanding the Lock File
29
-
30
- The `.rubocop_gradual.lock` file tracks all current RuboCop violations in the project. This allows the team to:
31
-
32
- 1. Prevent new violations while gradually fixing existing ones
33
- 2. Track progress on code style improvements
34
- 3. Ensure CI builds don't fail due to pre-existing violations
35
-
36
- ## Common Commands
37
-
38
- - **Check violations**
39
- - `bundle exec rake rubocop_gradual`
40
- - `bundle exec rake rubocop_gradual:check`
41
- - **(Safe) Autocorrect violations, and update lockfile if no new violations**
42
- - `bundle exec rake rubocop_gradual:autocorrect`
43
- - **Force update the lock file (w/o autocorrect) to match violations present in code**
44
- - `bundle exec rake rubocop_gradual:force_update`
45
-
46
- ## Workflow
47
-
48
- 1. Before submitting a PR, run `bundle exec rake rubocop_gradual:autocorrect`
49
- a. or just the default `bundle exec rake`, as autocorrection is a pre-requisite of the default task.
50
- 2. If there are new violations, either:
51
- - Fix them in your code
52
- - Run `bundle exec rake rubocop_gradual:force_update` to update the lock file (only for violations you can't fix immediately)
53
- 3. Commit the updated `.rubocop_gradual.lock` file along with your changes
54
-
55
- ## Never add inline RuboCop disables
56
-
57
- Do not add inline `rubocop:disable` / `rubocop:enable` comments anywhere in the codebase (including specs, except when following the few existing `rubocop:disable` patterns for a rule already being disabled elsewhere in the code). We handle exceptions in two supported ways:
58
-
59
- - Permanent/structural exceptions: prefer adjusting the RuboCop configuration (e.g., in `.rubocop.yml`) to exclude a rule for a path or file pattern when it makes sense project-wide.
60
- - Temporary exceptions while improving code: record the current violations in `.rubocop_gradual.lock` via the gradual workflow:
61
- - `bundle exec rake rubocop_gradual:autocorrect` (preferred; will autocorrect what it can and update the lock only if no new violations were introduced)
62
- - If needed, `bundle exec rake rubocop_gradual:force_update` (as a last resort when you cannot fix the newly reported violations immediately)
63
-
64
- In general, treat the rules as guidance to follow; fix violations rather than ignore them. For example, RSpec conventions in this project expect `described_class` to be used in specs that target a specific class under test.
65
-
66
- ## Benefits of rubocop_gradual
67
-
68
- - Allows incremental adoption of code style rules
69
- - Prevents CI failures due to pre-existing violations
70
- - Provides a clear record of code style debt
71
- - Enables focused efforts on improving code quality over time
data/SECURITY.md DELETED
@@ -1,21 +0,0 @@
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
@@ -1 +0,0 @@
1
- ALL_FORMATTERS: bool
data/sig/debug.rbs DELETED
@@ -1 +0,0 @@
1
- DEBUG: bool
data/sig/debug_ide.rbs DELETED
@@ -1 +0,0 @@
1
- DEBUG_IDE: bool
data/sig/debug_jruby.rbs DELETED
@@ -1 +0,0 @@
1
- DEBUG_JRUBY: bool
data/sig/debugging.rbs DELETED
@@ -1 +0,0 @@
1
- DEBUGGING: bool
data/sig/run_coverage.rbs DELETED
@@ -1 +0,0 @@
1
- RUN_COVERAGE: bool
@@ -1,27 +0,0 @@
1
- module VersionGem
2
- module Api
3
- # Internal memoized version string segments
4
- @_to_a: Array[String]
5
-
6
- # Memoized components
7
- @major: Integer
8
- @minor: Integer
9
- @patch: Integer
10
- @pre: String?
11
- @to_a: Array[Integer | String | nil]
12
- @to_h: Hash[Symbol, (Integer | String | nil)]
13
-
14
- # Public API
15
- def to_s: () -> String
16
- def major: () -> Integer
17
- def minor: () -> Integer
18
- def patch: () -> Integer
19
- def pre: () -> String?
20
- def to_a: () -> Array[Integer | String | nil]
21
- def to_h: () -> Hash[Symbol, (Integer | String | nil)]
22
-
23
- private
24
-
25
- def _to_a: () -> Array[String]
26
- end
27
- end
@@ -1,5 +0,0 @@
1
- module VersionGem
2
- module Basic
3
- def self.extended: () -> void
4
- end
5
- end
@@ -1,26 +0,0 @@
1
- module VersionGem
2
- module Epoch
3
- EPOCH_SIZE: Integer
4
-
5
- # Hook used when this module is extended
6
- def self.extended: (untyped) -> void
7
-
8
- module OverloadApiForEpoch
9
- # The epoch component (derived)
10
- def epoch: () -> Integer
11
-
12
- # Override of Api#major returning the derived major component
13
- def major: () -> Integer
14
-
15
- # Hash representation including epoch
16
- def to_h: () -> Hash[Symbol, (Integer | String | nil)]
17
-
18
- # Array of components [epoch, major, minor, patch, pre]
19
- def to_a: () -> Array[Integer | String | nil]
20
-
21
- private
22
-
23
- def _major: () -> Integer
24
- end
25
- end
26
- end
@@ -1,4 +0,0 @@
1
- module VersionGem
2
- class Error < ::RuntimeError
3
- end
4
- end
@@ -1,11 +0,0 @@
1
- module VersionGem
2
- module Ruby
3
- RUBY_VER: ::Gem::Version
4
-
5
- # Check if the current Ruby version is >= given version for the engine
6
- def self.gte_minimum_version?: (String, ?String) -> bool
7
-
8
- # Check if the current Ruby MAJOR.MINOR equals the given values for the engine
9
- def self.actual_minor_version?: ((Integer | String), (Integer | String), ?String) -> bool
10
- end
11
- end
@@ -1,9 +0,0 @@
1
- module VersionGem
2
- module Version
3
- VERSION: String
4
-
5
- # At runtime this module is extended with Basic via class_eval in lib/version_gem.rb
6
- # Declare the intended extension so class methods are available in typing
7
- extend VersionGem::Basic
8
- end
9
- end