version_gem 1.1.4 → 1.1.6

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: 293448abeed414d0a43cee34925de9e94cf3329326e248d18694d499f1952e47
4
- data.tar.gz: 24a83ab4592f9b5271205ee24b7829af6bb13aae5f2a74f982663aad127ac6b3
3
+ metadata.gz: 779a53b7ab4b5e47e80eedc36f0551e2786886dcac2eb91928537bc9535793cd
4
+ data.tar.gz: 8c51c4dc1e88dd9e144dc22197f3992096e2da71ab55e324ca59aec907a40eb1
5
5
  SHA512:
6
- metadata.gz: 8b668065b9b75fd6e7e262ee7a8237da8e8844bdb9f11978cc504da6d7da5dce436bbe3af096c1feb18aab0b0d938a3b083a6090af992ae60ffd849f0f5e8e86
7
- data.tar.gz: cf0d558fc6ffb5a39795515c4b98553e7703a2ccc120488e5ca09c2ae4c7761143c0127506da9596606ea57bd47627be3ef41ee19f2f930e755d5044b901bbe3
6
+ metadata.gz: 4944471f27fa5bf9013c4f1009ae0ae21f81fe92b345ff3f5a4b400861147dbbb67d10323222278dacb1b92a1f4eddf2e2fc6aef069e3e7b89d637507ee70518
7
+ data.tar.gz: 7a030e85c153ec35b2075a18e24a3ba3f64b8fb6c7891f794beea9e45c7b4a130e32e6a350a397a4df3888981704696c2f1fb6d076a362da5fa0a578ed7326f9
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- <m��F�����:��
2
- 萧����m$�,�7b��GC.0!�$? �x8�������Y7�7rc�����:���"�u�B�QCyO�<�r�����.� �9��B��6O㳻�u��e��� ]�����P�܏�0y��R�*��=�a׫�_@���NA���'0FDd�u#�{p_�'g�uR��'AOi���̆ N�����t�Re�n+P����rwU�� o�8mI����ت`m_P�P���⿤.���4״���`��h&�!��S*.6~�~��2����e���؋� �o���8�u zpݴu�D=��vjHX��.ܡ� X�U��n�:��w����$�@P�ڎ�b �DQZM��b
1
+ I&"�%/c�U�iD$_Dqm-���� �bV��Z9�O���:H�H��� 1 v��=5mN��4� �]d��q�V?<u],*�~��B�'(�rښ/� ɢ��Iv]���'���G�G�� s�����%A�'!@��S�ZcC� ���B��-��$>�kXk1 R�ߺ K��F,��
2
+ � ��d�r���*��G��I�*|��wR�������{Uu���b���<-�$������Β�g�ʙ�b��v!.��D�u�$]�OpV֓/��XRut��@��JL�(�R^��Wz��iR!�4O��c{d)u�����>־K|T��Nl<m��bB&v���)P"7���^�7kN�a�P�$Otc=&h���o�
data/CHANGELOG.md CHANGED
@@ -1,8 +1,20 @@
1
1
  # Changelog
2
+
3
+ [![SemVer 2.0.0][📌semver-img]][📌semver] [![Keep-A-Changelog 1.0.0][📗keep-changelog-img]][📗keep-changelog]
4
+
2
5
  All notable changes to this project will be documented in this file.
3
6
 
