rubocop-ruby3_0 1.1.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 614b1aa95b632f0420a2318fc9d305629c05669c2e247d2933670663454ddb1b
4
- data.tar.gz: 83d17814caa4881e8c20254987b4e6bf1ce124dfb04287bf4bedce694efa87b4
3
+ metadata.gz: f75c468a206c10ffc916a3430fa6ca58687fa8ebb2cb90286b155c208693cf67
4
+ data.tar.gz: 9eb126c41a8548dc373bfa6b60e4e1e9aa357ae85d84cfb3b24a421ea801cbe3
5
5
  SHA512:
6
- metadata.gz: 0a823264c7ccc62d1c54783f01d892f85c80d0eaa9fd715ccc7dec99cebb7c58af4fcd1971e40a4e0dbbdd0ea2821ddb9f5e2aecc5d29cb90fbc5653f79f876c
7
- data.tar.gz: '0694bfa9003227cf5848fe8eb059e1f87b65858a8d2e17f3c0144915c05feb27a5abcec2edc6763b4766352787a63a8ee98b45a5bc1b547c796a2df725c9e24a'
6
+ metadata.gz: cbff995abff5402119554cb00e38fd09cb6fe5395283a421eab6e0315e3fa671c33a33e18c802832c4d7fd20f74cc8303517122a411226a693cbde133dc82896
7
+ data.tar.gz: 4e8bb1de24ef4ad61dcab358c6ac3b10b0ce759b2a991581c6befab2933534cbb59ba730d8c66e9c7c6f93245d9c22cc1fc9798c9a0941d6aa3e37339fbe9f77
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -10,6 +10,49 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
  ### Fixed
11
11
  ### Removed
12
12
 
13
+ ## [2.0.2] 2023-05-19
14
+ ### Fixed
15
+ - Ship rakelib/**/*.rake tasks
16
+ - Fix rake_tasks hook on Railtie
17
+
18
+ ## [2.0.1] 2023-05-17 [YANKED]
19
+ ### Added
20
+ - Configs added for:
21
+ - standard-performance
22
+ - standard-custom
23
+ - standard-rubocop-lts
24
+ - And optionally, if you are building a Rails app:
25
+ - betterlint
26
+ - standard-rails
27
+ - version_gem
28
+
29
+ ## [2.0.0] 2023-05-09 [YANKED]
30
+ ### Changed
31
+ - New/Better configs for:
32
+ - rubocop
33
+ - rubocop-gradual
34
+ - rubocop-md
35
+ - rubocop-performance
36
+ - rubocop-rake
37
+ - rubocop-shopify
38
+ - rubocop-thread_safety
39
+ - standard
40
+ - And optionally, if you are using RSpec:
41
+ - rubocop-rspec
42
+ - And optionally, if you are using building a RubyGem:
43
+ - rubocop-packaging
44
+
45
+ ## [1.1.2] 2023-03-17
46
+ ### Added
47
+ * GitLab CI config
48
+ ### Changed
49
+ * Upgraded to RuboCop v1.48.1
50
+ * Compatible with rubocop-packaging ~> 0.5.2
51
+ * Improved development documentation
52
+ * Improved documentation on SemVer adherence
53
+ ### Fixed
54
+ * Stop defining global variable in version.rb
55
+
13
56
  ## [1.1.1] 2022-12-20
14
57
  ### Fixed
15
58
  * Do not require version.rb from gemspec so code coverage is accurate from both `rake` and `rspec`
@@ -24,9 +67,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
24
67
  * Gem release ships with `SHA512` and `SHA256` checksums
25
68
  * Release is securely signed by author
26
69
  * Document release process in `CONTRIBUTING.md`
27
- * Documentation of Three Guarantees:
28
- * `rubocop-ruby2_7` (this gem) will install a version of `rubocop` which will
29
- **install** on (1), **run** on (2), and **analyze code** (3) intended to support any version of Ruby >= 2.7.
70
+ * Documentation of why this gem exists
30
71
 
31
72
  ## [1.0.6] 2022-06-08
32
73
  ### Changed
@@ -60,7 +101,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
60
101
  ### Added
61
102
  * Initial release
62
103
 
63
- [Unreleased]: https://github.com/rubocop-lts/rubocop-ruby3_0/compare/v1.1.1...HEAD
104
+ [Unreleased]: https://github.com/rubocop-lts/rubocop-ruby3_0/compare/v2.0.1...HEAD
105
+ [2.0.0]: https://github.com/rubocop-lts/rubocop-ruby3_0/compare/v2.0.0...v2.0.1
106
+ [2.0.0]: https://github.com/rubocop-lts/rubocop-ruby3_0/compare/v1.1.2...v2.0.0
107
+ [1.1.2]: https://github.com/rubocop-lts/rubocop-ruby3_0/compare/v1.1.1...v1.1.2
64
108
  [1.1.1]: https://github.com/rubocop-lts/rubocop-ruby3_0/compare/v1.1.0...v1.1.1
65
109
  [1.1.0]: https://github.com/rubocop-lts/rubocop-ruby3_0/compare/v1.0.6...v1.1.0
66
110
  [1.0.6]: https://github.com/rubocop-lts/rubocop-ruby3_0/compare/v1.0.5...v1.0.6
data/CONTRIBUTING.md CHANGED
@@ -11,13 +11,15 @@ and post a message to the [gitter chat][🏘chat].
11
11
 
12
12
  To release a new version:
13
13
 
14
- 1. update the version number in `version.rb`
15
- 2. run `bundle exec rake build:checksum`
16
- 3. move the built gem to project root
17
- 4. run `bin/checksum` to create the missing SHA256 checksum
18
- 5. move the built gem back to `pkg/`
19
- 6. commit the changes
20
- 7. 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].
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 `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`.
17
+ 4. run `bundle exec rake build:checksum`
18
+ 5. move the built gem to project root
19
+ 6. run `bin/checksum` to create the missing SHA256 checksum
20
+ 7. move the built gem back to `pkg/`
21
+ 8. commit the changes
22
+ 9. 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
23
 
22
24
  NOTE: You will need to have a public key in `certs/`, and list your cert in the
23
25
  `gemspec`, in order to sign the new release.
@@ -25,13 +27,12 @@ See: [RubyGems Security Guide][rubygems-security-guide]
25
27
 
26
28
  ## Contributors
27
29
 
28
- [![Contributors][🖐contributors-img]][🖐contributors]
30
+ See: [https://gitlab.com/rubocop-lts/rubocop-ruby3_0/-/graphs/main][🖐contributors]
29
31
 
30
32
  [comment]: <> (Following links are used by README, CONTRIBUTING, Homepage)
31
33
 
32
- [conduct]: https://gitlab.com/rubocop-lts/rubocop-ruby3_0/-/blob/main/CODE_OF_CONDUCT.md
34
+ [🤝conduct]: https://gitlab.com/rubocop-lts/rubocop-ruby3_0/-/blob/main/CODE_OF_CONDUCT.md
33
35
  [🖐contributors]: https://gitlab.com/rubocop-lts/rubocop-ruby3_0/-/graphs/main
34
- [🖐contributors-img]: https://img.shields.io/github/contributors-anon/rubocop-lts/rubocop-ruby3_0
35
36
  [🚎src-main]: https://gitlab.com/rubocop-lts/rubocop-ruby3_0/-/tree/main
36
37
  [🏘chat]: https://gitter.im/rubocop-lts/community
37
38
  [rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2022 Peter Boling
3
+ Copyright (c) 2022 - 2023 Peter H. Boling of https://railsbling.com
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -18,12 +18,12 @@
18
18
 
19
19
  ---
20
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.
21
+ NOTE: You might be interested in [`rubocop-lts`][rlts] which sits as a higher level than this gem, and can keep pace with whatever version of Ruby you happen to be on.
22
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] |
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`][⛳️ini-gh] | [![Gem Version][⛳️ini-vi]][⛳️ini-g] | [![Total DL][🖇️ini-dti]][⛳️ini-g] [![DL Rank][🏘️ini-rti]][⛳️ini-g] | [![Current][🚎ini-cwfi]][🚎ini-cwf] [![Heads][🖐ini-hwfi]][🖐ini-hwf] | [![Open Issues][📗ini-ioi]][📗ini-io] [![Closed Issues][🚀ini-ici]][🚀ini-ic] [![Open PRs][💄ini-poi]][💄ini-po] [![Closed PRs][👽ini-pci]][👽ini-pc] |
27
27
 
28
28
  <!-- columnar badge #s for Project Health table:
29
29
  ⛳️
@@ -58,38 +58,64 @@ NOTE: You might be interested in [`rubocop-lts`](https://github.com/rubocop-lts/
58
58
  [⛳️lts-g]: https://rubygems.org/gems/rubocop-lts
59
59
  [⛳️lts-gh]: https://github.com/rubocop-lts/rubocop-lts
60
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
-
81
- # Rubocop::Ruby30
61
+ [⛳️ini-vi]: http://img.shields.io/gem/v/rubocop-ruby3_0.svg
62
+ [🖇️ini-dti]: https://img.shields.io/gem/dt/rubocop-ruby3_0.svg
63
+ [🏘️ini-rti]: https://img.shields.io/gem/rt/rubocop-ruby3_0.svg
64
+ [🚎ini-cwf]: https://github.com/rubocop-lts/rubocop-ruby3_0/actions/workflows/current.yml
65
+ [🚎ini-cwfi]: https://github.com/rubocop-lts/rubocop-ruby3_0/actions/workflows/current.yml/badge.svg
66
+ [🖐ini-hwf]: https://github.com/rubocop-lts/rubocop-ruby3_0/actions/workflows/heads.yml
67
+ [🖐ini-hwfi]: https://github.com/rubocop-lts/rubocop-ruby3_0/actions/workflows/heads.yml/badge.svg
68
+ [🧮ini-lwf]: https://github.com/rubocop-lts/rubocop-ruby3_0/actions/workflows/legacy.yml
69
+ [🧮ini-lwfi]: https://github.com/rubocop-lts/rubocop-ruby3_0/actions/workflows/legacy.yml/badge.svg
70
+ [📗ini-io]: https://github.com/rubocop-lts/rubocop-ruby3_0/issues
71
+ [📗ini-ioi]: https://img.shields.io/github/issues-raw/rubocop-lts/rubocop-ruby3_0
72
+ [🚀ini-ic]: https://github.com/rubocop-lts/rubocop-ruby3_0/issues?q=is%3Aissue+is%3Aclosed
73
+ [🚀ini-ici]: https://img.shields.io/github/issues-closed-raw/rubocop-lts/rubocop-ruby3_0
74
+ [💄ini-po]: https://github.com/rubocop-lts/rubocop-ruby3_0/pulls
75
+ [💄ini-poi]: https://img.shields.io/github/issues-pr/rubocop-lts/rubocop-ruby3_0
76
+ [👽ini-pc]: https://github.com/rubocop-lts/rubocop-ruby3_0/pulls?q=is%3Apr+is%3Aclosed
77
+ [👽ini-pci]: https://img.shields.io/github/issues-pr-closed/rubocop-lts/rubocop-ruby3_0
78
+ [⛳️ini-g]: https://rubygems.org/gems/rubocop-ruby3_0
79
+ [⛳️ini-gh]: https://github.com/rubocop-lts/rubocop-ruby3_0
80
+
81
+ # 🦾 Rubocop::Ruby30
82
82
 
83
83
  See the intro [blog post](https://dev.to/pboling/rubocop-ruby-matrix-gems-nj)!
84
84
 
85
- This gem requires no other gems. It depends on `rubocop`, but does not `require 'rubocop'`.
85
+ This gem configures many gems for you:
86
+
87
+ - rubocop
88
+ - rubocop-gradual
89
+ - rubocop-md
90
+ - rubocop-rake
91
+ - rubocop-shopify
92
+ - rubocop-thread_safety
93
+ - standard
94
+ - standard-performance (incl. rubocop-performance)
95
+ - standard-custom
96
+ - standard-rubocop-lts (ruby version-specific rules)
97
+
98
+ And optionally, if you are using RSpec:
99
+
100
+ - rubocop-rspec
101
+
102
+ And optionally, if you are building a RubyGem:
103
+
104
+ - rubocop-packaging
105
+
106
+ And optionally, if you are building a Rails app:
107
+
108
+ - standard-rails (incl. rubocop-rails)
109
+ - betterlint
86
110
 
87
111
  Awareness of `rubocop`'s lack of [SemVer][semver] adherence isn't evenly dispersed in the Ruby community.
88
112
 
89
- The RuboCop team [has real reasons](https://github.com/semver/semver/issues/317)
90
- for [not following SemVer](https://github.com/rubocop/rubocop/issues/4243), but if you've
91
- found this project their reasons likely weigh less, in your context (e.g. running `rubocop` from command line), than
92
- what brought you here.
113
+ The RuboCop team [has reasons](https://github.com/semver/semver/issues/317)
114
+ for [not following SemVer](https://github.com/rubocop/rubocop/issues/4243).
115
+
116
+ NOTE: They think they are following SemVer,
117
+ but their interpretation differs from mine, and seems to differ from the
118
+ [intent of SemVer's creator][major-versions-not-sacred].
93
119
 
94
120
  <p align="left">
95
121
  <a href="https://metaredux.com/posts/2022/04/21/rubocop-turns-10.html" target="_blank" rel="noopener">
@@ -98,34 +124,58 @@ what brought you here.
98
124
  </p>
99
125
 
100
126
  The purpose of this gem is to constrain the `rubocop` dependency of a project in
101
- a [SemVer compliant](https://semver.org/) (Semantic Versioning) way that aligns with the the desired minimum
102
- compatible/supported Ruby version.
127
+ a [SemVer compliant][semver]
128
+ (Semantic Versioning, [Major Versions are Not Sacred][major-versions-not-sacred])
129
+ way that aligns with its desired minimum compatible/supported Ruby version.
130
+ Secondary purpose is to provide default configurations for a bevy of RuboCop-related plugins.
103
131
 
104
- ## Ruby Version Support
132
+ ## 💎 Ruby Version Support
105
133
 
106
- Adding this gem will facilitate the best practice of adding a `~> ` version constrained `rubocop` dependency, while
107
- minimizing the risk of a rubocop minor / patch upgrade breaking the build. See the
108
- official [compatibility matrix][rubocop-matrix] for `rubocop`.
134
+ This gem facilitates equivalent of adding a `~> ` version constrained `rubocop`(-ish +more) dependency,
135
+ thus minimizing the risk of a rubocop minor / patch upgrade breaking the build.
109
136
 
110
- ### Three Guarantees
137
+ ### What's that you say?
111
138
 
112
- `rubocop-ruby3_0` (this gem) will install a version of `rubocop` which will
113
- **install** on (1), **run** on (2), and **analyze code** (3) intended to support any version of Ruby >= 3.0.
139
+ This gem will install a suite of tools that will **analyze & lint code** intended to support any version of Ruby >= 2.0.
114
140
 
115
- 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.
141
+ This gem helps insulate projects from RuboCop churn by enshrining many conventions
142
+ that have been shown over years to reduce problems.
143
+
144
+ #### Background
145
+
146
+ Each [spring `rubocop` drops][rubocop-support-matrix] the ability to **install** and **run** `rubocop` on an EOL'd Ruby.
117
147
  Eventually `rubocop` will drop the ability to **analyze code** intended to support an EOL'd Ruby,
118
- as they already have for Ruby 1.8 and 1.9.
119
- When the `rubocop` team makes any of these changes they typically only bump the minor version of ruby,
120
- in violation of SemVer. This is a primary _raison d’être_ for this project.
148
+ as they already have for Ruby 1.9. RuboCop has never run properly on Ruby 1.8.
149
+ This gem, via [standard (Standard Ruby)][standardrb], allows RuboCop to analyze Ruby 3.0 code,
150
+ by turning off certain rules that only apply to later Rubies.
151
+
152
+ When the `rubocop` team makes _any_ of these changes they
153
+ [only bump the minor version][rubocop-versioning] of RuboCop,
154
+ in violation of SemVer ([they disagree][rubocop-release-policy]).
155
+
156
+ In other words, RuboCop intentionally does not bump the major version when they drop
157
+ _analysis_, _runtime_, or _installation_ support for a given version of Ruby.
158
+
159
+ This is a primary _raison d’être_ for this project.
160
+ To get a better understanding of how SemVer is intended to work read this article from the creator of SemVer:
161
+
162
+ - ["Major Version Numbers are Not Sacred"][major-versions-not-sacred]!
163
+
164
+ [rubocop-support-matrix]: https://docs.rubocop.org/rubocop/compatibility.html#support-matrix
165
+ [rubocop-versioning]: https://docs.rubocop.org/rubocop/versioning.html
166
+ [rubocop-release-policy]: https://docs.rubocop.org/rubocop/versioning.html#release-policy
167
+ [major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
168
+ [standardrb]: https://github.com/standardrb/standard
121
169
 
122
- ### A Gem Family
170
+ ### 👪 A Gem Family
123
171
 
124
- The `rubocop-lts` series of gems has a version supporting any version of Ruby you need.
172
+ The `rubocop-lts` family of gems has a version supporting any version of Ruby you need.
125
173
  They can be used as development dependencies for libraries or applications.
126
174
 
175
+ - [`rubocop-lts`][rlts]
176
+ - [`standard-rubocop-lts`][stdrlts]
177
+ - [`rubocop-ruby1_8`][rr18]
127
178
  - [`rubocop-ruby1_9`][rr19]
128
- - [Still supporting Ruby 1.8?][what1_8]
129
179
  - [`rubocop-ruby2_0`][rr20]
130
180
  - [`rubocop-ruby2_1`][rr21]
131
181
  - [`rubocop-ruby2_2`][rr22]
@@ -136,7 +186,11 @@ They can be used as development dependencies for libraries or applications.
136
186
  - [`rubocop-ruby2_7`][rr27]
137
187
  - [`rubocop-ruby3_0`][rr30]
138
188
  - [`rubocop-ruby3_1`][rr31]
189
+ - [`rubocop-ruby3_2`][rr32]
139
190
 
191
+ [rlts]: https://github.com/rubocop-lts/rubocop-lts#-how-to-untie-gorgons-knot
192
+ [stdrlts]: https://github.com/rubocop-lts/standard-rubocop-lts
193
+ [rr18]: https://gitlab.com/rubocop-lts/standard-rubocop-lts
140
194
  [rr19]: https://gitlab.com/rubocop-lts/rubocop-ruby1_9
141
195
  [rr20]: https://gitlab.com/rubocop-lts/rubocop-ruby2_0
142
196
  [rr21]: https://gitlab.com/rubocop-lts/rubocop-ruby2_1
@@ -148,13 +202,13 @@ They can be used as development dependencies for libraries or applications.
148
202
  [rr27]: https://gitlab.com/rubocop-lts/rubocop-ruby2_7
149
203
  [rr30]: https://gitlab.com/rubocop-lts/rubocop-ruby3_0
150
204
  [rr31]: https://gitlab.com/rubocop-lts/rubocop-ruby3_1
151
- [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
205
+ [rr32]: https://gitlab.com/rubocop-lts/rubocop-ruby3_2
153
206
 
154
207
  ## 🗿 Stable
155
208
 
156
209
  All releases of this gem are stable releases.
157
- We do not release new versions for every release of `rubocop`.
210
+ We do not release new versions for every release of `rubocop`,
211
+ as this gem is tied to [standard (Standard Ruby)][standardrb].
158
212
  A typical release cycle for a gem in the `rubocop-lts` family is roughly every six months,
159
213
  though eventually analysis support for an old version of Ruby will be dropped.
160
214
  When that happens releases of the `rubocop-lts` gem for that version of Ruby will (mostly) cease.
@@ -169,43 +223,89 @@ If bundler is not being used to manage dependencies, install the gem by executin
169
223
 
170
224
  $ gem install rubocop-ruby3_0
171
225
 
172
- ## 🔧 Usage
226
+ ## 🔧 Basic Usage
173
227
 
174
- The following is optional. We'll discuss why you might want to do this after you see what it does.
175
-
176
- Add to the top of your project's `.rubocop.yml` configuration file:
228
+ If you are using Rails, building a Rubygem, or not using RSpec, see ["Advanced Usage"](#advanced-usage).
229
+ Otherwise, if you using this in plain Ruby _and_ RSpec, you can add to the top of your project's `.rubocop.yml` configuration file:
177
230
 
178
231
  ```yaml
179
232
  inherit_gem:
180
233
  rubocop-ruby3_0: rubocop.yml
181
234
  ```
182
235
 
183
- This has the same effect as you declaring the following in your `.rubocop.yml`:
236
+ Among _many_ other settings, this has the effect of declaring the following:
184
237
 
185
238
  ```yaml
186
239
  AllCops:
187
- # remove if already present in your `.rubocop.yml` to gain the full benefit of this gem!
188
- TargetRubyVersion: 3.0
189
240
  NewCops: enable
190
241
  ```
191
242
 
192
- Let's talk about these settings.
243
+ Let's talk about these settings. (TODO: Document some of the other settings!)
244
+
245
+ ### ⚙️ `NewCops: enable`
246
+
247
+ 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.
248
+
249
+ But this gem shoehorns RuboCop into SemVer, under the watchful eye of [standard (Standard Ruby)][standardrb]... 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 bump in your CI Build!
250
+
251
+ ## Advanced Usage
252
+
253
+ ### Linting Ruby + RSpec
254
+
255
+ ```yaml
256
+ inherit_gem:
257
+ rubocop-ruby3_0: rubocop-lts/ruby_rspec.yml
258
+ # Note: technically the above is the same as the "Basic Usage" below, so if specificity is not your jam:
259
+ # rubocop-ruby3_0: rubocop.yml
260
+ ```
261
+
262
+ ### Linting Ruby w/o RSpec
263
+
264
+ ```yaml
265
+ inherit_gem:
266
+ rubocop-ruby3_0: rubocop-lts/ruby.yml
267
+ ```
268
+
269
+ ### Linting Rails + RSpec
193
270
 
194
- ### TargetRubyVersion
271
+ ```yaml
272
+ inherit_gem:
273
+ rubocop-ruby3_0: rubocop-lts/rails_rspec.yml
274
+ ```
195
275
 
196
- 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.
276
+ #### Linting Rails w/o RSpec
197
277
 
198
- ### NewCops: enable
278
+ ```yaml
279
+ inherit_gem:
280
+ rubocop-ruby3_0: rubocop-lts/rails.yml
281
+ ```
199
282
 
200
- 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.
283
+ #### Linting a RubyGem + RSpec
201
284
 
202
- 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!
285
+ ```yaml
286
+ inherit_gem:
287
+ rubocop-ruby3_0: rubocop-lts/rubygem_rspec.yml
288
+ ```
289
+
290
+ #### Linting a RubyGem w/o RSpec
203
291
 
204
- ## Development
292
+ ```yaml
293
+ inherit_gem:
294
+ rubocop-ruby3_0: rubocop-lts/rubygem.yml
295
+ ```
205
296
 
206
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
297
+ ## 💻 Development
207
298
 
208
- 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).
299
+ After checking out the repo, run `bin/setup` to install dependencies.
300
+ Then, run `rake spec` to run the tests w/ coverage,
301
+ or `bin/rake` to run tests w/ coverage, and linting.
302
+ You can also run `bin/console` for an interactive prompt that will allow you to experiment.
303
+
304
+ To install this gem onto your local machine, run `bundle exec rake install`.
305
+
306
+ ### 🚀 Release Instructions
307
+
308
+ See [CONTRIBUTING.md][contributing].
209
309
 
210
310
  ## ⚡️ Contributing
211
311
 
@@ -220,8 +320,8 @@ Made with [contributors-img](https://contrib.rocks).
220
320
  ## 📄 License
221
321
 
222
322
  The gem is available as open source under the terms of
223
- the [MIT License][license] [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)][license-ref].
224
- See [LICENSE][license] for the official [Copyright Notice][copyright-notice-explainer].
323
+ the [MIT License][license] [![License: MIT][license-img]][license-ref].
324
+ See [LICENSE.txt][license] for the official [Copyright Notice][copyright-notice-explainer].
225
325
 
226
326
  <details>
227
327
  <summary>Project Logos (rubocop-ruby3_0)</summary>
@@ -230,7 +330,7 @@ See [docs/images/logo/README.txt][project-logos]
230
330
  </details>
231
331
 
232
332
  <details>
233
- <summary>Organization Logo (rubocop-semver)</summary>
333
+ <summary>Organization Logo (rubocop-lts)</summary>
234
334
 
235
335
  Author: [Yusuf Evli][org-logo-author]
236
336
  Source: [Unsplash][org-logo-source]
@@ -244,13 +344,13 @@ License: [Unsplash License][org-logo-license]
244
344
 
245
345
  ### © Copyright
246
346
 
247
- * Copyright (c) 2022 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
248
-
249
- [copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
347
+ * Copyright (c) 2022 - 2023 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
250
348
 
251
349
  ## 🤝 Code of Conduct
252
350
 
253
- 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).
351
+ Everyone interacting in this project's codebases, issue trackers, [chat rooms][🏘chat] and mailing lists is expected to follow the [code of conduct][🤝conduct].
352
+
353
+ [🤝conduct]: https://gitlab.com/rubocop-lts/rubocop-ruby3_0/-/blob/main/CODE_OF_CONDUCT.md
254
354
 
255
355
  ## 📌 Versioning
256
356
 
@@ -265,67 +365,36 @@ the [Pessimistic Version Constraint][pvc] with two digits of precision.
265
365
  For example:
266
366
 
267
367
  ```ruby
268
- spec.add_dependency "rubocop-ruby3_0", "~> 1.1"
368
+ spec.add_dependency "rubocop-ruby3_0", "~> 2.0"
269
369
  ```
270
370
 
371
+ [aboutme]: https://about.me/peter.boling
372
+ [actions]: https://github.com/rubocop-lts/rubocop-ruby3_0/actions
373
+ [angelme]: https://angel.co/peter-boling
374
+ [blogpage]: http://www.railsbling.com/tags/rubocop-ruby3_0/
375
+ [codecov_coverage]: https://codecov.io/gh/rubocop-lts/rubocop-ruby3_0
376
+ [code_triage]: https://www.codetriage.com/rubocop-lts/rubocop-ruby3_0
377
+ [🏘chat]: https://gitter.im/rubocop-lts/community
378
+ [climate_coverage]: https://codeclimate.com/github/rubocop-lts/rubocop-ruby3_0/test_coverage
379
+ [climate_maintainability]: https://codeclimate.com/github/rubocop-lts/rubocop-ruby3_0/maintainability
271
380
  [copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
272
-
273
- [gh_discussions]: https://github.com/rubocop-lts/rubocop-ruby3_0/discussions
274
-
275
381
  [conduct]: https://github.com/rubocop-lts/rubocop-ruby3_0/blob/main/CODE_OF_CONDUCT.md
276
-
277
382
  [contributing]: https://github.com/rubocop-lts/rubocop-ruby3_0/blob/main/CONTRIBUTING.md
278
-
279
- [security]: https://github.com/rubocop-lts/rubocop-ruby3_0/blob/main/SECURITY.md
280
-
281
- [license]: https://github.com/rubocop-lts/rubocop-ruby3_0/blob/main/LICENSE.txt
282
-
383
+ [devto]: https://dev.to/galtzo
384
+ [documentation]: https://rubydoc.info/github/rubocop-lts/rubocop-ruby3_0/main
385
+ [followme]: https://img.shields.io/twitter/follow/galtzo.svg?style=social&label=Follow
386
+ [gh_discussions]: https://github.com/rubocop-lts/rubocop-ruby3_0/discussions
387
+ [gh_sponsors]: https://github.com/sponsors/pboling
388
+ [issues]: https://github.com/rubocop-lts/rubocop-ruby3_0/issues
389
+ [liberapay_donate]: https://liberapay.com/pboling/donate
390
+ [license]: LICENSE.txt
283
391
  [license-ref]: https://opensource.org/licenses/MIT
284
-
285
- [semver]: http://semver.org/
286
-
392
+ [license-img]: https://img.shields.io/badge/License-MIT-green.svg
393
+ [peterboling]: http://www.peterboling.com
287
394
  [pvc]: http://guides.rubygems.org/patterns/#pessimistic-version-constraint
288
-
289
395
  [railsbling]: http://www.railsbling.com
290
-
291
- [peterboling]: http://www.peterboling.com
292
-
293
- [aboutme]: https://about.me/peter.boling
294
-
295
- [angelme]: https://angel.co/peter-boling
296
-
297
- [coderme]:http://coderwall.com/pboling
298
-
299
- [followme-img]: https://img.shields.io/twitter/follow/galtzo.svg?style=social&label=Follow
300
-
301
- [tweetme]: http://twitter.com/galtzo
302
-
303
- [politicme]: https://nationalprogressiveparty.org
304
-
305
- [documentation]: https://rubydoc.info/github/rubocop-lts/rubocop-ruby3_0/main
306
-
307
- [source]: https://github.com/rubocop-lts/rubocop-ruby3_0/
308
-
309
- [actions]: https://github.com/rubocop-lts/rubocop-ruby3_0/actions
310
-
311
- [issues]: https://github.com/rubocop-lts/rubocop-ruby3_0/issues
312
-
313
- [climate_maintainability]: https://codeclimate.com/github/rubocop-lts/rubocop-ruby3_0/maintainability
314
-
315
- [climate_coverage]: https://codeclimate.com/github/rubocop-lts/rubocop-ruby3_0/test_coverage
316
-
317
- [codecov_coverage]: https://codecov.io/gh/rubocop-lts/rubocop-ruby3_0
318
-
319
- [code_triage]: https://www.codetriage.com/rubocop-lts/rubocop-ruby3_0
320
-
321
- [blogpage]: http://www.railsbling.com/tags/rubocop-ruby3_0/
322
-
323
396
  [rubygems]: https://rubygems.org/gems/rubocop-ruby3_0
324
-
325
- [chat]: https://gitter.im/rubocop-lts/rubocop-ruby3_0?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
326
-
327
- [maintenancee_policy]: https://guides.rubyonrails.org/maintenance_policy.html#security-issues
328
-
329
- [liberapay_donate]: https://liberapay.com/pboling/donate
330
-
331
- [gh_sponsors]: https://github.com/sponsors/pboling
397
+ [security]: https://github.com/rubocop-lts/rubocop-ruby3_0/blob/main/SECURITY.md
398
+ [semver]: http://semver.org/
399
+ [source]: https://github.com/rubocop-lts/rubocop-ruby3_0/
400
+ [tweetme]: http://twitter.com/galtzo
data/SECURITY.md CHANGED
@@ -4,7 +4,8 @@
4
4
 
5
5
  | Version | Supported |
6
6
  |---------|-----------|
7
- | 1.x | ✅ |
7
+ | 2.x | ✅ |
8
+ | 1.x | ❌ |
8
9
 
9
10
  ## Reporting a Vulnerability
10
11
 
@@ -0,0 +1,14 @@
1
+ module Rubocop
2
+ module Ruby30
3
+ class Railtie < Rails::Railtie
4
+ railtie_name :rubocop_ruby3_0
5
+
6
+ if Rails.env.test? || Rails.env.development?
7
+ rake_tasks do
8
+ path = File.expand_path(__dir__)
9
+ Dir.glob("#{path}/rakelib/**/*.rake").each { |f| load f }
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
@@ -2,6 +2,8 @@
2
2
 
3
3
  module Rubocop
4
4
  module Ruby30
5
- VERSION = "1.1.1"
5
+ module Version
6
+ VERSION = "2.0.2"
7
+ end
6
8
  end
7
9
  end
@@ -1,9 +1,23 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # external libs
4
+ require "version_gem"
5
+
6
+ # this gem
3
7
  require_relative "ruby3_0/version"
8
+ # :nocov:
9
+ require_relative "ruby3_0/railtie" if defined?(Rails::Railtie)
10
+ # :nocov:
4
11
 
5
12
  module Rubocop
6
13
  # Namespace of this library
7
14
  module Ruby30
15
+ module_function def install_tasks
16
+ load "rubocop/ruby3_0/tasks.rake"
17
+ end
8
18
  end
9
19
  end
20
+
21
+ Rubocop::Ruby30::Version.class_eval do
22
+ extend VersionGem::Basic
23
+ end
@@ -0,0 +1,11 @@
1
+ # Customizations/Deviations from Standard/Shopify for RuboCop-LTS Rails Coding Standards
2
+ inherit_from:
3
+ - ruby.yml
4
+ - strict/rails.yml
5
+
6
+ require:
7
+ - rubocop-rails
8
+ - standard-rails
9
+ - betterlint
10
+
11
+ # Rails specific customizations
@@ -0,0 +1,6 @@
1
+ # Customizations/Deviations from Standard/Shopify for RuboCop-LTS Rails w/ RSpec Coding Standards
2
+ inherit_from:
3
+ - rails.yml
4
+ - rspec.yml
5
+
6
+ # Rails/RSpec specific customizations
@@ -0,0 +1,9 @@
1
+ require:
2
+ # I setup RSpec on every project. Do you?
3
+ - rubocop-rspec
4
+
5
+ inherit_gem:
6
+ rspec-block_is_expected: rubocop.yml
7
+
8
+ inherit_from:
9
+ - strict/rspec.yml
@@ -0,0 +1,43 @@
1
+ # Customizations/Deviations from Standard/Shopify for Ruby Coding Standards
2
+
3
+ # We want Exclude directives from different
4
+ # config files to get merged, not overwritten
5
+ inherit_mode:
6
+ merge:
7
+ - Exclude
8
+
9
+ require:
10
+ # Loads the Standard Ruby suite of gems, and configures for rubocop-lts:
11
+ - standard-rubocop-lts
12
+ # The goal here is convention over configuration...
13
+ # In light of that, we are well past having convened on Markdown for README docs and such.
14
+ - rubocop-md
15
+ # Rubygems have Rakefile as a convention, and if they don't, why not?
16
+ - rubocop-rake
17
+ # In the vast majority of cases, we will want to be warned about thread unsafe code.
18
+ # In those cases where we intentionally have thread unsafe code,
19
+ # a rubocop:disable is the least of our concerns. :D
20
+ - rubocop-thread_safety
21
+ # RuboCop Gradual can be used in "Require mode", which is a way to replace rubocop with rubocop-gradual:
22
+ - rubocop/gradual/patch
23
+
24
+ inherit_gem:
25
+ standard-rubocop-lts: config/ruby-3.0.yml
26
+ # shopify rules will override standard's rules.
27
+ rubocop-shopify: rubocop.yml
28
+
29
+ inherit_from:
30
+ - strict/ruby.yml
31
+
32
+ AllCops:
33
+ # When the Ruby community, via RuboCop, adopts a new standard
34
+ # (with additional filtering by standard.rb and rubocop-shopify) it is good enough for us!
35
+ NewCops: enable
36
+
37
+ # Metrics cops are disabled in Standard by default
38
+ Metrics:
39
+ Enabled: true
40
+
41
+ # Ruby specific customizations
42
+ Layout/LineLength:
43
+ Max: 120
@@ -0,0 +1,6 @@
1
+ # Customizations/Deviations from Standard/Shopify for RuboCop-LTS Ruby w/ RSpec Coding Standards
2
+ inherit_from:
3
+ - ruby.yml
4
+ - rspec.yml
5
+
6
+ # Ruby/RSpec specific customizations
@@ -0,0 +1,6 @@
1
+ # Customizations/Deviations from Standard/Shopify for RubyGem Coding Standards
2
+ inherit_from:
3
+ - ruby.yml
4
+
5
+ require:
6
+ - rubocop-packaging
@@ -0,0 +1,4 @@
1
+ # Customizations/Deviations from Standard/Shopify for RubyGem w/ RSpec Coding Standards
2
+ inherit_from:
3
+ - rubygem.yml
4
+ - rspec.yml
@@ -0,0 +1,22 @@
1
+ # These Cops Must Always Be Enabled!
2
+ # These Cops check for things that are *literally* bugs,
3
+ # and no code should ever be released that fails these cops.
4
+ #
5
+ # The Exclude: [] is crucial here:
6
+ # even if our .rubocop_todo.yml contained exclusions for strict cops, we nullify them here,
7
+ # thus, re-activating these cops for all the files.
8
+ #
9
+ # These settings must be loaded after any files of "TODOs" that instruct RuboCop to ignore errors.
10
+ # Fortunately this project doesn't rely on TODOs, instead relying on a rubocop_gradual lockfile.
11
+ #
12
+ Rails/Output: # Don't leave puts-debugging
13
+ Enabled: true
14
+ Exclude: []
15
+
16
+ Rails/FindEach: # each could severely affect the performance, use find_each
17
+ Enabled: true
18
+ Exclude: []
19
+
20
+ Rails/UniqBeforePluck: # uniq.pluck and not pluck.uniq
21
+ Enabled: true
22
+ Exclude: []
@@ -0,0 +1,14 @@
1
+ # These Cops Must Always Be Enabled!
2
+ # These Cops check for things that are *literally* bugs,
3
+ # and no code should ever be released that fails these cops.
4
+ #
5
+ # The Exclude: [] is crucial here:
6
+ # even if our .rubocop_todo.yml contained exclusions for strict cops, we nullify them here,
7
+ # thus, re-activating these cops for all the files.
8
+ #
9
+ # These settings must be loaded after any files of "TODOs" that instruct RuboCop to ignore errors.
10
+ # Fortunately this project doesn't rely on TODOs, instead relying on a rubocop_gradual lockfile.
11
+ #
12
+ RSpec/Focus: # run ALL tests on CI
13
+ Enabled: true
14
+ Exclude: []
@@ -0,0 +1,14 @@
1
+ # These Cops Must Always Be Enabled!
2
+ # These Cops check for things that are *literally* bugs,
3
+ # and no code should ever be released that fails these cops.
4
+ #
5
+ # The Exclude: [] is crucial here:
6
+ # even if our .rubocop_todo.yml contained exclusions for strict cops, we nullify them here,
7
+ # thus, re-activating these cops for all the files.
8
+ #
9
+ # These settings must be loaded after any files of "TODOs" that instruct RuboCop to ignore errors.
10
+ # Fortunately this project doesn't rely on TODOs, instead relying on a rubocop_gradual lockfile.
11
+ #
12
+ Lint/Debugger: # don't leave binding.pry
13
+ Enabled: true
14
+ Exclude: []
data/rubocop.yml CHANGED
@@ -1,3 +1,15 @@
1
- AllCops:
2
- TargetRubyVersion: 3.0
3
- NewCops: enable
1
+ # Change the file you inherit if you:
2
+ # * use Rails,
3
+ # * are creating a RubyGem, or
4
+ # * don't use RSpec
5
+ # As follows:
6
+ # inherit_gem:
7
+ # # Pick one:
8
+ # # rubocop-ruby3_0: rubocop-lts/rails_rspec.yml # or rubocop-lts/rails.yml w/o rspec
9
+ # # rubocop-ruby3_0: rubocop-lts/ruby_rspec.yml # or rubocop-lts/ruby.yml w/o rspec
10
+ # # rubocop-ruby3_0: rubocop-lts/rubygem_rspec.yml # or rubocop-lts/rubygem.yml w/o rspec
11
+ # # Convention over configuration, hence loading this file just only Ruby and RSpec defaults:
12
+ # rubocop-ruby3_0: rubocop.yml # for the ruby + rspec
13
+
14
+ inherit_from:
15
+ - rubocop-lts/ruby_rspec.yml
@@ -1,6 +1,8 @@
1
1
  module Rubocop
2
2
  module Ruby30
3
- VERSION: String
4
- # See the writing guide of rbs: https://github.com/ruby/rbs#guides
3
+ module Version
4
+ VERSION: String
5
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
6
+ end
5
7
  end
6
8
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-ruby3_0
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling
@@ -36,65 +36,175 @@ cert_chain:
36
36
  gwGrEXGQGDZ0NIgBcmvMOqlXjkGQwQvugKycJ024z89+fz2332vdZIKTrSxJrXGk
37
37
  4/bR9A==
38
38
  -----END CERTIFICATE-----
39
- date: 2022-12-20 00:00:00.000000000 Z
39
+ date: 2023-05-19 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
- name: rubocop
42
+ name: rubocop-gradual
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.40.0
47
+ version: '0.3'
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.40.0
54
+ version: '0.3'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rake
56
+ name: rubocop-md
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '13.0'
61
+ version: '1.2'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.2'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop-rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.6'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0.6'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop-shopify
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '2.13'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '2.13'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop-thread_safety
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.5'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.5'
111
+ - !ruby/object:Gem::Dependency
112
+ name: standard-rubocop-lts
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: 1.0.1
118
+ - - "<"
119
+ - !ruby/object:Gem::Version
120
+ version: '2'
121
+ type: :runtime
122
+ prerelease: false
123
+ version_requirements: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ version: 1.0.1
128
+ - - "<"
129
+ - !ruby/object:Gem::Version
130
+ version: '2'
131
+ - !ruby/object:Gem::Dependency
132
+ name: version_gem
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: 1.1.2
138
+ - - "<"
139
+ - !ruby/object:Gem::Version
140
+ version: '3'
141
+ type: :runtime
142
+ prerelease: false
143
+ version_requirements: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - ">="
146
+ - !ruby/object:Gem::Version
147
+ version: 1.1.2
148
+ - - "<"
149
+ - !ruby/object:Gem::Version
150
+ version: '3'
151
+ - !ruby/object:Gem::Dependency
152
+ name: rubocop-packaging
153
+ requirement: !ruby/object:Gem::Requirement
154
+ requirements:
155
+ - - "~>"
156
+ - !ruby/object:Gem::Version
157
+ version: '0.5'
62
158
  type: :development
63
159
  prerelease: false
64
160
  version_requirements: !ruby/object:Gem::Requirement
65
161
  requirements:
66
162
  - - "~>"
67
163
  - !ruby/object:Gem::Version
68
- version: '13.0'
164
+ version: '0.5'
69
165
  - !ruby/object:Gem::Dependency
70
- name: rspec
166
+ name: rubocop-rspec
71
167
  requirement: !ruby/object:Gem::Requirement
72
168
  requirements:
73
169
  - - "~>"
74
170
  - !ruby/object:Gem::Version
75
- version: '3.12'
171
+ version: '2.22'
76
172
  type: :development
77
173
  prerelease: false
78
174
  version_requirements: !ruby/object:Gem::Requirement
79
175
  requirements:
80
176
  - - "~>"
81
177
  - !ruby/object:Gem::Version
82
- version: '3.12'
178
+ version: '2.22'
83
179
  - !ruby/object:Gem::Dependency
84
- name: yard
180
+ name: standard-rails
85
181
  requirement: !ruby/object:Gem::Requirement
86
182
  requirements:
87
- - - ">="
183
+ - - "~>"
88
184
  - !ruby/object:Gem::Version
89
- version: '0'
185
+ version: '0.1'
90
186
  type: :development
91
187
  prerelease: false
92
188
  version_requirements: !ruby/object:Gem::Requirement
93
189
  requirements:
94
- - - ">="
190
+ - - "~>"
191
+ - !ruby/object:Gem::Version
192
+ version: '0.1'
193
+ - !ruby/object:Gem::Dependency
194
+ name: betterlint
195
+ requirement: !ruby/object:Gem::Requirement
196
+ requirements:
197
+ - - "~>"
198
+ - !ruby/object:Gem::Version
199
+ version: '1.4'
200
+ type: :development
201
+ prerelease: false
202
+ version_requirements: !ruby/object:Gem::Requirement
203
+ requirements:
204
+ - - "~>"
95
205
  - !ruby/object:Gem::Version
96
- version: '0'
97
- description: Links dependency on minimum Ruby version to maximum RuboCop version
206
+ version: '1.4'
207
+ description: Configure RuboCop + a bevy of friends to gradually lint Ruby 3.0 code
98
208
  email:
99
209
  - peter.boling@gmail.com
100
210
  executables: []
@@ -108,7 +218,18 @@ files:
108
218
  - README.md
109
219
  - SECURITY.md
110
220
  - lib/rubocop/ruby3_0.rb
221
+ - lib/rubocop/ruby3_0/railtie.rb
111
222
  - lib/rubocop/ruby3_0/version.rb
223
+ - rubocop-lts/rails.yml
224
+ - rubocop-lts/rails_rspec.yml
225
+ - rubocop-lts/rspec.yml
226
+ - rubocop-lts/ruby.yml
227
+ - rubocop-lts/ruby_rspec.yml
228
+ - rubocop-lts/rubygem.yml
229
+ - rubocop-lts/rubygem_rspec.yml
230
+ - rubocop-lts/strict/rails.yml
231
+ - rubocop-lts/strict/rspec.yml
232
+ - rubocop-lts/strict/ruby.yml
112
233
  - rubocop.yml
113
234
  - sig/rubocop/ruby3_0.rbs
114
235
  homepage: https://github.com/rubocop-lts/rubocop-ruby3_0
@@ -116,10 +237,10 @@ licenses:
116
237
  - MIT
117
238
  metadata:
118
239
  homepage_uri: https://github.com/rubocop-lts/rubocop-ruby3_0
119
- source_code_uri: https://github.com/rubocop-lts/rubocop-ruby3_0/tree/v1.1.1
120
- changelog_uri: https://github.com/rubocop-lts/rubocop-ruby3_0/blob/v1.1.1/CHANGELOG.md
240
+ source_code_uri: https://github.com/rubocop-lts/rubocop-ruby3_0/tree/v2.0.2
241
+ changelog_uri: https://github.com/rubocop-lts/rubocop-ruby3_0/blob/v2.0.2/CHANGELOG.md
121
242
  bug_tracker_uri: https://github.com/rubocop-lts/rubocop-ruby3_0/issues
122
- documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby3_0/1.1.1
243
+ documentation_uri: https://www.rubydoc.info/gems/rubocop-ruby3_0/2.0.2
123
244
  funding_uri: https://liberapay.com/pboling
124
245
  wiki_uri: https://github.com/rubocop-lts/rubocop-ruby3_0/wiki
125
246
  rubygems_mfa_required: 'true'
@@ -131,15 +252,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
131
252
  requirements:
132
253
  - - ">="
133
254
  - !ruby/object:Gem::Version
134
- version: 3.0.0
255
+ version: '3.0'
135
256
  required_rubygems_version: !ruby/object:Gem::Requirement
136
257
  requirements:
137
258
  - - ">="
138
259
  - !ruby/object:Gem::Version
139
260
  version: '0'
140
261
  requirements: []
141
- rubygems_version: 3.2.33
262
+ rubygems_version: 3.4.13
142
263
  signing_key:
143
264
  specification_version: 4
144
- summary: Semantically Versioned RuboCop Dependency
265
+ summary: 'Rules for Rubies: Rubocop + Standard + Betterlint + Shopify + Gradual'
145
266
  test_files: []
metadata.gz.sig CHANGED
Binary file