rubocop-ruby2_6 1.0.3 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -5
- data/CONTRIBUTING.md +5 -5
- data/README.md +136 -37
- data/SECURITY.md +3 -3
- data/lib/rubocop/ruby2_6/version.rb +1 -1
- metadata +18 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ec32ea2dc197f3dac09c11f3eaf4465216eff411771c0d1a13b1205cacf85df
|
4
|
+
data.tar.gz: ccf8d007d5cd3b45b6f4e094492032b14a9e570121edc8a9f0f6cb0769f405ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fee75d9cda0f7361d9b6af703d8165376d32556ece423e46b2b771c1415f4f5c31cee216cff6a56e2e9cb7b4fffe7407edfbc76b2ec8225ae064597eb436831
|
7
|
+
data.tar.gz: 21aca225749a6a8587412c7ba880c8a202545848c670dfc03de81d86933902a91f88f0c8dfb0096601e25e5c83b3e80a47ab20b40d8ea28c75555aaba907ca4a
|
data/CHANGELOG.md
CHANGED
@@ -13,6 +13,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
13
13
|
|
14
14
|
### Removed
|
15
15
|
|
16
|
+
## [1.0.6] 2022-06-05
|
17
|
+
### Changed
|
18
|
+
* Update to rubocop 1.30.0
|
19
|
+
|
20
|
+
## [1.0.5] 2022-05-23
|
21
|
+
### Changed
|
22
|
+
* Update to rubocop 1.29.1
|
23
|
+
|
24
|
+
## [1.0.4] 2022-05-23
|
25
|
+
### Added
|
26
|
+
* Rubocop => RuboCop typo repair
|
27
|
+
* Ruby Version Support Matrix
|
28
|
+
* Improved documentation
|
29
|
+
|
16
30
|
## [1.0.3] 2022-05-03
|
17
31
|
### Fixed
|
18
32
|
* Added missing rubocop.yml for inherit_gem directive
|
@@ -29,8 +43,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
29
43
|
### Added
|
30
44
|
* Initial release (yanked)
|
31
45
|
|
32
|
-
[Unreleased]: https://github.com/rubocop-
|
33
|
-
[1.0.
|
34
|
-
[1.0.
|
35
|
-
[1.0.
|
36
|
-
[1.0.
|
46
|
+
[Unreleased]: https://github.com/rubocop-lts/rubocop-ruby2_6/compare/v1.0.6...HEAD
|
47
|
+
[1.0.6]: https://github.com/rubocop-lts/rubocop-ruby2_6/compare/v1.0.5...v1.0.6
|
48
|
+
[1.0.5]: https://github.com/rubocop-lts/rubocop-ruby2_6/compare/v1.0.4...v1.0.5
|
49
|
+
[1.0.4]: https://github.com/rubocop-lts/rubocop-ruby2_6/compare/v1.0.3...v1.0.4
|
50
|
+
[1.0.3]: https://github.com/rubocop-lts/rubocop-ruby2_6/compare/v1.0.2...v1.0.3
|
51
|
+
[1.0.2]: https://github.com/rubocop-lts/rubocop-ruby2_6/compare/v1.0.1...v1.0.2
|
52
|
+
[1.0.1]: https://github.com/rubocop-lts/rubocop-ruby2_6/compare/v1.0.0...v1.0.1
|
53
|
+
[1.0.0]: https://github.com/rubocop-lts/rubocop-ruby2_6/compare/d21b64e4f7ab2d581ed6882c430dd042fe73769b...v1.0.0
|
data/CONTRIBUTING.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
## Contributing
|
2
2
|
|
3
|
-
Bug reports and pull requests are welcome on GitHub at [https://github.com/rubocop-
|
3
|
+
Bug reports and pull requests are welcome on GitHub at [https://github.com/rubocop-lts/rubocop-ruby2_6][source]
|
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
|
|
@@ -8,18 +8,18 @@ To submit a patch, please fork the project and create a patch with tests. Once y
|
|
8
8
|
|
9
9
|
## Contributors
|
10
10
|
|
11
|
-
[![Contributors](https://contrib.rocks/image?repo=rubocop-
|
11
|
+
[![Contributors](https://contrib.rocks/image?repo=rubocop-lts/rubocop-ruby2_6)][contributors]
|
12
12
|
|
13
13
|
Made with [contributors-img][contrib-rocks].
|
14
14
|
|
15
15
|
[comment]: <> (Following links are used by README, CONTRIBUTING)
|
16
16
|
|
17
|
-
[conduct]: https://github.com/rubocop-
|
17
|
+
[conduct]: https://github.com/rubocop-lts/rubocop-ruby2_6/blob/main/CODE_OF_CONDUCT.md
|
18
18
|
|
19
19
|
[contrib-rocks]: https://contrib.rocks
|
20
20
|
|
21
|
-
[contributors]: https://github.com/rubocop-
|
21
|
+
[contributors]: https://github.com/rubocop-lts/rubocop-ruby2_6/graphs/contributors
|
22
22
|
|
23
23
|
[comment]: <> (Following links are used by README, CONTRIBUTING, Homepage)
|
24
24
|
|
25
|
-
[source]: https://github.com/rubocop-
|
25
|
+
[source]: https://github.com/rubocop-lts/rubocop-ruby2_6/
|
data/README.md
CHANGED
@@ -1,21 +1,83 @@
|
|
1
1
|
<p align="center">
|
2
2
|
<a href="https://rubocop.org#gh-light-mode-only" target="_blank" rel="noopener">
|
3
|
-
<img
|
3
|
+
<img height="120px" src="https://github.com/rubocop-lts/rubocop-ruby2_6/raw/main/docs/images/logo/rubocop-light.svg?raw=true" alt="SVG RuboCop Logo, Copyright (c) 2014 Dimiter Petrov, CC BY-NC 4.0, see docs/images/logo/README.txt">
|
4
4
|
</a>
|
5
5
|
<a href="https://rubocop.org#gh-dark-mode-only" target="_blank" rel="noopener">
|
6
|
-
<img
|
6
|
+
<img height="120px" src="https://github.com/rubocop-lts/rubocop-ruby2_6/raw/main/docs/images/logo/rubocop-dark.svg?raw=true" alt="SVG RuboCop Logo, Copyright (c) 2014 Dimiter Petrov, CC BY-NC 4.0, see docs/images/logo/README.txt">
|
7
7
|
</a>
|
8
8
|
<a href="https://www.ruby-lang.org/" target="_blank" rel="noopener">
|
9
|
-
<img
|
9
|
+
<img height="120px" src="https://github.com/rubocop-lts/rubocop-ruby2_6/raw/main/docs/images/logo/ruby-logo.svg?raw=true" alt="Yukihiro Matsumoto, Ruby Visual Identity Team, CC BY-SA 2.5, see docs/images/logo/README.txt">
|
10
10
|
</a>
|
11
11
|
<a href="https://semver.org/#gh-light-mode-only" target="_blank" rel="noopener">
|
12
|
-
<img
|
12
|
+
<img height="120px" src="https://github.com/rubocop-lts/rubocop-ruby2_6/raw/main/docs/images/logo/semver-light.svg?raw=true" alt="SemVer.org Logo by @maxhaz, see docs/images/logo/README.txt">
|
13
13
|
</a>
|
14
14
|
<a href="https://semver.org/#gh-dark-mode-only" target="_blank" rel="noopener">
|
15
|
-
<img
|
15
|
+
<img height="120px" src="https://github.com/rubocop-lts/rubocop-ruby2_6/raw/main/docs/images/logo/semver-dark.svg?raw=true" alt="SemVer.org Logo by @maxhaz, see docs/images/logo/README.txt">
|
16
16
|
</a>
|
17
17
|
</p>
|
18
18
|
|
19
|
+
---
|
20
|
+
|
21
|
+
NOTE: You might be interested in [`rubocop-lts`](https://github.com/rubocop-lts/rubocop-lts#-how-to-untie-gorgons-knot) which sits as a higher level than this gem, and can keep pace with whatever version of Ruby you happen to be on.
|
22
|
+
|
23
|
+
| Gem Name | Version | Downloads | CI | Activity |
|
24
|
+
|------------------------------|-------------------------------------|----------------------------------------------------------------------|----------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|
|
25
|
+
| [`rubocop-lts`][⛳️lts-gh] | [![Gem Version][⛳️lts-vi]][⛳️lts-g] | [![Total DL][🖇️lts-dti]][⛳️lts-g] [![DL Rank][🏘️lts-rti]][⛳️lts-g] | [![Current][🚎lts-cwfi]][🚎lts-cwf] | [![Open Issues][📗lts-ioi]][📗lts-io] [![Closed Issues][🚀lts-ici]][🚀lts-ic] [![Open PRs][💄lts-poi]][💄lts-po] [![Closed PRs][👽lts-pci]][👽lts-pc] |
|
26
|
+
| [`rubocop-ruby2_6`][⛳️26-gh] | [![Gem Version][⛳️26-vi]][⛳️26-g] | [![Total DL][🖇️26-dti]][⛳️26-g] [![DL Rank][🏘️26-rti]][⛳️26-g] | [![Current][🚎26-cwfi]][🚎26-cwf] [![Heads][🖐26-hwfi]][🖐26-hwf] [![Legacy][🧮26-lwfi]][🧮26-lwf] | [![Open Issues][📗26-ioi]][📗26-io] [![Closed Issues][🚀26-ici]][🚀26-ic] [![Open PRs][💄26-poi]][💄26-po] [![Closed PRs][👽26-pci]][👽26-pc] |
|
27
|
+
|
28
|
+
<!-- columnar badge #s for Project Health table:
|
29
|
+
⛳️
|
30
|
+
🖇
|
31
|
+
🏘
|
32
|
+
🚎
|
33
|
+
🖐
|
34
|
+
🧮
|
35
|
+
📗
|
36
|
+
🚀
|
37
|
+
💄
|
38
|
+
👽
|
39
|
+
-->
|
40
|
+
|
41
|
+
[⛳️lts-vi]: http://img.shields.io/gem/v/rubocop-lts.svg
|
42
|
+
[🖇️lts-dti]: https://img.shields.io/gem/dt/rubocop-lts.svg
|
43
|
+
[🏘️lts-rti]: https://img.shields.io/gem/rt/rubocop-lts.svg
|
44
|
+
[🚎lts-cwf]: https://github.com/rubocop-lts/rubocop-lts/actions/workflows/current.yml
|
45
|
+
[🚎lts-cwfi]: https://github.com/rubocop-lts/rubocop-lts/actions/workflows/current.yml/badge.svg
|
46
|
+
[🖐lts-hwf]: https://github.com/rubocop-lts/rubocop-lts/actions/workflows/heads.yml
|
47
|
+
[🖐lts-hwfi]: https://github.com/rubocop-lts/rubocop-lts/actions/workflows/heads.yml/badge.svg
|
48
|
+
[🧮lts-lwf]: https://github.com/rubocop-lts/rubocop-lts/actions/workflows/legacy.yml
|
49
|
+
[🧮lts-lwfi]: https://github.com/rubocop-lts/rubocop-lts/actions/workflows/legacy.yml/badge.svg
|
50
|
+
[📗lts-io]: https://github.com/rubocop-lts/rubocop-lts/issues
|
51
|
+
[📗lts-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-lts
|
52
|
+
[🚀lts-ic]: https://github.com/rubocop-lts/rubocop-lts/issues?q=is%3Aissue+is%3Aclosed
|
53
|
+
[🚀lts-ici]: https://img.shields.io/github/issues-closed-raw/rubocop-lts/rubocop-lts
|
54
|
+
[💄lts-po]: https://github.com/rubocop-lts/rubocop-lts/pulls
|
55
|
+
[💄lts-poi]: https://img.shields.io/github/issues-pr/rubocop-lts/rubocop-lts
|
56
|
+
[👽lts-pc]: https://github.com/rubocop-lts/rubocop-lts/pulls?q=is%3Apr+is%3Aclosed
|
57
|
+
[👽lts-pci]: https://img.shields.io/github/issues-pr-closed/rubocop-lts/rubocop-lts
|
58
|
+
[⛳️lts-g]: https://rubygems.org/gems/rubocop-lts
|
59
|
+
[⛳️lts-gh]: https://github.com/rubocop-lts/rubocop-lts
|
60
|
+
|
61
|
+
[⛳️26-vi]: http://img.shields.io/gem/v/rubocop-ruby2_6.svg
|
62
|
+
[🖇️26-dti]: https://img.shields.io/gem/dt/rubocop-ruby2_6.svg
|
63
|
+
[🏘️26-rti]: https://img.shields.io/gem/rt/rubocop-ruby2_6.svg
|
64
|
+
[🚎26-cwf]: https://github.com/rubocop-lts/rubocop-ruby2_6/actions/workflows/current.yml
|
65
|
+
[🚎26-cwfi]: https://github.com/rubocop-lts/rubocop-ruby2_6/actions/workflows/current.yml/badge.svg
|
66
|
+
[🖐26-hwf]: https://github.com/rubocop-lts/rubocop-ruby2_6/actions/workflows/heads.yml
|
67
|
+
[🖐26-hwfi]: https://github.com/rubocop-lts/rubocop-ruby2_6/actions/workflows/heads.yml/badge.svg
|
68
|
+
[🧮26-lwf]: https://github.com/rubocop-lts/rubocop-ruby2_6/actions/workflows/legacy.yml
|
69
|
+
[🧮26-lwfi]: https://github.com/rubocop-lts/rubocop-ruby2_6/actions/workflows/legacy.yml/badge.svg
|
70
|
+
[📗26-io]: https://github.com/rubocop-lts/rubocop-ruby2_6/issues
|
71
|
+
[📗26-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby2_6
|
72
|
+
[🚀26-ic]: https://github.com/rubocop-lts/rubocop-ruby2_6/issues?q=is%3Aissue+is%3Aclosed
|
73
|
+
[🚀26-ici]: https://img.shields.io/github/issues-closed-raw/rubocop-lts/rubocop-ruby2_6
|
74
|
+
[💄26-po]: https://github.com/rubocop-lts/rubocop-ruby2_6/pulls
|
75
|
+
[💄26-poi]: https://img.shields.io/github/issues-pr/rubocop-lts/rubocop-ruby2_6
|
76
|
+
[👽26-pc]: https://github.com/rubocop-lts/rubocop-ruby2_6/pulls?q=is%3Apr+is%3Aclosed
|
77
|
+
[👽26-pci]: https://img.shields.io/github/issues-pr-closed/rubocop-lts/rubocop-ruby2_6
|
78
|
+
[⛳️26-g]: https://rubygems.org/gems/rubocop-ruby2_6
|
79
|
+
[⛳️26-gh]: https://github.com/rubocop-lts/rubocop-ruby2_6
|
80
|
+
|
19
81
|
# Rubocop::Ruby26
|
20
82
|
|
21
83
|
See the intro [blog post](https://dev.to/pboling/rubocop-ruby-matrix-gems-nj)!
|
@@ -31,7 +93,7 @@ what brought you here.
|
|
31
93
|
|
32
94
|
<p align="left">
|
33
95
|
<a href="https://metaredux.com/posts/2022/04/21/rubocop-turns-10.html" target="_blank" rel="noopener">
|
34
|
-
<img width="360px" src="https://github.com/rubocop-
|
96
|
+
<img width="360px" src="https://github.com/rubocop-lts/rubocop-ruby2_6/raw/main/docs/images/rubocop-not-semver.png?raw=true" alt="Explanation of non-SemVer compliance, @bbatsov">
|
35
97
|
</a>
|
36
98
|
</p>
|
37
99
|
|
@@ -39,15 +101,52 @@ The purpose of this gem is to constrain the `rubocop` dependency of a project in
|
|
39
101
|
a [SemVer compliant](https://semver.org/) (Semantic Versioning) way that aligns with the the desired minimum
|
40
102
|
compatible/supported Ruby version.
|
41
103
|
|
104
|
+
## Ruby Version Support Matrix
|
105
|
+
|
42
106
|
Adding this gem will facilitate the best practice of adding a `~> ` version constrained `rubocop` dependency, while
|
43
107
|
minimizing the risk of a rubocop minor / patch upgrade breaking the build. See the
|
44
|
-
official [compatibility matrix]
|
45
|
-
|
46
|
-
|
108
|
+
official [compatibility matrix][rubocop-matrix] for `rubocop`.
|
109
|
+
|
110
|
+
`rubocop-ruby2_6` (this gem) will install on any version of Ruby >= 2.6, and can be used to analyze code intended to support Ruby >= 2.6.
|
111
|
+
|
112
|
+
* 🧊 - Install on Ruby `<version>`
|
113
|
+
* 🏃 - Will Execute on Ruby `<version>`
|
114
|
+
* 🪷 - Will not execute correctly on Ruby `<version>`
|
115
|
+
* 🛠 - Lint code with Ruby `<version>` syntax as the target
|
116
|
+
|
117
|
+
| gem | 1.8.7 | 1.9.3 | 2.0 | 2.1 | 2.2 | 2.3 | 2.4 | 2.5 | 2.6 | 2.7 | 3.0 | 3.1 | ruby-head | jruby-head |
|
118
|
+
|-------------------------|---------------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|------------|
|
119
|
+
| [rubocop-ruby1_9][rr19] | [🛠][what1_8] | 🧊 🏃 🛠 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🪷 | 🧊 🪷 | 🧊 🪷 |
|
120
|
+
| [rubocop-ruby2_0][rr20] | | | 🧊 🏃 🛠 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🪷 | 🧊 🪷 | 🧊 🪷 |
|
121
|
+
| [rubocop-ruby2_1][rr21] | | | | 🧊 🏃 🛠 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🪷 | 🧊 🪷 | 🧊 🪷 |
|
122
|
+
| [rubocop-ruby2_2][rr22] | | | | | 🧊 🏃 🛠 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🪷 | 🧊 🪷 | 🧊 🪷 | 🧊 🪷 |
|
123
|
+
| [rubocop-ruby2_3][rr23] | | | | | | 🧊 🏃 🛠 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🪷 | 🧊 🪷 | 🧊 🪷 |
|
124
|
+
| [rubocop-ruby2_4][rr24] | | | | | | | 🧊 🏃 🛠 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🪷 | 🧊 🪷 | 🧊 🪷 |
|
125
|
+
| [rubocop-ruby2_5][rr25] | | | | | | | | 🧊 🏃 🛠 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🪷 |
|
126
|
+
| [rubocop-ruby2_6][rr26] | | | | | | | | 🛠 | 🧊 🏃 🛠 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🪷 |
|
127
|
+
| [rubocop-ruby2_7][rr27] | | | | | | | | 🛠 | 🛠 | 🧊 🏃 🛠 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 |
|
128
|
+
| [rubocop-ruby3_0][rr30] | | | | | | | | 🛠 | 🛠 | 🛠 | 🧊 🏃 🛠 | 🧊 🏃 | 🧊 🏃 | 🧊 🏃 |
|
129
|
+
| [rubocop-ruby3_1][rr31] | | | | | | | | 🛠 | 🛠 | 🛠 | 🛠 | 🧊 🏃 🛠 | 🧊 🏃 | 🧊 🏃 |
|
130
|
+
|
131
|
+
[rr19]: https://github.com/rubocop-lts/rubocop-ruby1_9
|
132
|
+
[rr20]: https://github.com/rubocop-lts/rubocop-ruby2_0
|
133
|
+
[rr21]: https://github.com/rubocop-lts/rubocop-ruby2_1
|
134
|
+
[rr22]: https://github.com/rubocop-lts/rubocop-ruby2_2
|
135
|
+
[rr23]: https://github.com/rubocop-lts/rubocop-ruby2_3
|
136
|
+
[rr24]: https://github.com/rubocop-lts/rubocop-ruby2_4
|
137
|
+
[rr25]: https://github.com/rubocop-lts/rubocop-ruby2_5
|
138
|
+
[rr26]: https://github.com/rubocop-lts/rubocop-ruby2_6
|
139
|
+
[rr27]: https://github.com/rubocop-lts/rubocop-ruby2_7
|
140
|
+
[rr30]: https://github.com/rubocop-lts/rubocop-ruby3_0
|
141
|
+
[rr31]: https://github.com/rubocop-lts/rubocop-ruby3_1
|
142
|
+
[what1_8]: https://github.com/rubocop-lts/rubocop-ruby1_9#what-about-ruby-18
|
143
|
+
[rubocop-matrix]: https://github.com/rubocop/rubocop/blob/master/docs/modules/ROOT/pages/compatibility.adoc#support-matrix
|
144
|
+
|
145
|
+
## 🗿 Stable
|
47
146
|
|
48
147
|
All releases of this gem are stable releases. 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 🥳).
|
49
148
|
|
50
|
-
## Installation
|
149
|
+
## ✨ Installation
|
51
150
|
|
52
151
|
Install the gem and add to the application's Gemfile by executing:
|
53
152
|
|
@@ -57,7 +156,7 @@ If bundler is not being used to manage dependencies, install the gem by executin
|
|
57
156
|
|
58
157
|
$ gem install rubocop-ruby2_6
|
59
158
|
|
60
|
-
## Usage
|
159
|
+
## 🔧 Usage
|
61
160
|
|
62
161
|
The following is optional. We'll discuss why you might want to do this after you see what it does.
|
63
162
|
|
@@ -79,13 +178,13 @@ AllCops:
|
|
79
178
|
|
80
179
|
Let's talk about these settings.
|
81
180
|
|
82
|
-
|
181
|
+
### TargetRubyVersion
|
83
182
|
|
84
183
|
Allowing this gem to manage the target ruby version means you can switch to a different gem within the family when you upgrade to the next version of Ruby, and have nothing else to change. A single line in the `Gemfile`, and you are done.
|
85
184
|
|
86
|
-
|
185
|
+
### NewCops: enable
|
87
186
|
|
88
|
-
You may not use this setting in your project yet. Upgrades to the latest
|
187
|
+
You may not use this setting in your project yet. Upgrades to the latest RuboCop can include all kinds of changes, including removing support for the version of Ruby your project uses, or adding a cop that may not work with some of your syntax (e.g. [some use cases of 'module_function`](https://github.com/rubocop/rubocop/issues/5953#issuecomment-805921993)). Accepting new cops arriving in a new version of RuboCop can feel risky, especially when it doesn't follow SemVer.
|
89
188
|
|
90
189
|
But this gem shoehorns rubocop into SemVer... so `NewCops` is now safe(r)! If you use a dependency greening tool like GitHub's `dependabot`, or the excellent alternatives [depfu](https://depfu.com/), and [`renovate`](https://www.whitesourcesoftware.com/free-developer-tools/renovate/), then you can see the effect of a minor / major version bumpin your CI Build!
|
91
190
|
|
@@ -95,17 +194,17 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
95
194
|
|
96
195
|
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).
|
97
196
|
|
98
|
-
## Contributing
|
197
|
+
## ⚡️ Contributing
|
99
198
|
|
100
199
|
See [CONTRIBUTING.md][contributing]
|
101
200
|
|
102
|
-
## Contributors
|
201
|
+
## 🌈 Contributors
|
103
202
|
|
104
|
-
[![Contributors](https://contrib.rocks/image?repo=rubocop-
|
203
|
+
[![Contributors](https://contrib.rocks/image?repo=rubocop-lts/rubocop-ruby2_6)]("https://github.com/rubocop-lts/rubocop-ruby2_6/graphs/contributors")
|
105
204
|
|
106
205
|
Made with [contributors-img](https://contrib.rocks).
|
107
206
|
|
108
|
-
## License
|
207
|
+
## 📄 License
|
109
208
|
|
110
209
|
The gem is available as open source under the terms of
|
111
210
|
the [MIT License][license] [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)][license-ref].
|
@@ -125,22 +224,22 @@ Source: [Unsplash][org-logo-source]
|
|
125
224
|
License: [Unsplash License][org-logo-license]
|
126
225
|
</details>
|
127
226
|
|
128
|
-
[project-logos]: https://github.com/rubocop-
|
227
|
+
[project-logos]: https://github.com/rubocop-lts/rubocop-ruby2_6/blob/main/docs/images/logo/README.txt
|
129
228
|
[org-logo-author]: https://unsplash.com/@yusufevli
|
130
229
|
[org-logo-source]: https://unsplash.com/photos/yaSLNLtKRIU
|
131
230
|
[org-logo-license]: https://unsplash.com/license
|
132
231
|
|
133
|
-
### Copyright
|
232
|
+
### © Copyright
|
134
233
|
|
135
234
|
* Copyright (c) 2022 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
|
136
235
|
|
137
236
|
[copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
138
237
|
|
139
|
-
## Code of Conduct
|
238
|
+
## 🤝 Code of Conduct
|
140
239
|
|
141
|
-
Everyone interacting in the Rubocop::Ruby26 project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/rubocop-
|
240
|
+
Everyone interacting in the Rubocop::Ruby26 project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/rubocop-lts/rubocop-ruby2_6/blob/main/CODE_OF_CONDUCT.md).
|
142
241
|
|
143
|
-
## Versioning
|
242
|
+
## 📌 Versioning
|
144
243
|
|
145
244
|
This library aims to adhere to [Semantic Versioning 2.0.0][semver]. Violations of this scheme should be reported as
|
146
245
|
bugs. Specifically, if a minor or patch version is released that breaks backward compatibility, a new version should be
|
@@ -158,15 +257,15 @@ spec.add_dependency "rubocop-ruby2_6", "~> 1.0"
|
|
158
257
|
|
159
258
|
[copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
160
259
|
|
161
|
-
[gh_discussions]: https://github.com/rubocop-
|
260
|
+
[gh_discussions]: https://github.com/rubocop-lts/rubocop-ruby2_6/discussions
|
162
261
|
|
163
|
-
[conduct]: https://github.com/rubocop-
|
262
|
+
[conduct]: https://github.com/rubocop-lts/rubocop-ruby2_6/blob/main/CODE_OF_CONDUCT.md
|
164
263
|
|
165
|
-
[contributing]: https://github.com/rubocop-
|
264
|
+
[contributing]: https://github.com/rubocop-lts/rubocop-ruby2_6/blob/main/CONTRIBUTING.md
|
166
265
|
|
167
|
-
[security]: https://github.com/rubocop-
|
266
|
+
[security]: https://github.com/rubocop-lts/rubocop-ruby2_6/blob/main/SECURITY.md
|
168
267
|
|
169
|
-
[license]: https://github.com/rubocop-
|
268
|
+
[license]: https://github.com/rubocop-lts/rubocop-ruby2_6/blob/main/LICENSE.txt
|
170
269
|
|
171
270
|
[license-ref]: https://opensource.org/licenses/MIT
|
172
271
|
|
@@ -190,27 +289,27 @@ spec.add_dependency "rubocop-ruby2_6", "~> 1.0"
|
|
190
289
|
|
191
290
|
[politicme]: https://nationalprogressiveparty.org
|
192
291
|
|
193
|
-
[documentation]: https://rubydoc.info/github/rubocop-
|
292
|
+
[documentation]: https://rubydoc.info/github/rubocop-lts/rubocop-ruby2_6/main
|
194
293
|
|
195
|
-
[source]: https://github.com/rubocop-
|
294
|
+
[source]: https://github.com/rubocop-lts/rubocop-ruby2_6/
|
196
295
|
|
197
|
-
[actions]: https://github.com/rubocop-
|
296
|
+
[actions]: https://github.com/rubocop-lts/rubocop-ruby2_6/actions
|
198
297
|
|
199
|
-
[issues]: https://github.com/rubocop-
|
298
|
+
[issues]: https://github.com/rubocop-lts/rubocop-ruby2_6/issues
|
200
299
|
|
201
|
-
[climate_maintainability]: https://codeclimate.com/github/rubocop-
|
300
|
+
[climate_maintainability]: https://codeclimate.com/github/rubocop-lts/rubocop-ruby2_6/maintainability
|
202
301
|
|
203
|
-
[climate_coverage]: https://codeclimate.com/github/rubocop-
|
302
|
+
[climate_coverage]: https://codeclimate.com/github/rubocop-lts/rubocop-ruby2_6/test_coverage
|
204
303
|
|
205
|
-
[codecov_coverage]: https://codecov.io/gh/rubocop-
|
304
|
+
[codecov_coverage]: https://codecov.io/gh/rubocop-lts/rubocop-ruby2_6
|
206
305
|
|
207
|
-
[code_triage]: https://www.codetriage.com/rubocop-
|
306
|
+
[code_triage]: https://www.codetriage.com/rubocop-lts/rubocop-ruby2_6
|
208
307
|
|
209
308
|
[blogpage]: http://www.railsbling.com/tags/rubocop-ruby2_6/
|
210
309
|
|
211
310
|
[rubygems]: https://rubygems.org/gems/rubocop-ruby2_6
|
212
311
|
|
213
|
-
[chat]: https://gitter.im/rubocop-
|
312
|
+
[chat]: https://gitter.im/rubocop-lts/rubocop-ruby2_6?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
|
214
313
|
|
215
314
|
[maintenancee_policy]: https://guides.rubyonrails.org/maintenance_policy.html#security-issues
|
216
315
|
|
data/SECURITY.md
CHANGED
@@ -3,11 +3,11 @@
|
|
3
3
|
## Supported Versions
|
4
4
|
|
5
5
|
| Version | Supported |
|
6
|
-
|
7
|
-
|
|
6
|
+
|---------| ------------------ |
|
7
|
+
| 1.x | :white_check_mark: |
|
8
8
|
|
9
9
|
## Reporting a Vulnerability
|
10
10
|
|
11
11
|
Peter Boling is the primary maintainer of this gem. Please find a way
|
12
12
|
to [contact him directly](https://railsbling.com/contact) to report the issue. Include as much relevant information as
|
13
|
-
possible.
|
13
|
+
possible.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Boling
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-05
|
11
|
+
date: 2022-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.30.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.30.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
description: Links dependency on minimum Ruby version to maximum
|
55
|
+
description: Links dependency on minimum Ruby version to maximum RuboCop version
|
56
56
|
email:
|
57
57
|
- peter.boling@gmail.com
|
58
58
|
executables: []
|
@@ -72,18 +72,18 @@ files:
|
|
72
72
|
- spec/config/rspec/rspec_core.rb
|
73
73
|
- spec/rubocop/ruby2_6_spec.rb
|
74
74
|
- spec/spec_helper.rb
|
75
|
-
homepage: https://github.com/rubocop-
|
75
|
+
homepage: https://github.com/rubocop-lts/rubocop-ruby2_6
|
76
76
|
licenses:
|
77
77
|
- MIT
|
78
78
|
metadata:
|
79
|
-
homepage_uri: https://github.com/rubocop-
|
80
|
-
source_code_uri: https://github.com/rubocop-
|
81
|
-
changelog_uri: https://github.com/rubocop-
|
82
|
-
bug_tracker_uri: https://github.com/rubocop-
|
83
|
-
documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby2_6/1.0.
|
84
|
-
wiki_uri: https://github.com/rubocop-
|
79
|
+
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.6
|
81
|
+
changelog_uri: https://github.com/rubocop-lts/rubocop-ruby2_6/blob/v1.0.6/CHANGELOG.md
|
82
|
+
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.6
|
84
|
+
wiki_uri: https://github.com/rubocop-lts/rubocop-ruby2_6/wiki
|
85
85
|
rubygems_mfa_required: 'true'
|
86
|
-
post_install_message:
|
86
|
+
post_install_message:
|
87
87
|
rdoc_options: []
|
88
88
|
require_paths:
|
89
89
|
- lib
|
@@ -98,11 +98,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
- !ruby/object:Gem::Version
|
99
99
|
version: '0'
|
100
100
|
requirements: []
|
101
|
-
rubygems_version: 3.3.
|
102
|
-
signing_key:
|
101
|
+
rubygems_version: 3.3.14
|
102
|
+
signing_key:
|
103
103
|
specification_version: 4
|
104
|
-
summary: Semantically Versioned
|
104
|
+
summary: Semantically Versioned RuboCop Dependency
|
105
105
|
test_files:
|
106
|
+
- spec/spec_helper.rb
|
106
107
|
- spec/config/rspec/rspec_core.rb
|
107
108
|
- spec/rubocop/ruby2_6_spec.rb
|
108
|
-
- spec/spec_helper.rb
|