rubocop-ruby2_6 1.0.6 → 1.1.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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +25 -5
- data/CONTRIBUTING.md +25 -11
- data/README.md +81 -48
- data/SECURITY.md +3 -3
- data/lib/rubocop/ruby2_6/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +64 -27
- metadata.gz.sig +0 -0
- data/spec/config/rspec/rspec_core.rb +0 -13
- data/spec/rubocop/ruby2_6_spec.rb +0 -7
- data/spec/spec_helper.rb +0 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b9598521ce0c228a98eaa28b4b1fe71c51a7c05af2175b12b85758f0236a74d
|
4
|
+
data.tar.gz: bf8d2029e61cafc9e9bfb958f71ffff61a70b8d09faad1a3bdd019aa4dee1175
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e158567083b708353379361955b690017c1d559e1fb6ffff2fe4bdccd83e7b31628c8a6bcee605ed1190389c2655ff115a1d7bb35cf7bf1bf04b7b26778ae50
|
7
|
+
data.tar.gz: 05b5ef8580492fbc3057b7ecea473ae82309e5580e47b13e1cbb99f79ec45d48dbf3ee4f8ed627c634304fe9045d0f924a47024b9e5e94c7d2f6f59debdac521
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -6,13 +6,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
### Added
|
9
|
-
|
10
9
|
### Changed
|
11
|
-
|
12
10
|
### Fixed
|
13
|
-
|
14
11
|
### Removed
|
15
12
|
|
13
|
+
## [1.1.0] 2023-02-01
|
14
|
+
### Added
|
15
|
+
* More Linting Rules
|
16
|
+
* Improved Rakefile for YARD docs
|
17
|
+
* Updated Ruby Version Support in Readme
|
18
|
+
* Improved development and versioning policy documentation
|
19
|
+
* Documentation of Three Guarantees:
|
20
|
+
* `rubocop-ruby2_6` (this gem) will install a version of `rubocop` which will
|
21
|
+
**install** on (1), **run** on (2), and **analyze code** (3) intended to support any version of Ruby >= 2.6.
|
22
|
+
### Changed
|
23
|
+
* Upgraded to RuboCop v1.44.1
|
24
|
+
* Compatible with rubocop-packaging ~> 0.5.2
|
25
|
+
* Rubocop => RuboCop typo repair in documentation
|
26
|
+
* Minimum code coverage == 100%
|
27
|
+
|
28
|
+
## [1.0.7] 2022-06-08
|
29
|
+
### Changed
|
30
|
+
* Update to rubocop 1.30.1
|
31
|
+
* Removed test_files from gemspec
|
32
|
+
* Add binstubs for bundle, rake, rspec, and rubocop
|
33
|
+
|
16
34
|
## [1.0.6] 2022-06-05
|
17
35
|
### Changed
|
18
36
|
* Update to rubocop 1.30.0
|
@@ -37,13 +55,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
37
55
|
|
38
56
|
## [1.0.1] 2022-05-01
|
39
57
|
### Fixed
|
40
|
-
* Ruby version requirement fixed to 2.6
|
58
|
+
* Ruby version requirement fixed to 2.6
|
41
59
|
|
42
60
|
## [1.0.0] yanked
|
43
61
|
### Added
|
44
62
|
* Initial release (yanked)
|
45
63
|
|
46
|
-
[Unreleased]: https://github.com/rubocop-lts/rubocop-ruby2_6/compare/v1.0
|
64
|
+
[Unreleased]: https://github.com/rubocop-lts/rubocop-ruby2_6/compare/v1.1.0...HEAD
|
65
|
+
[1.1.0]: https://github.com/rubocop-lts/rubocop-ruby2_6/compare/v1.0.7...v1.1.0
|
66
|
+
[1.0.7]: https://github.com/rubocop-lts/rubocop-ruby2_6/compare/v1.0.6...v1.0.7
|
47
67
|
[1.0.6]: https://github.com/rubocop-lts/rubocop-ruby2_6/compare/v1.0.5...v1.0.6
|
48
68
|
[1.0.5]: https://github.com/rubocop-lts/rubocop-ruby2_6/compare/v1.0.4...v1.0.5
|
49
69
|
[1.0.4]: https://github.com/rubocop-lts/rubocop-ruby2_6/compare/v1.0.3...v1.0.4
|
data/CONTRIBUTING.md
CHANGED
@@ -1,25 +1,39 @@
|
|
1
1
|
## Contributing
|
2
2
|
|
3
|
-
Bug reports and pull requests are welcome on
|
3
|
+
Bug reports and pull requests are welcome on GitLab at [https://gitlab.com/rubocop-lts/rubocop-ruby2_6][🚎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
|
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].
|
8
9
|
|
9
|
-
##
|
10
|
-
|
11
|
-
[][contributors]
|
10
|
+
## Release
|
12
11
|
|
13
|
-
|
12
|
+
To release a new version:
|
14
13
|
|
15
|
-
|
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].
|
16
22
|
|
17
|
-
|
23
|
+
NOTE: You will need to have a public key in `certs/`, and list your cert in the
|
24
|
+
`gemspec`, in order to sign the new release.
|
25
|
+
See: [RubyGems Security Guide][rubygems-security-guide]
|
18
26
|
|
19
|
-
|
27
|
+
## Contributors
|
20
28
|
|
21
|
-
[contributors]
|
29
|
+
[![Contributors][🖐contributors-img]][🖐contributors]
|
22
30
|
|
23
31
|
[comment]: <> (Following links are used by README, CONTRIBUTING, Homepage)
|
24
32
|
|
25
|
-
[
|
33
|
+
[conduct]: https://gitlab.com/rubocop-lts/rubocop-ruby2_6/-/blob/main/CODE_OF_CONDUCT.md
|
34
|
+
[🖐contributors]: https://gitlab.com/rubocop-lts/rubocop-ruby2_6/-/graphs/main
|
35
|
+
[🖐contributors-img]: https://img.shields.io/github/contributors-anon/rubocop-lts/rubocop-ruby2_6
|
36
|
+
[🚎src-main]: https://gitlab.com/rubocop-lts/rubocop-ruby2_6/-/tree/main
|
37
|
+
[🏘chat]: https://gitter.im/rubocop-lts/community
|
38
|
+
[rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
|
39
|
+
[rubygems]: https://rubygems.org
|
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
|
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,81 @@ 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
|
-
[
|
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
|
143
169
|
[rubocop-matrix]: https://github.com/rubocop/rubocop/blob/master/docs/modules/ROOT/pages/compatibility.adoc#support-matrix
|
144
170
|
|
145
171
|
## 🗿 Stable
|
146
172
|
|
147
|
-
All releases of this gem are stable releases.
|
173
|
+
All releases of this gem are stable releases.
|
174
|
+
We do not release new versions for every release of `rubocop`.
|
175
|
+
A typical release cycle for a gem in the `rubocop-lts` family is roughly every six months,
|
176
|
+
though eventually analysis support for an old version of Ruby will be dropped .
|
177
|
+
When that happens releases of the `rubocop-lts` gem for that version of Ruby will (mostly) cease.
|
178
|
+
|
179
|
+
The first version is `1.0.1` (1.0.0 was yanked due to accidentally requiring Ruby 3.1, failing the whole purpose of this project 🥳).
|
148
180
|
|
149
181
|
## ✨ Installation
|
150
182
|
|
@@ -190,7 +222,10 @@ But this gem shoehorns rubocop into SemVer... so `NewCops` is now safe(r)! If y
|
|
190
222
|
|
191
223
|
## Development
|
192
224
|
|
193
|
-
After checking out the repo, run `bin/setup` to install dependencies.
|
225
|
+
After checking out the repo, run `bin/setup` to install dependencies.
|
226
|
+
Then, run `rake spec` to run the tests w/ coverage,
|
227
|
+
or `bin/rake` to run tests w/ coverage, and linting.
|
228
|
+
You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
194
229
|
|
195
230
|
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
231
|
|
@@ -231,7 +266,7 @@ License: [Unsplash License][org-logo-license]
|
|
231
266
|
|
232
267
|
### © Copyright
|
233
268
|
|
234
|
-
* Copyright (c) 2022 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
|
269
|
+
* Copyright (c) 2022 - 2023 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
|
235
270
|
|
236
271
|
[copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
237
272
|
|
@@ -252,7 +287,7 @@ the [Pessimistic Version Constraint][pvc] with two digits of precision.
|
|
252
287
|
For example:
|
253
288
|
|
254
289
|
```ruby
|
255
|
-
spec.add_dependency "rubocop-ruby2_6", "~> 1.
|
290
|
+
spec.add_dependency "rubocop-ruby2_6", "~> 1.1"
|
256
291
|
```
|
257
292
|
|
258
293
|
[copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
@@ -287,8 +322,6 @@ spec.add_dependency "rubocop-ruby2_6", "~> 1.0"
|
|
287
322
|
|
288
323
|
[tweetme]: http://twitter.com/galtzo
|
289
324
|
|
290
|
-
[politicme]: https://nationalprogressiveparty.org
|
291
|
-
|
292
325
|
[documentation]: https://rubydoc.info/github/rubocop-lts/rubocop-ruby2_6/main
|
293
326
|
|
294
327
|
[source]: https://github.com/rubocop-lts/rubocop-ruby2_6/
|
data/SECURITY.md
CHANGED
data.tar.gz.sig
ADDED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,42 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-ruby2_6
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Boling
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
|
-
cert_chain:
|
11
|
-
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIEgDCCAuigAwIBAgIBATANBgkqhkiG9w0BAQsFADBDMRUwEwYDVQQDDAxwZXRl
|
14
|
+
ci5ib2xpbmcxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkW
|
15
|
+
A2NvbTAeFw0yMjA5MTgyMzEyMzBaFw0yMzA5MTgyMzEyMzBaMEMxFTATBgNVBAMM
|
16
|
+
DHBldGVyLmJvbGluZzEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPy
|
17
|
+
LGQBGRYDY29tMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEA2Dn1GM3W
|
18
|
+
8K2/rvN1zz+06bQMcxD16ZKTihVwi7Pb1v3T98rM4Omnxohm3s+CwpDWGeiB9pj6
|
19
|
+
0I/CTce0e4e3s8GKJSOrg93veImPSoH2PfsMsRsuB8wtqyiOCjLbF5o6S29x87r0
|
20
|
+
LA5EawH+Lh4xqrkkPjdffsmLk7TaCig/vlmNvnzxXKBdey/X/aEJZXzzBiWRfVdh
|
21
|
+
O1fmMbVKyieGv9HK7+pLotIoT08bjDv8NP6V7zZslwQRqW27bQc6cqC2LGIbTYO3
|
22
|
+
3jt1kQxfMWmhOictS6SzG9VtKSrXf0L4Neq0Gh7CLBZBvJFWJYZPfb92YNITDbd8
|
23
|
+
emPOAQlXXNMN4mMXsEqtEhCPZRMnmwO+fOk/cC4AyglKi9lnQugCQoFV1XDMZST/
|
24
|
+
CYbzdQyadOdPDInTntG6V+Uw51d2QGXZ6PDDfrx9+toc/3sl5h68rCUGgE6Q3jPz
|
25
|
+
srinqmBsxv2vTpmd4FjmiAtEnwH5/ooLpQYL8UdAjEoeysxS3AwIh+5dAgMBAAGj
|
26
|
+
fzB9MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBQWU6D156a2cle+
|
27
|
+
lb5RBfvVXlxTwjAhBgNVHREEGjAYgRZwZXRlci5ib2xpbmdAZ21haWwuY29tMCEG
|
28
|
+
A1UdEgQaMBiBFnBldGVyLmJvbGluZ0BnbWFpbC5jb20wDQYJKoZIhvcNAQELBQAD
|
29
|
+
ggGBAJ4SqhPlgUiLYIrphGXIaxXScHyvx4kixuvdrwhI4VoQV2qXvO7R6ZjOXVwX
|
30
|
+
f/z84BWPiTZ8lzThPbt1UV/BGwkvLw9I4RjOdzvUz3J42j9Ly6q63isall07bo3F
|
31
|
+
QWe/OBvIMBF1IbjC3q5vKPg4rq8+TkNRJNoE86U2gfR+PkW3jYYs9uiy0GloHDCP
|
32
|
+
k5xgaj0vSL0Uy5mTOPdk3K6a/sUGZyYniWK05zdhIi956ynhfGaFO988FFdVw5Jq
|
33
|
+
LHtXfIpAU8F7ES04syZSslxOluw7VlcSKyRdVIr737J92ZTduppB4PRGSKRgBsWV
|
34
|
+
hXTahRE72Kyw53Q7FAuzF3v102WxAAQ7BuMjW+MyCUT75fwPm3W4ELPL8HYkNGE7
|
35
|
+
2oA5CPghFitRnvYS3GNrDG+9bNiRMEskeaBYwZ9UgReBQIwGYVj7LZk3UhiAsn44
|
36
|
+
gwGrEXGQGDZ0NIgBcmvMOqlXjkGQwQvugKycJ024z89+fz2332vdZIKTrSxJrXGk
|
37
|
+
4/bR9A==
|
38
|
+
-----END CERTIFICATE-----
|
39
|
+
date: 2023-02-01 00:00:00.000000000 Z
|
12
40
|
dependencies:
|
13
41
|
- !ruby/object:Gem::Dependency
|
14
42
|
name: rubocop
|
@@ -16,42 +44,56 @@ dependencies:
|
|
16
44
|
requirements:
|
17
45
|
- - "~>"
|
18
46
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
47
|
+
version: 1.44.1
|
20
48
|
type: :runtime
|
21
49
|
prerelease: false
|
22
50
|
version_requirements: !ruby/object:Gem::Requirement
|
23
51
|
requirements:
|
24
52
|
- - "~>"
|
25
53
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
54
|
+
version: 1.44.1
|
27
55
|
- !ruby/object:Gem::Dependency
|
28
56
|
name: rake
|
29
57
|
requirement: !ruby/object:Gem::Requirement
|
30
58
|
requirements:
|
31
|
-
- - "
|
59
|
+
- - "~>"
|
32
60
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
61
|
+
version: '13.0'
|
34
62
|
type: :development
|
35
63
|
prerelease: false
|
36
64
|
version_requirements: !ruby/object:Gem::Requirement
|
37
65
|
requirements:
|
38
|
-
- - "
|
66
|
+
- - "~>"
|
39
67
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
68
|
+
version: '13.0'
|
41
69
|
- !ruby/object:Gem::Dependency
|
42
70
|
name: rspec
|
43
71
|
requirement: !ruby/object:Gem::Requirement
|
44
72
|
requirements:
|
45
|
-
- - "
|
73
|
+
- - "~>"
|
46
74
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
75
|
+
version: '3.12'
|
48
76
|
type: :development
|
49
77
|
prerelease: false
|
50
78
|
version_requirements: !ruby/object:Gem::Requirement
|
51
79
|
requirements:
|
52
|
-
- - "
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.12'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: yard
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.9'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
53
95
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
96
|
+
version: '0.9'
|
55
97
|
description: Links dependency on minimum Ruby version to maximum RuboCop version
|
56
98
|
email:
|
57
99
|
- peter.boling@gmail.com
|
@@ -69,21 +111,19 @@ files:
|
|
69
111
|
- lib/rubocop/ruby2_6/version.rb
|
70
112
|
- rubocop.yml
|
71
113
|
- sig/rubocop/ruby2_6.rbs
|
72
|
-
- spec/config/rspec/rspec_core.rb
|
73
|
-
- spec/rubocop/ruby2_6_spec.rb
|
74
|
-
- spec/spec_helper.rb
|
75
114
|
homepage: https://github.com/rubocop-lts/rubocop-ruby2_6
|
76
115
|
licenses:
|
77
116
|
- MIT
|
78
117
|
metadata:
|
79
118
|
homepage_uri: https://github.com/rubocop-lts/rubocop-ruby2_6
|
80
|
-
source_code_uri: https://github.com/rubocop-lts/rubocop-ruby2_6/tree/v1.0
|
81
|
-
changelog_uri: https://github.com/rubocop-lts/rubocop-ruby2_6/blob/v1.0
|
119
|
+
source_code_uri: https://github.com/rubocop-lts/rubocop-ruby2_6/tree/v1.1.0
|
120
|
+
changelog_uri: https://github.com/rubocop-lts/rubocop-ruby2_6/blob/v1.1.0/CHANGELOG.md
|
82
121
|
bug_tracker_uri: https://github.com/rubocop-lts/rubocop-ruby2_6/issues
|
83
|
-
documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby2_6/1.0
|
122
|
+
documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby2_6/1.1.0
|
123
|
+
funding_uri: https://liberapay.com/pboling
|
84
124
|
wiki_uri: https://github.com/rubocop-lts/rubocop-ruby2_6/wiki
|
85
125
|
rubygems_mfa_required: 'true'
|
86
|
-
post_install_message:
|
126
|
+
post_install_message:
|
87
127
|
rdoc_options: []
|
88
128
|
require_paths:
|
89
129
|
- lib
|
@@ -98,11 +138,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
138
|
- !ruby/object:Gem::Version
|
99
139
|
version: '0'
|
100
140
|
requirements: []
|
101
|
-
rubygems_version: 3.
|
102
|
-
signing_key:
|
141
|
+
rubygems_version: 3.4.4
|
142
|
+
signing_key:
|
103
143
|
specification_version: 4
|
104
144
|
summary: Semantically Versioned RuboCop Dependency
|
105
|
-
test_files:
|
106
|
-
- spec/spec_helper.rb
|
107
|
-
- spec/config/rspec/rspec_core.rb
|
108
|
-
- spec/rubocop/ruby2_6_spec.rb
|
145
|
+
test_files: []
|
metadata.gz.sig
ADDED
Binary file
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
RSpec.configure do |config|
|
4
|
-
# Enable flags like --only-failures and --next-failure
|
5
|
-
config.example_status_persistence_file_path = ".rspec_status"
|
6
|
-
|
7
|
-
# Disable RSpec exposing methods globally on `Module` and `main`
|
8
|
-
config.disable_monkey_patching!
|
9
|
-
|
10
|
-
config.expect_with :rspec do |c|
|
11
|
-
c.syntax = :expect
|
12
|
-
end
|
13
|
-
end
|
data/spec/spec_helper.rb
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
DEBUG = ENV.fetch("DEBUG", nil) == "true"
|
4
|
-
|
5
|
-
ruby_version = Gem::Version.new(RUBY_VERSION)
|
6
|
-
minimum_version = ->(version, engine = "ruby") { ruby_version >= Gem::Version.new(version) && RUBY_ENGINE == engine }
|
7
|
-
actual_version = lambda do |major, minor|
|
8
|
-
actual = Gem::Version.new(ruby_version)
|
9
|
-
major == actual.segments[0] && minor == actual.segments[1] && RUBY_ENGINE == "ruby"
|
10
|
-
end
|
11
|
-
debugging = minimum_version.call("2.7") && DEBUG
|
12
|
-
RUN_COVERAGE = minimum_version.call("2.6") && (ENV.fetch("COVER_ALL",
|
13
|
-
nil) || ENV.fetch("CI_CODECOV", nil) || ENV["CI"].nil?)
|
14
|
-
ALL_FORMATTERS = actual_version.call(2,
|
15
|
-
7) && (ENV.fetch("COVER_ALL",
|
16
|
-
nil) || ENV.fetch("CI_CODECOV", nil) || ENV.fetch("CI", nil))
|
17
|
-
|
18
|
-
if DEBUG
|
19
|
-
if debugging
|
20
|
-
require "byebug"
|
21
|
-
elsif minimum_version.call("2.7", "jruby")
|
22
|
-
require "pry-debugger-jruby"
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
require "simplecov" if RUN_COVERAGE
|
27
|
-
|
28
|
-
# This gem
|
29
|
-
require "rubocop/ruby2_6"
|
30
|
-
|
31
|
-
# RSpec Configs
|
32
|
-
require "config/rspec/rspec_core"
|