standard-rubocop-lts 1.0.10 → 2.0.0

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: b6788df90fd0b61b1ca99551916bca31f76fd1ab52e520486bb38b7a7aad6ea2
4
- data.tar.gz: ce5085159f7a9cd6d31cd79c771309fddbebec6c087cca117d187d97f47e7d97
3
+ metadata.gz: 0d8601220df3c12f8ed7239217f55778040cd154b9ce73e82c6802049a228adb
4
+ data.tar.gz: 14d369b18d0e594d92bc1b07b7777801986d0ba6825fcfd3388e630f1fcea953
5
5
  SHA512:
6
- metadata.gz: f7779a122394981c4e0d09627f4c444caf13bda32c1143b9ada7901ec6bf4b2b4cc070656b0c594a0e5c32d87a8dbdc5ded4a975a91a8df692ff400bd9a67218
7
- data.tar.gz: dfe0b3f586fca0d9dc937aa78742dfeae1ec730d00d408dbad4ab9e4dc36a9ec191148e0daef479fc69b9264f100e10fb0f744a0568f999c0a597ecf45529844
6
+ metadata.gz: 93ef72492c9ec0fa40c9e5f8802cdd67e4e9d00f4ce864cf5d30bb1fcc09a29afb013a4f288ac71e6a54167a417380cd2acabd198b13cae6d19ab8ed8656876b
7
+ data.tar.gz: 4c2c9fb5e688ad18e6c8fb72f12db64f1f044126ade07a8ab16e0198d98b685ab317bcb85f5ef86649827e2daf9170d817c907dc0cb2bc5eeb47fdb3a3da5e45
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -10,6 +10,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
  ### Fixed
11
11
  ### Removed
12
12
 
13
+ ## [2.0.0] 2025-04-17
14
+ - COVERAGE: 100.00% -- 18/18 lines in 4 files
15
+ - BRANCH COVERAGE: 100.00% -- 0/0 branches in 4 files
16
+ - 100.00% documented
17
+ ### Added
18
+ - `stone_checksums` v1.0.0 for release checksums
19
+ - Rules to prevent churn in bin/bundle
20
+ - Ability to package gem without signing (e.g. for linux distros)
21
+ ### Changed
22
+ - RuboCop 1.72+ (new plugin system)
23
+ - Contributor Covenant v2.1
24
+ - Upgrade to version_gem v1.1.7
25
+ ### Fixed
26
+ - (Better) Linting Support for Ruby 1.8, 1.9, 2.0
27
+ ### Removed
28
+ - Runtime Support for Ruby 2.7, 3.0, 3.1
29
+ - Minimum runtime is Ruby 3.2
30
+
13
31
  ## [1.0.10] 2024-03-23
14
32
  ### Added
15
33
  - Moved development dependencies back to gemspec
@@ -121,6 +139,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
121
139
  - Initial release
122
140
 
123
141
  [Unreleased]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v1.0.10...HEAD
142
+ [1.0.11]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v1.0.10...v1.0.11
124
143
  [1.0.10]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v1.0.9...v1.0.10
125
144
  [1.0.9]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v1.0.8...v1.0.9
126
145
  [1.0.8]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v1.0.7...v1.0.8
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,47 +1,110 @@
1
- ## Contributing
1
+ # Contributing
2
2
 