4
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+ The format is based on [Keep a Changelog][📗keep-changelog],
8
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
9
+ and [yes][📌major-versions-not-sacred], platform and engine support are part of the [public API][📌semver-breaking].
10
+ Please file a bug if you notice a violation of semantic versioning.
11
+
12
+ [📌semver]: https://semver.org/spec/v2.0.0.html
13
+ [📌semver-img]: https://img.shields.io/badge/semver-2.0.0-FFDD67.svg?style=flat
14
+ [📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
15
+ [📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
16
+ [📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
17
+ [📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat
6
18
 
7
19
  ## [Unreleased]
8
20
  ### Added
@@ -10,6 +22,36 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
22
  ### Fixed
11
23
  ### Removed
12
24
 
25
+ ## [1.1.6] 2025-02-24 ([tag][1.1.6t])
26
+ - Line Coverage: 100.0% (77 / 77)
27
+ - Branch Coverage: 100.0% (2 / 2)
28
+ - 77.78% documented
29
+ ### Added
30
+ - Support for JRuby 9.1, 9.2, 9.3, 9.4, and head (@pboling)
31
+ - Support for Truffle Ruby 22.3, 23.0, 23.1, 24.1, and head (@pboling)
32
+ - Evergreen current latest engine release workflow (@pboling)
33
+ - Runs ruby, truffleruby, and jruby, always latest release
34
+ - Improved developer experience for contributors (@pboling)
35
+ - More documentation (@pboling)
36
+ - Switch to stone_checksums for checksum generation (@pboling)
37
+ ### Changed
38
+ - Code of Conduct updated - Contributor Covenant v2.0 => v2.1 (@pboling)
39
+
40
+ ## [1.1.5] 2025-02-22 ([tag][1.1.5t])
41
+ - Line Coverage: 100.0% (77 / 77)
42
+ - Branch Coverage: 100.0% (2 / 2)
43
+ - 77.78% documented
44
+ ### Added
45
+ - Document approach to get code coverage on your gem's version.rb file (@pboling)
46
+ - More documentation, and yard task for documentation (@pboling)
47
+ - Documentation of Ruby version and SemVer support (@pboling)
48
+ ### Fixed
49
+ - [#3](https://gitlab.com/oauth-xx/version_gem/-/issues/3) - Allow packaging without signing (@pboling)
50
+ - to support secure linux distros which have alternate means of signing packages within their package managers
51
+ - Code coverage tracking (@pboling)
52
+ - Documentation of usage in gemspec via `Kernel.load` (@pboling)
53
+ - Improved gemspec config (@pboling)
54
+
13
55
  ## [1.1.4] 2024-03-21 ([tag][1.1.4t])
14
56
  ### Added
15
57
  - Ruby 3.3 to CI (@pboling)
@@ -32,6 +74,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
32
74
  - (dev) Rake task for rubocop_gradual (@pboling)
33
75
  ### Fixed
34
76
  - (dev) `yard` documentation task (@pboling)
77
+ ### Removed
78
+ - Formally drop Ruby 2.2 support
79
+ - Ruby 2.2 was already de facto minimum version supported, which is why this wasn't a 2.0 release.
35
80
 
36
81
  ## [1.1.2] - 2023-03-17 ([tag][1.1.2t])
37
82
  ### Added
@@ -52,10 +97,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
52
97
  - Gem releases are now cryptographically signed (@pboling)
53
98
 
54
99
  ## [1.1.0] - 2022-06-24 ([tag][1.1.0t])
55
- ### Fixed
56
- - to_a uses same type casting as major, minor, patch, and pre (@pboling)
57
100
  ### Added
58
101
  - RSpec Matchers and Shared Example (@pboling)
102
+ ### Fixed
103
+ - `to_a` uses same type casting as major, minor, patch, and pre (@pboling)
59
104
 
60
105
  ## [1.0.2] - 2022-06-23 ([tag][1.0.2t])
61
106
  ### Added
@@ -72,7 +117,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
72
117
  ### Added
73
118
  - Initial release, with basic version parsing API (@pboling)
74
119
 
75
- [Unreleased]: https://gitlab.com/oauth-xx/version_gem/-/compare/v1.1.4...HEAD
120
+ [Unreleased]: https://gitlab.com/oauth-xx/version_gem/-/compare/v1.1.6...main
121
+ [1.1.6]: https://gitlab.com/oauth-xx/version_gem/-/compare/v1.1.5...v1.1.6
122
+ [1.1.6t]: https://gitlab.com/oauth-xx/oauth2/-/tags/v1.1.6
123
+ [1.1.5]: https://gitlab.com/oauth-xx/version_gem/-/compare/v1.1.4...v1.1.5
124
+ [1.1.5t]: https://gitlab.com/oauth-xx/oauth2/-/tags/v1.1.5
76
125
  [1.1.4]: https://gitlab.com/oauth-xx/version_gem/-/compare/v1.1.3...v1.1.4
77
126
  [1.1.4t]: https://gitlab.com/oauth-xx/oauth2/-/tags/v1.1.4
78
127
  [1.1.3]: https://gitlab.com/oauth-xx/version_gem/-/compare/v1.1.2...v1.1.3
data/CODE_OF_CONDUCT.md CHANGED
@@ -1,84 +1,135 @@
1
+
1
2
  # Contributor Covenant Code of Conduct
2
3
 
3
4
  ## Our Pledge
4
5
 
5
- We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+ We as members, contributors, and leaders pledge to make participation in our
7
+ community a harassment-free experience for everyone, regardless of age, body
8
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
9
+ identity and expression, level of experience, education, socio-economic status,
10
+ nationality, personal appearance, race, caste, color, religion, or sexual
11
+ identity and orientation.
6
12
 
7
- We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
13
+ We pledge to act and interact in ways that contribute to an open, welcoming,
14
+ diverse, inclusive, and healthy community.
8
15
 
9
16
  ## Our Standards
10
17
 
11
- Examples of behavior that contributes to a positive environment for our community include:
18
+ Examples of behavior that contributes to a positive environment for our
19
+ community include:
12
20
 
13
21
  * Demonstrating empathy and kindness toward other people
14
22
  * Being respectful of differing opinions, viewpoints, and experiences
15
23
  * Giving and gracefully accepting constructive feedback
16
- * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
- * Focusing on what is best not just for us as individuals, but for the overall community
24
+ * Accepting responsibility and apologizing to those affected by our mistakes,
25
+ and learning from the experience
26
+ * Focusing on what is best not just for us as individuals, but for the overall
27
+ community
18
28
 
19
29
  Examples of unacceptable behavior include:
20
30
 
21
- * The use of sexualized language or imagery, and sexual attention or
22
- advances of any kind
31
+ * The use of sexualized language or imagery, and sexual attention or advances of
32
+ any kind
23
33
  * Trolling, insulting or derogatory comments, and personal or political attacks
24
34
  * Public or private harassment
25
- * Publishing others' private information, such as a physical or email
26
- address, without their explicit permission
35
+ * Publishing others' private information, such as a physical or email address,
36
+ without their explicit permission
27
37
  * Other conduct which could reasonably be considered inappropriate in a
28
38
  professional setting
29
39
 
30
40
  ## Enforcement Responsibilities
31
41
 
32
- Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
42
+ Community leaders are responsible for clarifying and enforcing our standards of
43
+ acceptable behavior and will take appropriate and fair corrective action in
44
+ response to any behavior that they deem inappropriate, threatening, offensive,
45
+ or harmful.
33
46
 
34
- Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
47
+ Community leaders have the right and responsibility to remove, edit, or reject
48
+ comments, commits, code, wiki edits, issues, and other contributions that are
49
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
50
+ decisions when appropriate.
35
51
 
36
52
  ## Scope
37
53
 
38
- This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
54
+ This Code of Conduct applies within all community spaces, and also applies when
55
+ an individual is officially representing the community in public spaces.
56
+ Examples of representing our community include using an official email address,
57
+ posting via an official social media account, or acting as an appointed
58
+ representative at an online or offline event.
39
59
 
40
60
  ## Enforcement
41
61
 
42
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at peter.boling@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
62
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
63
+ reported to the community leaders responsible for enforcement at
64
+ [![Contact BDFL][🚂bdfl-contact-img]][🚂bdfl-contact].
65
+ All complaints will be reviewed and investigated promptly and fairly.
43
66
 
44
- All community leaders are obligated to respect the privacy and security of the reporter of any incident.
67
+ All community leaders are obligated to respect the privacy and security of the
68
+ reporter of any incident.
45
69
 
46
70
  ## Enforcement Guidelines
47
71
 
48
- Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
72
+ Community leaders will follow these Community Impact Guidelines in determining
73
+ the consequences for any action they deem in violation of this Code of Conduct:
49
74
 
50
75
  ### 1. Correction
51
76
 
52
- **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
77
+ **Community Impact**: Use of inappropriate language or other behavior deemed
78
+ unprofessional or unwelcome in the community.
53
79
 
54
- **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
80
+ **Consequence**: A private, written warning from community leaders, providing
81
+ clarity around the nature of the violation and an explanation of why the
82
+ behavior was inappropriate. A public apology may be requested.
55
83
 
56
84
  ### 2. Warning
57
85
 
58
- **Community Impact**: A violation through a single incident or series of actions.
86
+ **Community Impact**: A violation through a single incident or series of
87
+ actions.
59
88
 
60
- **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
89
+ **Consequence**: A warning with consequences for continued behavior. No
90
+ interaction with the people involved, including unsolicited interaction with
91
+ those enforcing the Code of Conduct, for a specified period of time. This
92
+ includes avoiding interactions in community spaces as well as external channels
93
+ like social media. Violating these terms may lead to a temporary or permanent
94
+ ban.
61
95
 
62
96
  ### 3. Temporary Ban
63
97
 
64
- **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
98
+ **Community Impact**: A serious violation of community standards, including
99
+ sustained inappropriate behavior.
65
100
 
66
- **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
101
+ **Consequence**: A temporary ban from any sort of interaction or public
102
+ communication with the community for a specified period of time. No public or
103
+ private interaction with the people involved, including unsolicited interaction
104
+ with those enforcing the Code of Conduct, is allowed during this period.
105
+ Violating these terms may lead to a permanent ban.
67
106
 
68
107
  ### 4. Permanent Ban
69
108
 
70
- **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
109
+ **Community Impact**: Demonstrating a pattern of violation of community
110
+ standards, including sustained inappropriate behavior, harassment of an
111
+ individual, or aggression toward or disparagement of classes of individuals.
71
112
 
72
- **Consequence**: A permanent ban from any sort of public interaction within the community.
113
+ **Consequence**: A permanent ban from any sort of public interaction within the
114
+ community.
73
115
 
74
116
  ## Attribution
75
117
 
76
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
- available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
-
79
- Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
118
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
119
+ version 2.1, available at
120
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
80
121
 
81
- [homepage]: https://www.contributor-covenant.org
122
+ Community Impact Guidelines were inspired by
123
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
82
124
 
83
125
  For answers to common questions about this code of conduct, see the FAQ at
84
- https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
126
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
127
+ [https://www.contributor-covenant.org/translations][translations].
128
+
129
+ [homepage]: https://www.contributor-covenant.org
130
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
131
+ [Mozilla CoC]: https://github.com/mozilla/diversity
132
+ [FAQ]: https://www.contributor-covenant.org/faq
133
+ [translations]: https://www.contributor-covenant.org/translations
134
+ [🚂bdfl-contact]: http://www.railsbling.com/contact
135
+ [🚂bdfl-contact-img]: https://img.shields.io/badge/Contact-BDFL-0093D0.svg?style=flat&logo=rubyonrails&logoColor=red
data/CONTRIBUTING.md CHANGED
@@ -1,4 +1,4 @@
1
- ## Contributing
1
+ # Contributing
2
2
 
3
3
  Bug reports and pull requests are welcome on GitHub at [https://gitlab.com/oauth-xx/version_gem][🚎src-main]
4
4
  . This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to
@@ -8,71 +8,110 @@ To submit a patch, please fork the project and create a patch with
8
8
  tests. Once you're happy with it send a pull request and post a message to the
9
9
  [google group][⛳mail-list] or on the [gitter chat][🏘chat].
10
10
 
11
- ## Release
11
+ We [![Keep A Changelog][📗keep-changelog-img]][📗keep-changelog] so if you make changes, remember to update it.
12
12
 
13
- To release a new version:
13
+ ## You can help!
14
14
 
15
- 1. Run `bin/setup && bin/rake` as a tests, coverage, & linting sanity check
16
- 2. Update the version number in `version.rb`
17
- 3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`
18
- 4. Run `git commit -am "🔖 Prepare release v<VERSION>"` to commit the changes
19
- 5. Run `git push` to trigger the final CI pipeline before release, & merge PRs
20
- a. NOTE: Remember to [check the build][🧪build]!
21
- 6. Run `git checkout main` (Or whichever branch is considered `trunk`, e.g. `master`)
22
- 7. Run `git pull origin main` to ensure you will release the latest trunk code.
23
- 8. Set `SOURCE_DATE_EPOCH` so `rake build` and `rake release` use same timestamp, and generate same checksums
24
- a. Run `export SOURCE_DATE_EPOCH=$EPOCHSECONDS` (you'll need the zsh/datetime module, if running zsh)
25
- 9. Run `bundle exec rake build`
26
- 10. Run [`bin/checksums`](https://github.com/rubygems/guides/pull/325) to create SHA-256 and SHA-512 checksums
27
- a. Checksums will be committed automatically by the script, but not pushed
28
- 11. Run `bundle exec rake release` which will create a git tag for the version,
29
- push git commits and tags, and push the `.gem` file to [rubygems.org][💎rubygems]
30
-
31
- NOTE: You will need to have a public key in `certs/`, and list your cert in the
32
- `gemspec`, in order to sign the new release.
33
- See: [RubyGems Security Guide][🔒️rubygems-security-guide]
15
+ Simply follow these instructions:
34
16
 
35
- ## Contributors
17
+ 1. Fork the repository
18
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
19
+ 3. Make some fixes.
20
+ 4. Commit your 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.
36
24
 
37
- [![Contributors](https://contrib.rocks/image?repo=oauth-xx/version_gem)][🖐contributors]
25
+ ## Appraisals
38
26
 
39
- Made with [contributors-img][🖐contrib-rocks].
27
+ From time to time the appraisal gemfiles in `gemfiles/` will need to be updated.
28
+ They are created and updated with the commands:
40
29
 
41
- Also see GitLab Contributors: [https://gitlab.com/oauth-xx/version_gem/-/graphs/main][🚎contributors]
30
+ NOTE: We run on a [fork][🚎appraisal-fork] of Appraisal.
42
31
 
43
- ## Contributing
32
+ Please upvote the PR for `eval_gemfile` [support][🚎appraisal-eval-gemfile-pr]
44
33
 
45
- Bug reports and pull requests are welcome on GitLab at [https://gitlab.com/oauth-xx/version_gem][🚎src-main]
46
- . This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to
47
- the [code of conduct][conduct].
34
+ ```shell
35
+ BUNDLE_GEMFILE=Appraisal.root.gemfile bundle
36
+ BUNDLE_GEMFILE=Appraisal.root.gemfile bundle exec appraisal update
37
+ ```
48
38
 
49
- To submit a patch, please fork the project and create a patch with
50
- tests. Once you're happy with it send a pull request and post a message to the
51
- [google group][⛳mail-list] or on the [gitter chat][🏘chat].
39
+ When adding an appraisal to CI check the [runner tool cache][🏃‍♂️runner-tool-cache] to see which runner to use.
40
+
41
+ ## The Reek List
42
+
43
+ Take a look at the `reek` list which is the file called `REEK` and find something to improve.
44
+
45
+ To refresh the `reek` list:
46
+
47
+ ```bash
48
+ bundle exec reek > REEK
49
+ ```
50
+
51
+ ## Run Tests
52
52
 
53
- ## Release
53
+ To run all tests
54
54
 
55
- To release a new version:
55
+ ```bash
56
+ bundle exec rake test
57
+ ```
56
58
 
57
- 1. Run `bin/setup && bin/rake` as a tests, coverage, & linting sanity check.
58
- 2. update the version number in `version.rb`
59
- 3. run `bundle exec rake build:checksum`
60
- 4. move the built gem to project root
61
- 5. run `bin/checksum` to create the missing SHA256 checksum
62
- 6. move the built gem back to `pkg/`
63
- 7. commit the changes
64
- 8. run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org][rubygems].
59
+ ## Lint It
65
60
 
66
- NOTE: You will need to have a public key in `certs/`, and list your cert in the
67
- `gemspec`, in order to sign the new release.
68
- See: [RubyGems Security Guide][rubygems-security-guide]
61
+ Run all the default tasks, which includes running the gradually autocorrecting linter, `rubocop-gradual`.
62
+
63
+ ```bash
64
+ bundle exec rake
65
+ ```
66
+
67
+ Or just run the linter.
68
+
69
+ ```bash
70
+ bundle exec rake rubocop_gradual:autocorrect
71
+ ```
69
72
 
70
73
  ## Contributors
71
74
 
75
+ Your picture could be here!
76
+
77
+ [![Contributors][🖐contributors-img]][🖐contributors]
78
+
79
+ Made with [contributors-img][🖐contrib-rocks].
80
+
81
+ Also see GitLab Contributors: [https://gitlab.com/oauth-xx/version_gem/-/graphs/main][🚎contributors-gl]
82
+
83
+ ## For Maintainers
72
84
 
73
- [comment]: <> (Following links are used by README, CONTRIBUTING)
85
+ ### One-time, Per-maintainer, Setup
86
+
87
+ **IMPORTANT**: Your public key for signing gems will need to be picked up by the line in the
88
+ `gemspec` defining the `spec.cert_chain` (check the relevant ENV variables there),
89
+ in order to sign the new release.
90
+ See: [RubyGems Security Guide][🔒️rubygems-security-guide]
91
+
92
+ ### To release a new version:
93
+
94
+ 1. Run `bin/setup && bin/rake` as a tests, coverage, & linting sanity check
95
+ 2. Update the version number in `version.rb`, and ensure `CHANGELOG.md` reflects changes
96
+ 3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`
97
+ 4. Run `git commit -am "🔖 Prepare release v<VERSION>"` to commit the changes
98
+ 5. Run `git push` to trigger the final CI pipeline before release, & merge PRs
99
+ - NOTE: Remember to [check the build][🧪build]!
100
+ 6. Run `export GIT_TRUNK_BRANCH_NAME="$(git remote show origin | grep 'HEAD branch' | cut -d ' ' -f5)" && echo $GIT_TRUNK_BRANCH_NAME`
101
+ 7. Run `git checkout $GIT_TRUNK_BRANCH_NAME`
102
+ 8. Run `git pull origin $GIT_TRUNK_BRANCH_NAME` to ensure you will release the latest trunk code
103
+ 9. Set `SOURCE_DATE_EPOCH` so `rake build` and `rake release` use same timestamp, and generate same checksums
104
+ - Run `export SOURCE_DATE_EPOCH=$EPOCHSECONDS && echo $SOURCE_DATE_EPOCH`
105
+ - If the echo above has no output, then it didn't work.
106
+ - Note that you'll need the `zsh/datetime` module, if running `zsh`.
107
+ - In `bash` you can use `date +%s` instead, i.e. `export SOURCE_DATE_EPOCH=$(date +%s) && echo $SOURCE_DATE_EPOCH`
108
+ 10. Run `bundle exec rake build`
109
+ 11. Run `bin/gem_checksums` (more context [1][🔒️rubygems-checksums-pr] and [2][🔒️rubygems-guides-pr])
110
+ to create SHA-256 and SHA-512 checksums
111
+ - Checksums will be committed automatically by the script, but not pushed
112
+ 12. Run `bundle exec rake release` which will create a git tag for the version,
113
+ push git commits and tags, and push the `.gem` file to [rubygems.org][💎rubygems]
74
114
 
75
- [🚎contributors]: https://gitlab.com/oauth-xx/version_gem/-/graphs/main
76
115
  [⛳mail-list]: http://groups.google.com/group/oauth-ruby
77
116
  [🚎src-main]: https://gitlab.com/oauth-xx/version_gem
78
117
  [🧪build]: https://github.com/oauth-xx/version_gem/actions
@@ -80,6 +119,16 @@ See: [RubyGems Security Guide][rubygems-security-guide]
80
119
  [🤝conduct]: https://gitlab.com/oauth-xx/version_gem/-/blob/main/CODE_OF_CONDUCT.md
81
120
  [🖐contrib-rocks]: https://contrib.rocks
82
121
  [🖐contributors]: https://github.com/oauth-xx/version_gem/graphs/contributors
122
+ [🚎contributors-gl]: https://gitlab.com/oauth-xx/version_gem/-/graphs/main
123
+ [🖐contributors-img]: https://contrib.rocks/image?repo=oauth-xx/version_gem
83
124
  [💎rubygems]: https://rubygems.org
84
125
  [🔒️rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
85
- [🚎src-main]: https://github.com/oauth-xx/version_gem
126
+ [🔒️rubygems-checksums-pr]: https://github.com/rubygems/rubygems/pull/6022
127
+ [🔒️rubygems-guides-pr]: https://github.com/rubygems/guides/pull/325
128
+ [📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
129
+ [📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat
130
+ [📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
131
+ [📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
132
+ [🚎appraisal-eval-gemfile-pr]: https://github.com/thoughtbot/appraisal/pull/248
133
+ [🚎appraisal-fork]: https://github.com/pboling/appraisal/tree/galtzo
134
+ [🏃‍♂️runner-tool-cache]: https://github.com/ruby/ruby-builder/releases/tag/toolcache
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2022 - 2023 Peter Boling
3
+ Copyright (c) 2022 - 2025 Peter Boling
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal