mad_rubocop 4.2.0.pre1 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +44 -0
- data/README.md +2 -2
- data/lib/mad_rubocop/version.rb +1 -1
- metadata +12 -34
- data/.github/workflows/ci.yml +0 -33
- data/.gitignore +0 -9
- data/.rspec +0 -2
- data/.ruby-version +0 -1
- data/Gemfile +0 -4
- data/Rakefile +0 -6
- data/bin/setup +0 -8
- data/mad_rubocop.gemspec +0 -31
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d0cb24e0770cc84448638789aa52ee1bb68fe03f15e8383e0f2bfe5f3076034f
|
|
4
|
+
data.tar.gz: 685fdcbf11c888af8d9f045d4e99f7fcd8a8f621409dc0a4b4e82340cfc36461
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fa916708acfdb7c363bc3aff3b694781e95d790162c5c7807e1c3056328461887fd494ee3f9d9d0aa6590f19af9110bfceecb0f8f12cac1b23d2bb8eb3daf4eb
|
|
7
|
+
data.tar.gz: 617b280fb10e1b6207a55e4714ea2aef43fb0fab5cf866e4f799a62b969e6bf5a5aa630fd3db0a34d043a2ac7411e276fe895bd418b1c48e99fe1e9b9e2715c7
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project are documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
6
|
+
|
|
7
|
+
## [4.2.1] - 2026-09-25
|
|
8
|
+
|
|
9
|
+
### Breaking
|
|
10
|
+
|
|
11
|
+
- Require Ruby `>= 3.1`. Ruby 2.7 and 3.0 are no longer supported.
|
|
12
|
+
- Require RuboCop `~> 1.91.0`, rubocop-rails `~> 2.38.0`, and rubocop-performance `~> 1.27.0`.
|
|
13
|
+
Consumers that pin an older RuboCop must upgrade it to use this release.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- Load rubocop-rails and rubocop-performance with `plugins:` instead of `require:`.
|
|
18
|
+
- Rename `Naming/PredicateName` to `Naming/PredicatePrefix` in `disabled_cops.yml`
|
|
19
|
+
(renamed in RuboCop 1.88).
|
|
20
|
+
- The gem no longer installs a `setup` executable, and packages only the shipped
|
|
21
|
+
configuration, `README.md`, `CHANGELOG.md`, and `LICENSE.txt`.
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
- Specs that load the configuration and fail when it references a renamed or removed cop.
|
|
26
|
+
- CI on CRuby 3.1, 3.4, and 4.0, JRuby 9.4, and JRuby 10.0.
|
|
27
|
+
|
|
28
|
+
## [4.2.0.pre1] - 2026-07-20
|
|
29
|
+
|
|
30
|
+
- Prerelease for RuboCop 1.88 support. Superseded by 4.2.1.
|
|
31
|
+
|
|
32
|
+
## [4.1.0.rc1] - 2025-04-17
|
|
33
|
+
|
|
34
|
+
- Release candidate: RuboCop `~> 1.75`, rubocop-performance `~> 1.25`, rubocop-rails `~> 2.31`,
|
|
35
|
+
Ruby `>= 2.7.0`. Superseded by 4.2.1.
|
|
36
|
+
|
|
37
|
+
## [4.0.0] - 2022-10-21
|
|
38
|
+
|
|
39
|
+
- RuboCop `~> 1.32.0`, rubocop-performance `~> 1.14.3`, rubocop-rails `~> 2.15.2`.
|
|
40
|
+
|
|
41
|
+
[4.2.1]: https://github.com/mxenabled/mad_rubocop/compare/v4.2.0.pre1...v4.2.1
|
|
42
|
+
[4.2.0.pre1]: https://github.com/mxenabled/mad_rubocop/compare/v4.1.0.rc1...v4.2.0.pre1
|
|
43
|
+
[4.1.0.rc1]: https://github.com/mxenabled/mad_rubocop/compare/v4.0.0...v4.1.0.rc1
|
|
44
|
+
[4.0.0]: https://github.com/mxenabled/mad_rubocop/compare/v3.64.0...v4.0.0
|
data/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Custom RuboCop yml files to modify the cops enforced by RuboCop, shared across projects.
|
|
6
6
|
|
|
7
|
-
Built on RuboCop
|
|
7
|
+
Built on RuboCop, rubocop-rails, and rubocop-performance. [`mad_rubocop.gemspec`](mad_rubocop.gemspec) pins their versions and the minimum Ruby; [`CHANGELOG.md`](CHANGELOG.md) records the changes in each release.
|
|
8
8
|
|
|
9
9
|
## What's in the box
|
|
10
10
|
|
|
@@ -57,7 +57,7 @@ Keeping the pinned RuboCop (and its plugins) current is the main maintenance tas
|
|
|
57
57
|
3. Run `bundle exec rake spec`. The suite fails if the config references a cop that the new RuboCop **renamed or removed** — the failure message names the offending cop.
|
|
58
58
|
4. For each failure, update the cop name in `lib/disabled_cops.yml` / `lib/modified_cops.yml` (or drop it if the cop no longer exists).
|
|
59
59
|
5. Because `NewCops` is disabled, cops **added** in the upgrade are off by default. Review `rubocop --show-cops` (or the release notes) and add any you want to disable/configure.
|
|
60
|
-
6. Bump `MadRubocop::VERSION` in `version.rb`,
|
|
60
|
+
6. Bump `MadRubocop::VERSION` in `version.rb`, add an entry to `CHANGELOG.md`, and release.
|
|
61
61
|
|
|
62
62
|
## Contributing
|
|
63
63
|
|
data/lib/mad_rubocop/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mad_rubocop
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.2.
|
|
4
|
+
version: 4.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Zach Toolson
|
|
@@ -15,70 +15,56 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 1.
|
|
18
|
+
version: 1.91.0
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 1.
|
|
25
|
+
version: 1.91.0
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: rubocop-performance
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
29
29
|
requirements:
|
|
30
30
|
- - "~>"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 1.
|
|
32
|
+
version: 1.27.0
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 1.
|
|
39
|
+
version: 1.27.0
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: rubocop-rails
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
|
43
43
|
requirements:
|
|
44
44
|
- - "~>"
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: 2.
|
|
46
|
+
version: 2.38.0
|
|
47
47
|
type: :runtime
|
|
48
48
|
prerelease: false
|
|
49
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
50
50
|
requirements:
|
|
51
51
|
- - "~>"
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: 2.
|
|
53
|
+
version: 2.38.0
|
|
54
54
|
- !ruby/object:Gem::Dependency
|
|
55
|
-
name:
|
|
55
|
+
name: rake
|
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
|
57
57
|
requirements:
|
|
58
58
|
- - "~>"
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: '
|
|
60
|
+
version: '13.0'
|
|
61
61
|
type: :development
|
|
62
62
|
prerelease: false
|
|
63
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
64
64
|
requirements:
|
|
65
65
|
- - "~>"
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
|
-
version: '
|
|
68
|
-
- !ruby/object:Gem::Dependency
|
|
69
|
-
name: rake
|
|
70
|
-
requirement: !ruby/object:Gem::Requirement
|
|
71
|
-
requirements:
|
|
72
|
-
- - ">="
|
|
73
|
-
- !ruby/object:Gem::Version
|
|
74
|
-
version: '0'
|
|
75
|
-
type: :development
|
|
76
|
-
prerelease: false
|
|
77
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
78
|
-
requirements:
|
|
79
|
-
- - ">="
|
|
80
|
-
- !ruby/object:Gem::Version
|
|
81
|
-
version: '0'
|
|
67
|
+
version: '13.0'
|
|
82
68
|
- !ruby/object:Gem::Dependency
|
|
83
69
|
name: rspec
|
|
84
70
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -97,26 +83,18 @@ description: Wrapper for MX specific RuboCop settings for managing custom settin
|
|
|
97
83
|
across many projects.
|
|
98
84
|
email:
|
|
99
85
|
- zach.toolson@mx.com
|
|
100
|
-
executables:
|
|
101
|
-
- setup
|
|
86
|
+
executables: []
|
|
102
87
|
extensions: []
|
|
103
88
|
extra_rdoc_files: []
|
|
104
89
|
files:
|
|
105
|
-
- ".github/workflows/ci.yml"
|
|
106
|
-
- ".gitignore"
|
|
107
|
-
- ".rspec"
|
|
108
90
|
- ".rubocop.yml"
|
|
109
|
-
-
|
|
110
|
-
- Gemfile
|
|
91
|
+
- CHANGELOG.md
|
|
111
92
|
- LICENSE.txt
|
|
112
93
|
- README.md
|
|
113
|
-
- Rakefile
|
|
114
|
-
- bin/setup
|
|
115
94
|
- lib/disabled_cops.yml
|
|
116
95
|
- lib/mad_rubocop.rb
|
|
117
96
|
- lib/mad_rubocop/version.rb
|
|
118
97
|
- lib/modified_cops.yml
|
|
119
|
-
- mad_rubocop.gemspec
|
|
120
98
|
homepage: https://github.com/mxenabled/mad_rubocop
|
|
121
99
|
licenses:
|
|
122
100
|
- MIT
|
data/.github/workflows/ci.yml
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [master]
|
|
6
|
-
pull_request:
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
spec:
|
|
10
|
-
name: spec (${{ matrix.ruby }})
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
continue-on-error: ${{ matrix.experimental || false }}
|
|
13
|
-
strategy:
|
|
14
|
-
fail-fast: false
|
|
15
|
-
matrix:
|
|
16
|
-
ruby:
|
|
17
|
-
- "3.1"
|
|
18
|
-
- "3.4"
|
|
19
|
-
- "jruby-9.4"
|
|
20
|
-
- "jruby-10.0"
|
|
21
|
-
include:
|
|
22
|
-
# Bleeding-edge runtime: exercised, but allowed to fail so a
|
|
23
|
-
# not-yet-released or in-flight toolchain never blocks a PR.
|
|
24
|
-
- ruby: "4.0"
|
|
25
|
-
experimental: true
|
|
26
|
-
steps:
|
|
27
|
-
- uses: actions/checkout@v4
|
|
28
|
-
- uses: ruby/setup-ruby@v1
|
|
29
|
-
with:
|
|
30
|
-
ruby-version: ${{ matrix.ruby }}
|
|
31
|
-
bundler-cache: true
|
|
32
|
-
- name: Run specs
|
|
33
|
-
run: bundle exec rake spec
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.ruby-version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3.4.8
|
data/Gemfile
DELETED
data/Rakefile
DELETED
data/bin/setup
DELETED
data/mad_rubocop.gemspec
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
lib = File.expand_path("../lib", __FILE__)
|
|
4
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
|
-
require "mad_rubocop/version"
|
|
6
|
-
|
|
7
|
-
Gem::Specification.new do |spec|
|
|
8
|
-
spec.name = "mad_rubocop"
|
|
9
|
-
spec.version = MadRubocop::VERSION
|
|
10
|
-
spec.authors = ["Zach Toolson"]
|
|
11
|
-
spec.email = ["zach.toolson@mx.com"]
|
|
12
|
-
|
|
13
|
-
spec.summary = "Wrapper for MX specific RuboCop settings. https://twitter.com/madrubocop"
|
|
14
|
-
spec.description = "Wrapper for MX specific RuboCop settings for managing custom settings across many projects."
|
|
15
|
-
spec.homepage = "https://github.com/mxenabled/mad_rubocop"
|
|
16
|
-
spec.license = "MIT"
|
|
17
|
-
|
|
18
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
19
|
-
spec.bindir = "bin"
|
|
20
|
-
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
21
|
-
spec.require_paths = ["lib"]
|
|
22
|
-
|
|
23
|
-
spec.required_ruby_version = ">= 3.1"
|
|
24
|
-
|
|
25
|
-
spec.add_dependency "rubocop", "~> 1.88.0"
|
|
26
|
-
spec.add_dependency "rubocop-performance", "~> 1.26.1"
|
|
27
|
-
spec.add_dependency "rubocop-rails", "~> 2.35.5"
|
|
28
|
-
spec.add_development_dependency "bundler", "~> 2.0"
|
|
29
|
-
spec.add_development_dependency "rake"
|
|
30
|
-
spec.add_development_dependency "rspec", "~> 3.0"
|
|
31
|
-
end
|