3
3
  Bug reports and pull requests are welcome on GitLab at [https://gitlab.com/rubocop-lts/standard-rubocop-lts][🚎src-main]
4
4
  . This project is intended to be a safe, welcoming space for collaboration, and contributors are expected 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. Once you're happy with it send a pull request
8
- and post a message to the [gitter chat][🏘chat].
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.
9
9
 
10
- ## Release
10
+ We [![Keep A Changelog][📗keep-changelog-img]][📗keep-changelog] so if you make changes, remember to update it.
11
11
 
12
- To release a new version:
12
+ ## You can help!
13
13
 
14
- 1. Run `bin/setup && bin/rake` as a tests, coverage, & linting sanity check
15
- 2. Update the version number in `version.rb`
16
- 3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`
17
- 4. Run `git commit -am "🔖 Prepare release v<VERSION>"` to commit the changes
18
- 5. Run `git push` to trigger the final CI pipeline before release, & merge PRs
19
- a. NOTE: Remember to [check the build][🧪build]!
20
- 6. Run `git checkout main` (Or whichever branch is considered `trunk`, e.g. `master`)
21
- 7. Run `git pull origin main` to ensure you will release the latest trunk code.
22
- 8. Set `SOURCE_DATE_EPOCH` so `rake build` and `rake release` use same timestamp, and generate same checksums
23
- a. Run `export SOURCE_DATE_EPOCH=$EPOCHSECONDS` (you'll need the zsh/datetime module, if running zsh)
24
- 9. Run `bundle exec rake build`
25
- 10. Run [`bin/checksums`](https://github.com/rubygems/guides/pull/325) to create SHA-256 and SHA-512 checksums
26
- a. Checksums will be committed automatically by the script, but not pushed
27
- 11. Run `bundle exec rake release` which will create a git tag for the version,
28
- push git commits and tags, and push the `.gem` file to [rubygems.org][💎rubygems]
14
+ Simply follow these instructions:
29
15
 
30
- NOTE: You will need to have a public key in `certs/`, and list your cert in the
31
- `gemspec`, in order to sign the new release.
32
- See: [RubyGems Security Guide][🔒️rubygems-security-guide]
16
+ 1. Fork the repository
17
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
18
+ 3. Make some fixes.
19
+ 4. Commit your changes (`git commit -am 'Added some feature'`)
20
+ 5. Push to the branch (`git push origin my-new-feature`)
21
+ 6. Make sure to add tests for it. This is important, so it doesn't break in a future release.
22
+ 7. Create new Pull Request.
23
+
24
+ ## The Reek List
25
+
26
+ Take a look at the `reek` list which is the file called `REEK` and find something to improve.
27
+
28
+ To refresh the `reek` list:
29
+
30
+ ```bash
31
+ bundle exec reek > REEK
32
+ ```
33
+
34
+ ## Run Tests
35
+
36
+ To run all tests
37
+
38
+ ```bash
39
+ bundle exec rake test
40
+ ```
41
+
42
+ ## Lint It
43
+
44
+ Run all the default tasks, which includes running the gradually autocorrecting linter, `rubocop-gradual`.
45
+
46
+ ```bash
47
+ bundle exec rake
48
+ ```
49
+
50
+ Or just run the linter.
51
+
52
+ ```bash
53
+ bundle exec rake rubocop_gradual:autocorrect
54
+ ```
33
55
 
34
56
  ## Contributors
35
57
 
36
- [![Contributors](https://contrib.rocks/image?repo=rubocop-lts/standard-rubocop-lts)][🖐contributors]
58
+ Your picture could be here!
59
+
60
+ [![Contributors][🖐contributors-img]][🖐contributors]
61
+
62
+ Made with [contributors-img][🖐contrib-rocks].
63
+
64
+ Also see GitLab Contributors: [https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/graphs/main][🚎contributors-gl]
65
+
66
+ ## For Maintainers
67
+
68
+ ### One-time, Per-maintainer, Setup
69
+
70
+ **IMPORTANT**: Your public key for signing gems will need to be picked up by the line in the
71
+ `gemspec` defining the `spec.cert_chain` (check the relevant ENV variables there),
72
+ in order to sign the new release.
73
+ See: [RubyGems Security Guide][🔒️rubygems-security-guide]
74
+
75
+ ### To release a new version:
37
76
 
38
- Contributors Parade (GitHub Only) made with [contributors-img][🖐contrib-rocks].
77
+ 1. Run `bin/setup && bin/rake` as a tests, coverage, & linting sanity check
78
+ 2. Update the version number in `version.rb`, and ensure `CHANGELOG.md` reflects changes
79
+ 3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`
80
+ 4. Run `git commit -am "🔖 Prepare release v<VERSION>"` to commit the changes
81
+ 5. Run `git push` to trigger the final CI pipeline before release, & merge PRs
82
+ - NOTE: Remember to [check the build][🧪build]!
83
+ 6. Run `export GIT_TRUNK_BRANCH_NAME="$(git remote show origin | grep 'HEAD branch' | cut -d ' ' -f5)" && echo $GIT_TRUNK_BRANCH_NAME`
84
+ 7. Run `git checkout $GIT_TRUNK_BRANCH_NAME`
85
+ 8. Run `git pull origin $GIT_TRUNK_BRANCH_NAME` to ensure you will release the latest trunk code
86
+ 9. Set `SOURCE_DATE_EPOCH` so `rake build` and `rake release` use same timestamp, and generate same checksums
87
+ - Run `export SOURCE_DATE_EPOCH=$EPOCHSECONDS && echo $SOURCE_DATE_EPOCH`
88
+ - If the echo above has no output, then it didn't work.
89
+ - Note that you'll need the `zsh/datetime` module, if running `zsh`.
90
+ - In `bash` you can use `date +%s` instead, i.e. `export SOURCE_DATE_EPOCH=$(date +%s) && echo $SOURCE_DATE_EPOCH`
91
+ 10. Run `bundle exec rake build`
92
+ 11. Run `bin/gem_checksums` (more context [1][🔒️rubygems-checksums-pr] and [2][🔒️rubygems-guides-pr])
93
+ to create SHA-256 and SHA-512 checksums
94
+ - Checksums will be committed automatically by the script, but not pushed
95
+ 12. Run `bundle exec rake release` which will create a git tag for the version,
96
+ push git commits and tags, and push the `.gem` file to [rubygems.org][💎rubygems]
39
97
 
98
+ [🚎src-main]: https://gitlab.com/rubocop-lts/standard-rubocop-lts
40
99
  [🧪build]: https://github.com/rubocop-lts/standard-rubocop-lts/actions
41
- [🏘chat]: https://app.gitter.im/#/room/#rubocop-lts_community:gitter.im
42
100
  [🤝conduct]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/blob/main/CODE_OF_CONDUCT.md
43
101
  [🖐contrib-rocks]: https://contrib.rocks
44
- [🖐contributors]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/graphs/main
102
+ [🖐contributors]: https://github.com/rubocop-lts/standard-rubocop-lts/graphs/contributors
103
+ [🚎contributors-gl]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/graphs/main
104
+ [🖐contributors-img]: https://contrib.rocks/image?repo=rubocop-lts/standard-rubocop-lts
45
105
  [💎rubygems]: https://rubygems.org
46
106
  [🔒️rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
47
- [🚎src-main]: https://gitlab.com/rubocop-lts/standard-rubocop-lts
107
+ [🔒️rubygems-checksums-pr]: https://github.com/rubygems/rubygems/pull/6022
108
+ [🔒️rubygems-guides-pr]: https://github.com/rubygems/guides/pull/325
109
+ [📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
110
+ [📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat