rubocop-ruby3_0 1.1.0 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +25 -3
- data/CONTRIBUTING.md +9 -9
- data/LICENSE.txt +1 -1
- data/README.md +35 -15
- data/lib/rubocop/ruby3_0/version.rb +1 -1
- data/rubocop.yml +7 -0
- data.tar.gz.sig +0 -0
- metadata +12 -12
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 217dd141a2b56af2db16cc695a4ff686a24dd489e1f1ebdb65f5c3faa753be15
|
4
|
+
data.tar.gz: cc5dd03f6ac71b46ea148123b64fce098afd0ae4573cecc9096e96cc22ea5714
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41c2815e44c5bec45bb9b907690d601a025d06c8285c68f0a87ae0d7309db2b8a7fd88149713cd2d4ca34c8dd88afda2c9d9ef8c5f564328b38ffaab4f6b5852
|
7
|
+
data.tar.gz: a5bf34fa9de6034abd1532ebefc0fcd75138cc624c1af6206f0c87f15571009670bccf31d85f59b29d715c3bac7f17e02584aa5c895893d9b88d8080c9fb633c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -10,14 +10,34 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
10
10
|
### Fixed
|
11
11
|
### Removed
|
12
12
|
|
13
|
+
## [1.1.2] 2023-03-17
|
14
|
+
### Added
|
15
|
+
* GitLab CI config
|
16
|
+
### Changed
|
17
|
+
* Upgraded to RuboCop v1.48.1
|
18
|
+
* Compatible with rubocop-packaging ~> 0.5.2
|
19
|
+
* Improved development documentation
|
20
|
+
* Improved documentation on SemVer adherence
|
21
|
+
### Fixed
|
22
|
+
* Stop defining global variable in version.rb
|
23
|
+
|
24
|
+
## [1.1.1] 2022-12-20
|
25
|
+
### Fixed
|
26
|
+
* Do not require version.rb from gemspec so code coverage is accurate from both `rake` and `rspec`
|
27
|
+
* Typos in CHANGELOG & Documentation
|
28
|
+
### Changed
|
29
|
+
* Minimum Code Coverage == 100%
|
30
|
+
|
13
31
|
## [1.1.0] 2022-12-18
|
14
32
|
### Changed
|
15
33
|
* Update to rubocop `~> 1.40.0`
|
16
|
-
|
34
|
+
### Added
|
17
35
|
* Gem release ships with `SHA512` and `SHA256` checksums
|
18
36
|
* Release is securely signed by author
|
19
37
|
* Document release process in `CONTRIBUTING.md`
|
20
|
-
*
|
38
|
+
* Documentation of Three Guarantees:
|
39
|
+
* `rubocop-ruby2_7` (this gem) will install a version of `rubocop` which will
|
40
|
+
**install** on (1), **run** on (2), and **analyze code** (3) intended to support any version of Ruby >= 2.7.
|
21
41
|
|
22
42
|
## [1.0.6] 2022-06-08
|
23
43
|
### Changed
|
@@ -51,7 +71,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
51
71
|
### Added
|
52
72
|
* Initial release
|
53
73
|
|
54
|
-
[Unreleased]: https://github.com/rubocop-lts/rubocop-ruby3_0/compare/v1.1.
|
74
|
+
[Unreleased]: https://github.com/rubocop-lts/rubocop-ruby3_0/compare/v1.1.2...HEAD
|
75
|
+
[1.1.2]: https://github.com/rubocop-lts/rubocop-ruby3_0/compare/v1.1.1...v1.1.2
|
76
|
+
[1.1.1]: https://github.com/rubocop-lts/rubocop-ruby3_0/compare/v1.1.0...v1.1.1
|
55
77
|
[1.1.0]: https://github.com/rubocop-lts/rubocop-ruby3_0/compare/v1.0.6...v1.1.0
|
56
78
|
[1.0.6]: https://github.com/rubocop-lts/rubocop-ruby3_0/compare/v1.0.5...v1.0.6
|
57
79
|
[1.0.5]: https://github.com/rubocop-lts/rubocop-ruby3_0/compare/v1.0.4...v1.0.5
|
data/CONTRIBUTING.md
CHANGED
@@ -11,13 +11,14 @@ and post a message to the [gitter chat][🏘chat].
|
|
11
11
|
|
12
12
|
To release a new version:
|
13
13
|
|
14
|
-
1.
|
15
|
-
2.
|
16
|
-
3.
|
17
|
-
4.
|
18
|
-
5.
|
19
|
-
6.
|
20
|
-
7.
|
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 `bundle exec rake build:checksum`
|
17
|
+
4. move the built gem to project root
|
18
|
+
5. run `bin/checksum` to create the missing SHA256 checksum
|
19
|
+
6. move the built gem back to `pkg/`
|
20
|
+
7. commit the changes
|
21
|
+
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].
|
21
22
|
|
22
23
|
NOTE: You will need to have a public key in `certs/`, and list your cert in the
|
23
24
|
`gemspec`, in order to sign the new release.
|
@@ -25,13 +26,12 @@ See: [RubyGems Security Guide][rubygems-security-guide]
|
|
25
26
|
|
26
27
|
## Contributors
|
27
28
|
|
28
|
-
[
|
29
|
+
See: [https://gitlab.com/rubocop-lts/rubocop-ruby3_)/-/graphs/main][🖐contributors]
|
29
30
|
|
30
31
|
[comment]: <> (Following links are used by README, CONTRIBUTING, Homepage)
|
31
32
|
|
32
33
|
[conduct]: https://gitlab.com/rubocop-lts/rubocop-ruby3_0/-/blob/main/CODE_OF_CONDUCT.md
|
33
34
|
[🖐contributors]: https://gitlab.com/rubocop-lts/rubocop-ruby3_0/-/graphs/main
|
34
|
-
[🖐contributors-img]: https://img.shields.io/github/contributors-anon/rubocop-lts/rubocop-ruby3_0
|
35
35
|
[🚎src-main]: https://gitlab.com/rubocop-lts/rubocop-ruby3_0/-/tree/main
|
36
36
|
[🏘chat]: https://gitter.im/rubocop-lts/community
|
37
37
|
[rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -86,10 +86,14 @@ This gem requires no other gems. It depends on `rubocop`, but does not `require
|
|
86
86
|
|
87
87
|
Awareness of `rubocop`'s lack of [SemVer][semver] adherence isn't evenly dispersed in the Ruby community.
|
88
88
|
|
89
|
-
The RuboCop team [has
|
90
|
-
for [not following SemVer](https://github.com/rubocop/rubocop/issues/4243)
|
91
|
-
|
92
|
-
|
89
|
+
The RuboCop team [has reasons](https://github.com/semver/semver/issues/317)
|
90
|
+
for [not following SemVer](https://github.com/rubocop/rubocop/issues/4243).
|
91
|
+
|
92
|
+
NOTE: They think they are following SemVer,
|
93
|
+
but their interpretation differs from mine, and seems to differ from the
|
94
|
+
[intent of SemVer's creator][major-versions-not-sacred].
|
95
|
+
|
96
|
+
If you need to run `rubocop` from command line in an older version of Ruby, you've come to the right place.
|
93
97
|
|
94
98
|
<p align="left">
|
95
99
|
<a href="https://metaredux.com/posts/2022/04/21/rubocop-turns-10.html" target="_blank" rel="noopener">
|
@@ -98,26 +102,39 @@ what brought you here.
|
|
98
102
|
</p>
|
99
103
|
|
100
104
|
The purpose of this gem is to constrain the `rubocop` dependency of a project in
|
101
|
-
a [SemVer compliant]
|
102
|
-
|
105
|
+
a [SemVer compliant][semver]
|
106
|
+
(Semantic Versioning, [Major Versions are Not Sacred][major-versions-not-sacred])
|
107
|
+
way that aligns with the the desired minimum compatible/supported Ruby version.
|
103
108
|
|
104
109
|
## Ruby Version Support
|
105
110
|
|
106
111
|
Adding this gem will facilitate the best practice of adding a `~> ` version constrained `rubocop` dependency, while
|
107
112
|
minimizing the risk of a rubocop minor / patch upgrade breaking the build. See the
|
108
|
-
official [compatibility matrix][rubocop-matrix] for `rubocop`.
|
113
|
+
official [compatibility matrix][rubocop-support-matrix] for `rubocop`.
|
109
114
|
|
110
115
|
### Three Guarantees
|
111
116
|
|
112
|
-
|
113
|
-
**install** on (1), **run** on (2), and **analyze code** (3) intended to support any version of Ruby >=
|
117
|
+
This gem will install a version of `rubocop` which will
|
118
|
+
**install** on (1), **run** on (2), and **analyze code** (3) intended to support any version of Ruby >= 2.7.
|
114
119
|
|
115
120
|
Any change to any of those three abilities would require a major version bump.
|
116
|
-
Each [spring `rubocop` drops][rubocop-matrix] the ability to **install** and **run** `rubocop` on an EOL'd Ruby.
|
121
|
+
Each [spring `rubocop` drops][rubocop-support-matrix] the ability to **install** and **run** `rubocop` on an EOL'd Ruby.
|
117
122
|
Eventually `rubocop` will drop the ability to **analyze code** intended to support an EOL'd Ruby,
|
118
123
|
as they already have for Ruby 1.8 and 1.9.
|
119
|
-
When the `rubocop` team makes
|
120
|
-
|
124
|
+
When the `rubocop` team makes _any_ of these changes they
|
125
|
+
[only bump the minor version][rubocop-versioning] of RuboCop,
|
126
|
+
in violation of SemVer ([they disagree][rubocop-release-policy]).
|
127
|
+
In other words, RuboCop intentionally does not bump the major version when they drop
|
128
|
+
_analysis_, _runtime_, or _installation_ support for a given version of Ruby.
|
129
|
+
This is a primary _raison d’être_ for this project.
|
130
|
+
To get a better understanding of how SemVer is intended to work read this article from the creator of SemVer:
|
131
|
+
|
132
|
+
- ["Major Version Numbers are Not Sacred"][major-versions-not-sacred]
|
133
|
+
|
134
|
+
[rubocop-support-matrix]: https://docs.rubocop.org/rubocop/compatibility.html#support-matrix
|
135
|
+
[rubocop-versioning]: https://docs.rubocop.org/rubocop/versioning.html
|
136
|
+
[rubocop-release-policy]: https://docs.rubocop.org/rubocop/versioning.html#release-policy
|
137
|
+
[major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
|
121
138
|
|
122
139
|
### A Gem Family
|
123
140
|
|
@@ -203,9 +220,12 @@ But this gem shoehorns rubocop into SemVer... so `NewCops` is now safe(r)! If y
|
|
203
220
|
|
204
221
|
## Development
|
205
222
|
|
206
|
-
After checking out the repo, run `bin/setup` to install dependencies.
|
223
|
+
After checking out the repo, run `bin/setup` to install dependencies.
|
224
|
+
Then, run `rake spec` to run the tests w/ coverage,
|
225
|
+
or `bin/rake` to run tests w/ coverage, and linting.
|
226
|
+
You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
207
227
|
|
208
|
-
To install this gem onto your local machine, run `bundle exec rake install`.
|
228
|
+
To install this gem onto your local machine, run `bundle exec rake install`.
|
209
229
|
|
210
230
|
## ⚡️ Contributing
|
211
231
|
|
@@ -244,7 +264,7 @@ License: [Unsplash License][org-logo-license]
|
|
244
264
|
|
245
265
|
### © Copyright
|
246
266
|
|
247
|
-
* Copyright (c) 2022 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
|
267
|
+
* Copyright (c) 2022 - 2023 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
|
248
268
|
|
249
269
|
[copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
250
270
|
|
data/rubocop.yml
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-ruby3_0
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Boling
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
36
36
|
gwGrEXGQGDZ0NIgBcmvMOqlXjkGQwQvugKycJ024z89+fz2332vdZIKTrSxJrXGk
|
37
37
|
4/bR9A==
|
38
38
|
-----END CERTIFICATE-----
|
39
|
-
date:
|
39
|
+
date: 2023-03-17 00:00:00.000000000 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rubocop
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
47
|
+
version: 1.48.1
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
54
|
+
version: 1.48.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,16 +84,16 @@ dependencies:
|
|
84
84
|
name: yard
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
89
|
+
version: '0.9'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
96
|
+
version: '0.9'
|
97
97
|
description: Links dependency on minimum Ruby version to maximum RuboCop version
|
98
98
|
email:
|
99
99
|
- peter.boling@gmail.com
|
@@ -116,10 +116,10 @@ licenses:
|
|
116
116
|
- MIT
|
117
117
|
metadata:
|
118
118
|
homepage_uri: https://github.com/rubocop-lts/rubocop-ruby3_0
|
119
|
-
source_code_uri: https://github.com/rubocop-lts/rubocop-ruby3_0/tree/v1.1.
|
120
|
-
changelog_uri: https://github.com/rubocop-lts/rubocop-ruby3_0/blob/v1.1.
|
119
|
+
source_code_uri: https://github.com/rubocop-lts/rubocop-ruby3_0/tree/v1.1.2
|
120
|
+
changelog_uri: https://github.com/rubocop-lts/rubocop-ruby3_0/blob/v1.1.2/CHANGELOG.md
|
121
121
|
bug_tracker_uri: https://github.com/rubocop-lts/rubocop-ruby3_0/issues
|
122
|
-
documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby3_0/1.1.
|
122
|
+
documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby3_0/1.1.2
|
123
123
|
funding_uri: https://liberapay.com/pboling
|
124
124
|
wiki_uri: https://github.com/rubocop-lts/rubocop-ruby3_0/wiki
|
125
125
|
rubygems_mfa_required: 'true'
|
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
138
|
- !ruby/object:Gem::Version
|
139
139
|
version: '0'
|
140
140
|
requirements: []
|
141
|
-
rubygems_version: 3.
|
141
|
+
rubygems_version: 3.4.8
|
142
142
|
signing_key:
|
143
143
|
specification_version: 4
|
144
144
|
summary: Semantically Versioned RuboCop Dependency
|
metadata.gz.sig
CHANGED
Binary file
|