rubocop-ruby3_0 1.0.1 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +19 -13
- data/CONTRIBUTING.md +5 -5
- data/README.md +136 -37
- data/lib/rubocop/ruby3_0/version.rb +1 -1
- data/rubocop.yml +3 -0
- data/sig/rubocop/ruby3_0.rbs +6 -0
- metadata +16 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1136aaca37bb65b0814f378f70a48350db1f26341e0e858acaefd39338021667
|
4
|
+
data.tar.gz: ad34611166dee64b9a9394e2a3e9bfe17b607871bb7b20bd14f5c107ed9b41f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a512be5cd03159216890376c0a4fca9ed3c9fecaefa977301f5b9e9b9ad623bb831cd3fff2d1f3fe7b859cb13131a473cd652d741cfbccd204737039b1310d7
|
7
|
+
data.tar.gz: 2a47396f7cc2e94d5f0693d173cc99f53d552d8e7b4dd81ed7d2e44e909f4763060fd72e640f0b9114301e9d1e15dd16bde70219b6916912880bd3df2a6a2f4b
|
data/CHANGELOG.md
CHANGED
@@ -13,25 +13,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
13
13
|
|
14
14
|
### Removed
|
15
15
|
|
16
|
-
## [1.0.
|
17
|
-
### Added
|
18
|
-
* Documentation
|
19
|
-
|
16
|
+
## [1.0.4] 2022-05-23
|
20
17
|
### Changed
|
18
|
+
* Update to rubocop 1.29.1
|
21
19
|
|
20
|
+
## [1.0.3] 2022-05-23
|
21
|
+
### Added
|
22
|
+
* Rubocop => RuboCop typo repair
|
23
|
+
* Ruby Version Support Matrix
|
24
|
+
* Improved documentation
|
25
|
+
|
26
|
+
## [1.0.2] 2022-05-03
|
22
27
|
### Fixed
|
28
|
+
* Added missing rubocop.yml for inherit_gem directive
|
23
29
|
|
24
|
-
|
30
|
+
## [1.0.1] 2022-05-02
|
31
|
+
### Added
|
32
|
+
* Documentation
|
25
33
|
|
26
34
|
## [1.0.0] 2022-05-01
|
27
35
|
### Added
|
28
36
|
* Initial release
|
29
37
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
[Unreleased]: https://github.com/rubocop-semver/rubocop-ruby3_0/compare/v1.0.0...HEAD
|
37
|
-
[1.0.0]: https://github.com/rubocop-semver/rubocop-ruby3_0/compare/251b24f1147b3a42a16465663be1f08c93e8affc...v1.0.0
|
38
|
+
[Unreleased]: https://github.com/rubocop-lts/rubocop-ruby3_0/compare/v1.0.4...HEAD
|
39
|
+
[1.0.4]: https://github.com/rubocop-lts/rubocop-ruby3_0/compare/v1.0.3...v1.0.4
|
40
|
+
[1.0.3]: https://github.com/rubocop-lts/rubocop-ruby3_0/compare/v1.0.2...v1.0.3
|
41
|
+
[1.0.2]: https://github.com/rubocop-lts/rubocop-ruby3_0/compare/v1.0.1...v1.0.2
|
42
|
+
[1.0.1]: https://github.com/rubocop-lts/rubocop-ruby3_0/compare/v1.0.0...v1.0.1
|
43
|
+
[1.0.0]: https://github.com/rubocop-lts/rubocop-ruby3_0/compare/251b24f1147b3a42a16465663be1f08c93e8affc...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-ruby3_0][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-ruby3_0)][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-ruby3_0/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-ruby3_0/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-ruby3_0/
|
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-ruby3_0/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-ruby3_0/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-ruby3_0/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-ruby3_0/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-ruby3_0/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-ruby3_0`][⛳️30-gh] | [![Gem Version][⛳️30-vi]][⛳️30-g] | [![Total DL][🖇️30-dti]][⛳️30-g] [![DL Rank][🏘️30-rti]][⛳️30-g] | [![Current][🚎30-cwfi]][🚎30-cwf] [![Heads][🖐30-hwfi]][🖐30-hwf] | [![Open Issues][📗30-ioi]][📗30-io] [![Closed Issues][🚀30-ici]][🚀30-ic] [![Open PRs][💄30-poi]][💄30-po] [![Closed PRs][👽30-pci]][👽30-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
|
+
[⛳️30-vi]: http://img.shields.io/gem/v/rubocop-ruby3_0.svg
|
62
|
+
[🖇️30-dti]: https://img.shields.io/gem/dt/rubocop-ruby3_0.svg
|
63
|
+
[🏘️30-rti]: https://img.shields.io/gem/rt/rubocop-ruby3_0.svg
|
64
|
+
[🚎30-cwf]: https://github.com/rubocop-lts/rubocop-ruby3_0/actions/workflows/current.yml
|
65
|
+
[🚎30-cwfi]: https://github.com/rubocop-lts/rubocop-ruby3_0/actions/workflows/current.yml/badge.svg
|
66
|
+
[🖐30-hwf]: https://github.com/rubocop-lts/rubocop-ruby3_0/actions/workflows/heads.yml
|
67
|
+
[🖐30-hwfi]: https://github.com/rubocop-lts/rubocop-ruby3_0/actions/workflows/heads.yml/badge.svg
|
68
|
+
[🧮30-lwf]: https://github.com/rubocop-lts/rubocop-ruby3_0/actions/workflows/legacy.yml
|
69
|
+
[🧮30-lwfi]: https://github.com/rubocop-lts/rubocop-ruby3_0/actions/workflows/legacy.yml/badge.svg
|
70
|
+
[📗30-io]: https://github.com/rubocop-lts/rubocop-ruby3_0/issues
|
71
|
+
[📗30-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby3_0
|
72
|
+
[🚀30-ic]: https://github.com/rubocop-lts/rubocop-ruby3_0/issues?q=is%3Aissue+is%3Aclosed
|
73
|
+
[🚀30-ici]: https://img.shields.io/github/issues-closed-raw/rubocop-lts/rubocop-ruby3_0
|
74
|
+
[💄30-po]: https://github.com/rubocop-lts/rubocop-ruby3_0/pulls
|
75
|
+
[💄30-poi]: https://img.shields.io/github/issues-pr/rubocop-lts/rubocop-ruby3_0
|
76
|
+
[👽30-pc]: https://github.com/rubocop-lts/rubocop-ruby3_0/pulls?q=is%3Apr+is%3Aclosed
|
77
|
+
[👽30-pci]: https://img.shields.io/github/issues-pr-closed/rubocop-lts/rubocop-ruby3_0
|
78
|
+
[⛳️30-g]: https://rubygems.org/gems/rubocop-ruby3_0
|
79
|
+
[⛳️30-gh]: https://github.com/rubocop-lts/rubocop-ruby3_0
|
80
|
+
|
19
81
|
# Rubocop::Ruby30
|
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-ruby3_0/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-ruby3_0` (this gem) will install on any version of Ruby >= 3.0, and can be used to analyze code intended to support Ruby >= 3.0.
|
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.0`.
|
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-ruby3_0
|
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-ruby3_0)]("https://github.com/rubocop-lts/rubocop-ruby3_0/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-ruby3_0/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::Ruby30 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::Ruby30 project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/rubocop-lts/rubocop-ruby3_0/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-ruby3_0", "~> 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-ruby3_0/discussions
|
162
261
|
|
163
|
-
[conduct]: https://github.com/rubocop-
|
262
|
+
[conduct]: https://github.com/rubocop-lts/rubocop-ruby3_0/blob/main/CODE_OF_CONDUCT.md
|
164
263
|
|
165
|
-
[contributing]: https://github.com/rubocop-
|
264
|
+
[contributing]: https://github.com/rubocop-lts/rubocop-ruby3_0/blob/main/CONTRIBUTING.md
|
166
265
|
|
167
|
-
[security]: https://github.com/rubocop-
|
266
|
+
[security]: https://github.com/rubocop-lts/rubocop-ruby3_0/blob/main/SECURITY.md
|
168
267
|
|
169
|
-
[license]: https://github.com/rubocop-
|
268
|
+
[license]: https://github.com/rubocop-lts/rubocop-ruby3_0/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-ruby3_0", "~> 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-ruby3_0/main
|
194
293
|
|
195
|
-
[source]: https://github.com/rubocop-
|
294
|
+
[source]: https://github.com/rubocop-lts/rubocop-ruby3_0/
|
196
295
|
|
197
|
-
[actions]: https://github.com/rubocop-
|
296
|
+
[actions]: https://github.com/rubocop-lts/rubocop-ruby3_0/actions
|
198
297
|
|
199
|
-
[issues]: https://github.com/rubocop-
|
298
|
+
[issues]: https://github.com/rubocop-lts/rubocop-ruby3_0/issues
|
200
299
|
|
201
|
-
[climate_maintainability]: https://codeclimate.com/github/rubocop-
|
300
|
+
[climate_maintainability]: https://codeclimate.com/github/rubocop-lts/rubocop-ruby3_0/maintainability
|
202
301
|
|
203
|
-
[climate_coverage]: https://codeclimate.com/github/rubocop-
|
302
|
+
[climate_coverage]: https://codeclimate.com/github/rubocop-lts/rubocop-ruby3_0/test_coverage
|
204
303
|
|
205
|
-
[codecov_coverage]: https://codecov.io/gh/rubocop-
|
304
|
+
[codecov_coverage]: https://codecov.io/gh/rubocop-lts/rubocop-ruby3_0
|
206
305
|
|
207
|
-
[code_triage]: https://www.codetriage.com/rubocop-
|
306
|
+
[code_triage]: https://www.codetriage.com/rubocop-lts/rubocop-ruby3_0
|
208
307
|
|
209
308
|
[blogpage]: http://www.railsbling.com/tags/rubocop-ruby3_0/
|
210
309
|
|
211
310
|
[rubygems]: https://rubygems.org/gems/rubocop-ruby3_0
|
212
311
|
|
213
|
-
[chat]: https://gitter.im/rubocop-
|
312
|
+
[chat]: https://gitter.im/rubocop-lts/rubocop-ruby3_0?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/rubocop.yml
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-ruby3_0
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Boling
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-05-
|
11
|
+
date: 2022-05-23 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.29.1
|
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.29.1
|
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: []
|
@@ -67,19 +67,21 @@ files:
|
|
67
67
|
- SECURITY.md
|
68
68
|
- lib/rubocop/ruby3_0.rb
|
69
69
|
- lib/rubocop/ruby3_0/version.rb
|
70
|
+
- rubocop.yml
|
71
|
+
- sig/rubocop/ruby3_0.rbs
|
70
72
|
- spec/config/rspec/rspec_core.rb
|
71
73
|
- spec/rubocop/ruby3_0_spec.rb
|
72
74
|
- spec/spec_helper.rb
|
73
|
-
homepage: https://github.com/rubocop-
|
75
|
+
homepage: https://github.com/rubocop-lts/rubocop-ruby3_0
|
74
76
|
licenses:
|
75
77
|
- MIT
|
76
78
|
metadata:
|
77
|
-
homepage_uri: https://github.com/rubocop-
|
78
|
-
source_code_uri: https://github.com/rubocop-
|
79
|
-
changelog_uri: https://github.com/rubocop-
|
80
|
-
bug_tracker_uri: https://github.com/rubocop-
|
81
|
-
documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby3_0/1.0.
|
82
|
-
wiki_uri: https://github.com/rubocop-
|
79
|
+
homepage_uri: https://github.com/rubocop-lts/rubocop-ruby3_0
|
80
|
+
source_code_uri: https://github.com/rubocop-lts/rubocop-ruby3_0/tree/v1.0.4
|
81
|
+
changelog_uri: https://github.com/rubocop-lts/rubocop-ruby3_0/blob/v1.0.4/CHANGELOG.md
|
82
|
+
bug_tracker_uri: https://github.com/rubocop-lts/rubocop-ruby3_0/issues
|
83
|
+
documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby3_0/1.0.4
|
84
|
+
wiki_uri: https://github.com/rubocop-lts/rubocop-ruby3_0/wiki
|
83
85
|
rubygems_mfa_required: 'true'
|
84
86
|
post_install_message:
|
85
87
|
rdoc_options: []
|
@@ -96,10 +98,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
98
|
- !ruby/object:Gem::Version
|
97
99
|
version: '0'
|
98
100
|
requirements: []
|
99
|
-
rubygems_version: 3.3.
|
101
|
+
rubygems_version: 3.3.14
|
100
102
|
signing_key:
|
101
103
|
specification_version: 4
|
102
|
-
summary: Semantically Versioned
|
104
|
+
summary: Semantically Versioned RuboCop Dependency
|
103
105
|
test_files:
|
104
106
|
- spec/config/rspec/rspec_core.rb
|
105
107
|
- spec/rubocop/ruby3_0_spec.rb
|