rubocop-ruby2_7 1.1.0 β 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 +20 -1
- data/CONTRIBUTING.md +8 -7
- data/README.md +79 -49
- data/lib/rubocop/ruby2_7/version.rb +1 -1
- 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: 9ea339dc8616b27a1bde52a824acada79ad7a95577910de226806103639d3831
|
4
|
+
data.tar.gz: 1aba43f9aea519043f1cafd116961ac6d343ee688328fbcfd85c72557de6b566
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da213804037c9003f0230a6f07d70296f86e382b3cf874f8595b6e3ace4574cbabb2baa305c7e703723daeb5f481a58e3e4dd7d0a35ba4eda1547a0612614124
|
7
|
+
data.tar.gz: 961f5c4a3258f3f10ac6067f181b29585a38e1c5902f48097ca84ae9d28da95591f566a4d7922889aa1474d89eb264dc0b15ecea1445e1251410225827f8e2c1
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -10,6 +10,23 @@ 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-02-01
|
14
|
+
### Fixed
|
15
|
+
* Stop defining global variable in version.rb
|
16
|
+
### Changed
|
17
|
+
* Upgraded to RuboCop v1.44.1
|
18
|
+
* Compatible with rubocop-packaging ~> 0.5.2
|
19
|
+
* Improved development documentation
|
20
|
+
* Improved documentation on SemVer adherence
|
21
|
+
|
22
|
+
## [1.1.1] 2022-12-20
|
23
|
+
### Fixed
|
24
|
+
* Documentation of Three Guarantees:
|
25
|
+
* `rubocop-ruby2_7` (this gem) will install a version of `rubocop` which will
|
26
|
+
**install** on (1), **run** on (2), and **analyze code** (3) intended to support any version of Ruby >= 2.7.
|
27
|
+
### Changed
|
28
|
+
* Minimum code coverage == 100%
|
29
|
+
|
13
30
|
## [1.1.0] 2022-12-19
|
14
31
|
### Added
|
15
32
|
* More Linting Rules
|
@@ -52,7 +69,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
52
69
|
### Added
|
53
70
|
* Initial release
|
54
71
|
|
55
|
-
[Unreleased]: https://github.com/rubocop-lts/rubocop-ruby2_7/compare/v1.1.
|
72
|
+
[Unreleased]: https://github.com/rubocop-lts/rubocop-ruby2_7/compare/v1.1.2...HEAD
|
73
|
+
[1.1.2]: https://github.com/rubocop-lts/rubocop-ruby2_7/compare/v1.1.1...v1.1.2
|
74
|
+
[1.1.1]: https://github.com/rubocop-lts/rubocop-ruby2_7/compare/v1.1.0...v1.1.1
|
56
75
|
[1.1.0]: https://github.com/rubocop-lts/rubocop-ruby2_7/compare/v1.0.6...v1.1.0
|
57
76
|
[1.0.6]: https://github.com/rubocop-lts/rubocop-ruby2_7/compare/v1.0.5...v1.0.6
|
58
77
|
[1.0.5]: https://github.com/rubocop-lts/rubocop-ruby2_7/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.
|
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,53 +102,78 @@ 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
|
-
## Ruby Version Support
|
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`.
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
[
|
132
|
-
[
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
[
|
140
|
-
[
|
141
|
-
[
|
142
|
-
[
|
143
|
-
[rubocop-
|
113
|
+
official [compatibility matrix][rubocop-support-matrix] for `rubocop`.
|
114
|
+
|
115
|
+
### Three Guarantees
|
116
|
+
|
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.
|
119
|
+
|
120
|
+
Any change to any of those three abilities would require a major version bump.
|
121
|
+
Each [spring `rubocop` drops][rubocop-support-matrix] the ability to **install** and **run** `rubocop` on an EOL'd Ruby.
|
122
|
+
Eventually `rubocop` will drop the ability to **analyze code** intended to support an EOL'd Ruby,
|
123
|
+
as they already have for Ruby 1.8 and 1.9.
|
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
|
138
|
+
|
139
|
+
### A Gem Family
|
140
|
+
|
141
|
+
The `rubocop-lts` series of gems has a version supporting any version of Ruby you need.
|
142
|
+
They can be used as development dependencies for libraries or applications.
|
143
|
+
|
144
|
+
- [`rubocop-ruby1_9`][rr19]
|
145
|
+
- [Still supporting Ruby 1.8?][what1_8]
|
146
|
+
- [`rubocop-ruby2_0`][rr20]
|
147
|
+
- [`rubocop-ruby2_1`][rr21]
|
148
|
+
- [`rubocop-ruby2_2`][rr22]
|
149
|
+
- [`rubocop-ruby2_3`][rr23]
|
150
|
+
- [`rubocop-ruby2_4`][rr24]
|
151
|
+
- [`rubocop-ruby2_5`][rr25]
|
152
|
+
- [`rubocop-ruby2_6`][rr26]
|
153
|
+
- [`rubocop-ruby2_7`][rr27]
|
154
|
+
- [`rubocop-ruby3_0`][rr30]
|
155
|
+
- [`rubocop-ruby3_1`][rr31]
|
156
|
+
|
157
|
+
[rr19]: https://gitlab.com/rubocop-lts/rubocop-ruby1_9
|
158
|
+
[rr20]: https://gitlab.com/rubocop-lts/rubocop-ruby2_0
|
159
|
+
[rr21]: https://gitlab.com/rubocop-lts/rubocop-ruby2_1
|
160
|
+
[rr22]: https://gitlab.com/rubocop-lts/rubocop-ruby2_2
|
161
|
+
[rr23]: https://gitlab.com/rubocop-lts/rubocop-ruby2_3
|
162
|
+
[rr24]: https://gitlab.com/rubocop-lts/rubocop-ruby2_4
|
163
|
+
[rr25]: https://gitlab.com/rubocop-lts/rubocop-ruby2_5
|
164
|
+
[rr26]: https://gitlab.com/rubocop-lts/rubocop-ruby2_6
|
165
|
+
[rr27]: https://gitlab.com/rubocop-lts/rubocop-ruby2_7
|
166
|
+
[rr30]: https://gitlab.com/rubocop-lts/rubocop-ruby3_0
|
167
|
+
[rr31]: https://gitlab.com/rubocop-lts/rubocop-ruby3_1
|
168
|
+
[what1_8]: https://gitlab.com/rubocop-lts/rubocop-ruby1_9#what-about-ruby-18
|
144
169
|
|
145
170
|
## πΏ Stable
|
146
171
|
|
147
|
-
All releases of this gem are stable releases.
|
172
|
+
All releases of this gem are stable releases.
|
173
|
+
We do not release new versions for every release of `rubocop`.
|
174
|
+
A typical release cycle for a gem in the `rubocop-lts` family is roughly every six months,
|
175
|
+
though eventually analysis support for an old version of Ruby will be dropped.
|
176
|
+
When that happens releases of the `rubocop-lts` gem for that version of Ruby will (mostly) cease.
|
148
177
|
|
149
178
|
## β¨ Installation
|
150
179
|
|
@@ -190,7 +219,10 @@ But this gem shoehorns rubocop into SemVer... so `NewCops` is now safe(r)! If y
|
|
190
219
|
|
191
220
|
## Development
|
192
221
|
|
193
|
-
After checking out the repo, run `bin/setup` to install dependencies.
|
222
|
+
After checking out the repo, run `bin/setup` to install dependencies.
|
223
|
+
Then, run `rake spec` to run the tests w/ coverage,
|
224
|
+
or `bin/rake` to run tests w/ coverage, and linting.
|
225
|
+
You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
194
226
|
|
195
227
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
196
228
|
|
@@ -231,7 +263,7 @@ License: [Unsplash License][org-logo-license]
|
|
231
263
|
|
232
264
|
### Β© Copyright
|
233
265
|
|
234
|
-
* Copyright (c) 2022 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
|
266
|
+
* Copyright (c) 2022 - 2023 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
|
235
267
|
|
236
268
|
[copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
237
269
|
|
@@ -252,7 +284,7 @@ the [Pessimistic Version Constraint][pvc] with two digits of precision.
|
|
252
284
|
For example:
|
253
285
|
|
254
286
|
```ruby
|
255
|
-
spec.add_dependency "rubocop-ruby2_7", "~> 1.
|
287
|
+
spec.add_dependency "rubocop-ruby2_7", "~> 1.1"
|
256
288
|
```
|
257
289
|
|
258
290
|
[copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
@@ -287,8 +319,6 @@ spec.add_dependency "rubocop-ruby2_7", "~> 1.0"
|
|
287
319
|
|
288
320
|
[tweetme]: http://twitter.com/galtzo
|
289
321
|
|
290
|
-
[politicme]: https://nationalprogressiveparty.org
|
291
|
-
|
292
322
|
[documentation]: https://rubydoc.info/github/rubocop-lts/rubocop-ruby2_7/main
|
293
323
|
|
294
324
|
[source]: https://github.com/rubocop-lts/rubocop-ruby2_7/
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-ruby2_7
|
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-02-01 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.44.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.44.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-ruby2_7
|
119
|
-
source_code_uri: https://github.com/rubocop-lts/rubocop-ruby2_7/tree/v1.1.
|
120
|
-
changelog_uri: https://github.com/rubocop-lts/rubocop-ruby2_7/blob/v1.1.
|
119
|
+
source_code_uri: https://github.com/rubocop-lts/rubocop-ruby2_7/tree/v1.1.2
|
120
|
+
changelog_uri: https://github.com/rubocop-lts/rubocop-ruby2_7/blob/v1.1.2/CHANGELOG.md
|
121
121
|
bug_tracker_uri: https://github.com/rubocop-lts/rubocop-ruby2_7/issues
|
122
|
-
documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby2_7/1.1.
|
122
|
+
documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby2_7/1.1.2
|
123
123
|
funding_uri: https://liberapay.com/pboling
|
124
124
|
wiki_uri: https://github.com/rubocop-lts/rubocop-ruby2_7/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.4
|
142
142
|
signing_key:
|
143
143
|
specification_version: 4
|
144
144
|
summary: Semantically Versioned RuboCop Dependency
|
metadata.gz.sig
CHANGED
Binary file
|