rubocop-katalyst 2.2.1 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16fa4be27361977e3c61e9c907dbadff73043e7fa97eaf1e9dd77f64beb077c9
4
- data.tar.gz: fc91034972c8fdcfbf804b1049e2812c3b56a8479f6348a1d36660d9553dfa96
3
+ metadata.gz: 800a0f362fa6bffc14da13b866fb209944f52ed37b202a756f9fdc3ba2a94e68
4
+ data.tar.gz: 640cac62f54aaea0dc426eb1f77ef02d115b3b6c0ee702f25f408b003b04615e
5
5
  SHA512:
6
- metadata.gz: 0f1f6e7aa2469b7c75f7a2969bb4567a243a6e41ffb084600315fe9b8098d8215582721c3a64d6123097ea02d5b565e1cba42c8cf1f1a26a8c71332bb2cf2456
7
- data.tar.gz: 064e9d7bb014b34ef508096cc6428ea9fd2905290e8b9de333467a5ae70716f808d7e438816d20ad308b2cff9f7fe04eb91b25e4eb54422ef335ead1da355606
6
+ metadata.gz: 8b8723bc9415953667c4c92fbc631b6504288fd36cc50d1fc4ac4fae0c305f87162c10f96843e7d7c2f5b2a3fc1dce4e15d7002b66d7d1056f12fa79e37bc02a
7
+ data.tar.gz: ce5f2992f566cfa7cb2cfff3cdf6676bbc13d1191b3c3773293dff05065509a26a3dc1fbb77ffa308e6de9eeb7485f2ece53e8a5fb0adfae2ad1b5bad6238e36
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## [3.0.0] - 2026-05-21
2
+
3
+ - Update Ruby minimum version and syntax to 4.0
4
+ - Enable ForceEqualSignAlignment
5
+
1
6
  ## [2.0.0] - 2024-06-12
2
7
 
3
8
  - Update ruby syntax to 3.3
data/README.md CHANGED
@@ -26,7 +26,7 @@ Or install it yourself as:
26
26
  Add the following to your `.rubocop.yml` file:
27
27
 
28
28
  ```yml
29
- require:
29
+ plugins:
30
30
  - rubocop-katalyst
31
31
 
32
32
  inherit_mode:
data/config/default.yml CHANGED
@@ -32,7 +32,7 @@ AllCops:
32
32
  - tmp/**/*
33
33
  - vendor/**/*
34
34
  NewCops: enable
35
- TargetRubyVersion: 3.3
35
+ TargetRubyVersion: 4.0
36
36
 
37
37
  Capybara:
38
38
  Enabled: true
@@ -24,6 +24,7 @@ Layout/EmptyLineAfterMagicComment:
24
24
  Layout/ExtraSpacing:
25
25
  Description: 'Do not use unnecessary spacing.'
26
26
  Enabled: true
27
+ ForceEqualSignAlignment: true
27
28
 
28
29
  Layout/InitialIndentation:
29
30
  Description: >-
@@ -32,7 +32,7 @@ module RuboCop
32
32
  require "erb_lint/cli"
33
33
 
34
34
  options.unshift("--config", config.to_path, "--allow-no-files")
35
- cli = ERBLint::CLI.new
35
+ cli = ERBLint::CLI.new
36
36
  puts "Running erbLint #{options.join(' ')}" if verbose
37
37
  result = cli.run(options)
38
38
  abort("ERBLint failed!") unless result
@@ -53,13 +53,18 @@ module RuboCop
53
53
  end
54
54
 
55
55
  def config
56
- config = Pathname.new(root).join(".erb-lint.yml")
56
+ config = Pathname.new(root).join(".erb_lint.yml")
57
+ config = legacy_config unless config.exist?
57
58
  config = default_config unless config.exist?
58
59
  config
59
60
  end
60
61
 
62
+ def legacy_config
63
+ Pathname.new(root).join(".erb-lint.yml")
64
+ end
65
+
61
66
  def default_config
62
- Pathname.new(__dir__).join("../../../.erb-lint.yml")
67
+ Pathname.new(__dir__).join("../../../.erb_lint.yml")
63
68
  end
64
69
 
65
70
  def root
@@ -7,11 +7,14 @@ rescue LoadError
7
7
  end
8
8
 
9
9
  def erb_lint_config
10
- local = Rails.application.root.join(".erb-lint.yml")
10
+ local = Rails.application.root.join(".erb_lint.yml")
11
+ legacy = Rails.application.root.join(".erb-lint.yml")
11
12
  if local.exist?
12
13
  local.to_path
14
+ elsif legacy.exist?
15
+ legacy.to_path
13
16
  else
14
- Pathname.new(__dir__).join("../../.erb-lint.yml").to_path
17
+ Pathname.new(__dir__).join("../../.erb_lint.yml").to_path
15
18
  end
16
19
  end
17
20
 
data/package.json CHANGED
@@ -5,6 +5,6 @@
5
5
  "autocorrect": "prettier --write *.json app/assets/javascripts app/assets/stylesheets"
6
6
  },
7
7
  "devDependencies": {
8
- "prettier": "3.5.3"
8
+ "prettier": "3.8.3"
9
9
  }
10
10
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-katalyst
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katalyst Interactive
@@ -141,7 +141,7 @@ executables: []
141
141
  extensions: []
142
142
  extra_rdoc_files: []
143
143
  files:
144
- - ".erb-lint.yml"
144
+ - ".erb_lint.yml"
145
145
  - CHANGELOG.md
146
146
  - LICENSE.txt
147
147
  - README.md
@@ -178,14 +178,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
178
178
  requirements:
179
179
  - - ">="
180
180
  - !ruby/object:Gem::Version
181
- version: '3.3'
181
+ version: '4.0'
182
182
  required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  requirements:
184
184
  - - ">="
185
185
  - !ruby/object:Gem::Version
186
186
  version: '0'
187
187
  requirements: []
188
- rubygems_version: 3.6.7
188
+ rubygems_version: 4.0.10
189
189
  specification_version: 4
190
190
  summary: Code standards for Katalyst
191
191
  test_files: []
File without changes