rubocop-ruby2_7 1.1.1 → 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 +11 -1
- data/CONTRIBUTING.md +8 -7
- data/README.md +33 -16
- 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,15 @@ 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
|
+
|
13
22
|
## [1.1.1] 2022-12-20
|
14
23
|
### Fixed
|
15
24
|
* Documentation of Three Guarantees:
|
@@ -60,7 +69,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
60
69
|
### Added
|
61
70
|
* Initial release
|
62
71
|
|
63
|
-
[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
|
64
74
|
[1.1.1]: https://github.com/rubocop-lts/rubocop-ruby2_7/compare/v1.1.0...v1.1.1
|
65
75
|
[1.1.0]: https://github.com/rubocop-lts/rubocop-ruby2_7/compare/v1.0.6...v1.1.0
|
66
76
|
[1.0.6]: https://github.com/rubocop-lts/rubocop-ruby2_7/compare/v1.0.5...v1.0.6
|
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,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
|
-
|
117
|
+
This gem will install a version of `rubocop` which will
|
113
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
|
|
@@ -149,7 +166,6 @@ They can be used as development dependencies for libraries or applications.
|
|
149
166
|
[rr30]: https://gitlab.com/rubocop-lts/rubocop-ruby3_0
|
150
167
|
[rr31]: https://gitlab.com/rubocop-lts/rubocop-ruby3_1
|
151
168
|
[what1_8]: https://gitlab.com/rubocop-lts/rubocop-ruby1_9#what-about-ruby-18
|
152
|
-
[rubocop-matrix]: https://github.com/rubocop/rubocop/blob/master/docs/modules/ROOT/pages/compatibility.adoc#support-matrix
|
153
169
|
|
154
170
|
## 🗿 Stable
|
155
171
|
|
@@ -203,7 +219,10 @@ But this gem shoehorns rubocop into SemVer... so `NewCops` is now safe(r)! If y
|
|
203
219
|
|
204
220
|
## Development
|
205
221
|
|
206
|
-
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.
|
207
226
|
|
208
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).
|
209
228
|
|
@@ -244,7 +263,7 @@ License: [Unsplash License][org-logo-license]
|
|
244
263
|
|
245
264
|
### © Copyright
|
246
265
|
|
247
|
-
* Copyright (c) 2022 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
|
266
|
+
* Copyright (c) 2022 - 2023 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
|
248
267
|
|
249
268
|
[copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
250
269
|
|
@@ -300,8 +319,6 @@ spec.add_dependency "rubocop-ruby2_7", "~> 1.1"
|
|
300
319
|
|
301
320
|
[tweetme]: http://twitter.com/galtzo
|
302
321
|
|
303
|
-
[politicme]: https://nationalprogressiveparty.org
|
304
|
-
|
305
322
|
[documentation]: https://rubydoc.info/github/rubocop-lts/rubocop-ruby2_7/main
|
306
323
|
|
307
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
|