standard-rails 1.2.0 → 1.4.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: 17071619c6ac263340a987452f8a7de6c50ad61881ae1b2d342be96b2014828a
4
- data.tar.gz: 7b3ce1c594c244991658e30f9476638df29209090d9059769e2b573c038aa509
3
+ metadata.gz: 94a853d5e38a7fbff983f4e7f66ab2a7620cea0d88055b274b43edd9be3cfc7a
4
+ data.tar.gz: 0edea69ea68bf021909e056b33de9927f5fa6148af91e8a0429544880e29a48c
5
5
  SHA512:
6
- metadata.gz: 76d8edc3965b26dd67ca994cad332d009e2db26975d5d7ec1f62807eb5c6804aff274fbce72f85d51b38e7afb8417c1eab3f112a2ee464d75d705141213d2f71
7
- data.tar.gz: 603fe9220903e1bd7cbe14cc880776ee8eae0411ed61dbd2cce850672b1734ab253cf6486f20ea9e63fdf04f972f65133d63e3d6c81f6f1508836b9ba662e510
6
+ metadata.gz: d57a9ddb82bb4cbc7d58ac9e81bd5fe93e5fa558307b7e4dc2ba10efd222645dcd68ceef043c72754ec6a326f58a4856fb59ce0b4c490793ad70a9837595e777
7
+ data.tar.gz: c60d49f54a7ea916bff8450f13aa7d9f209bf1afc477d0c73438ba896057ae95795a46382608a33db8a11dbbf50427ce5d52bb655e8f86cc7059c76e32c6929b
data/.standard.yml CHANGED
@@ -1,3 +1,3 @@
1
1
  # For available configuration options, see:
2
2
  # https://github.com/testdouble/standard
3
- ruby_version: 2.7
3
+ ruby_version: 3.0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ ## [1.4.0]
2
+
3
+ - Update to [rubocop-rails@2.31.0](https://github.com/rubocop/rubocop-rails/releases/tag/v2.31.0)
4
+
5
+ ## [1.3.0]
6
+
7
+ - Update Gems
8
+ - regexp_parser@2.10.0
9
+ - rubocop-ast@1.40.0
10
+ - rubocop@1.73.2
11
+ - rubocop-performance@1.24.0
12
+ - standard-performance@1.7.0
13
+ - standard@1.47.0
14
+ - add Ruby 3.4 to Github Action Runner
15
+
1
16
  ## [1.2.0]
2
17
 
3
18
  - Update to [rubocop-rails@2.26.0](https://github.com/rubocop/rubocop-rails/blob/master/CHANGELOG.md#2260-2024-08-24)
data/Gemfile CHANGED
@@ -1,7 +1,8 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
- gem "rake"
4
+ gem "m"
5
5
  gem "minitest"
6
+ gem "rake"
7
+ gem "simplecov"
6
8
  gem "standard"
7
- gem "m"
data/Gemfile.lock CHANGED
@@ -1,105 +1,121 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard-rails (1.2.0)
4
+ standard-rails (1.4.0)
5
5
  lint_roller (~> 1.0)
6
- rubocop-rails (~> 2.26.0)
6
+ rubocop-rails (~> 2.31.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (7.2.1)
11
+ activesupport (7.1.5)
12
12
  base64
13
+ benchmark (>= 0.3)
13
14
  bigdecimal
14
- concurrent-ruby (~> 1.0, >= 1.3.1)
15
+ concurrent-ruby (~> 1.0, >= 1.0.2)
15
16
  connection_pool (>= 2.2.5)
16
17
  drb
17
18
  i18n (>= 1.6, < 2)
18
19
  logger (>= 1.4.2)
19
20
  minitest (>= 5.1)
21
+ mutex_m
20
22
  securerandom (>= 0.3)
21
- tzinfo (~> 2.0, >= 2.0.5)
22
- ast (2.4.2)
23
+ tzinfo (~> 2.0)
24
+ ast (2.4.3)
23
25
  base64 (0.2.0)
26
+ benchmark (0.4.0)
24
27
  bigdecimal (3.1.8)
25
28
  concurrent-ruby (1.3.4)
26
29
  connection_pool (2.4.1)
30
+ docile (1.4.1)
27
31
  drb (2.2.1)
28
- i18n (1.14.5)
32
+ i18n (1.14.6)
29
33
  concurrent-ruby (~> 1.0)
30
- json (2.7.2)
31
- language_server-protocol (3.17.0.3)
34
+ json (2.11.3)
35
+ language_server-protocol (3.17.0.4)
32
36
  lint_roller (1.1.0)
33
- logger (1.6.0)
37
+ logger (1.6.1)
34
38
  m (1.6.2)
35
39
  method_source (>= 0.6.7)
36
40
  rake (>= 0.9.2.2)
37
41
  method_source (1.1.0)
38
- minitest (5.25.1)
39
- parallel (1.26.3)
40
- parser (3.3.4.2)
42
+ minitest (5.25.5)
43
+ mutex_m (0.2.0)
44
+ parallel (1.27.0)
45
+ parser (3.3.8.0)
41
46
  ast (~> 2.4.1)
42
47
  racc
48
+ prism (1.4.0)
43
49
  racc (1.8.1)
44
50
  rack (3.1.7)
45
51
  rainbow (3.1.1)
46
52
  rake (13.2.1)
47
- regexp_parser (2.9.2)
48
- rexml (3.3.6)
49
- strscan
50
- rubocop (1.65.1)
53
+ regexp_parser (2.10.0)
54
+ rubocop (1.75.4)
51
55
  json (~> 2.3)
52
- language_server-protocol (>= 3.17.0)
56
+ language_server-protocol (~> 3.17.0.2)
57
+ lint_roller (~> 1.1.0)
53
58
  parallel (~> 1.10)
54
59
  parser (>= 3.3.0.2)
55
60
  rainbow (>= 2.2.2, < 4.0)
56
- regexp_parser (>= 2.4, < 3.0)
57
- rexml (>= 3.2.5, < 4.0)
58
- rubocop-ast (>= 1.31.1, < 2.0)
61
+ regexp_parser (>= 2.9.3, < 3.0)
62
+ rubocop-ast (>= 1.44.0, < 2.0)
59
63
  ruby-progressbar (~> 1.7)
60
- unicode-display_width (>= 2.4.0, < 3.0)
61
- rubocop-ast (1.32.1)
62
- parser (>= 3.3.1.0)
63
- rubocop-performance (1.21.1)
64
- rubocop (>= 1.48.1, < 2.0)
65
- rubocop-ast (>= 1.31.1, < 2.0)
66
- rubocop-rails (2.26.0)
64
+ unicode-display_width (>= 2.4.0, < 4.0)
65
+ rubocop-ast (1.44.1)
66
+ parser (>= 3.3.7.2)
67
+ prism (~> 1.4)
68
+ rubocop-performance (1.25.0)
69
+ lint_roller (~> 1.1)
70
+ rubocop (>= 1.75.0, < 2.0)
71
+ rubocop-ast (>= 1.38.0, < 2.0)
72
+ rubocop-rails (2.31.0)
67
73
  activesupport (>= 4.2.0)
74
+ lint_roller (~> 1.1)
68
75
  rack (>= 1.1)
69
- rubocop (>= 1.52.0, < 2.0)
70
- rubocop-ast (>= 1.31.1, < 2.0)
76
+ rubocop (>= 1.75.0, < 2.0)
77
+ rubocop-ast (>= 1.38.0, < 2.0)
71
78
  ruby-progressbar (1.13.0)
72
79
  securerandom (0.3.1)
73
- standard (1.40.0)
80
+ simplecov (0.22.0)
81
+ docile (~> 1.1)
82
+ simplecov-html (~> 0.11)
83
+ simplecov_json_formatter (~> 0.1)
84
+ simplecov-html (0.13.1)
85
+ simplecov_json_formatter (0.1.4)
86
+ standard (1.49.0)
74
87
  language_server-protocol (~> 3.17.0.2)
75
88
  lint_roller (~> 1.0)
76
- rubocop (~> 1.65.0)
89
+ rubocop (~> 1.75.2)
77
90
  standard-custom (~> 1.0.0)
78
- standard-performance (~> 1.4)
91
+ standard-performance (~> 1.8)
79
92
  standard-custom (1.0.2)
80
93
  lint_roller (~> 1.0)
81
94
  rubocop (~> 1.50)
82
- standard-performance (1.4.0)
95
+ standard-performance (1.8.0)
83
96
  lint_roller (~> 1.1)
84
- rubocop-performance (~> 1.21.0)
85
- strscan (3.1.0)
97
+ rubocop-performance (~> 1.25.0)
86
98
  tzinfo (2.0.6)
87
99
  concurrent-ruby (~> 1.0)
88
- unicode-display_width (2.5.0)
100
+ unicode-display_width (3.1.4)
101
+ unicode-emoji (~> 4.0, >= 4.0.4)
102
+ unicode-emoji (4.0.4)
89
103
 
90
104
  PLATFORMS
91
105
  arm64-darwin-20
92
106
  arm64-darwin-21
93
107
  arm64-darwin-22
94
108
  arm64-darwin-23
109
+ arm64-darwin-24
95
110
  x86_64-linux
96
111
 
97
112
  DEPENDENCIES
98
113
  m
99
114
  minitest
100
115
  rake
116
+ simplecov
101
117
  standard
102
118
  standard-rails!
103
119
 
104
120
  BUNDLED WITH
105
- 2.5.17
121
+ 2.5.23
data/README.md CHANGED
@@ -36,20 +36,6 @@ plugins:
36
36
  target_rails_version: 7.0
37
37
  ```
38
38
 
39
- ### Ignoring violations from old migrations
40
-
41
- Rails migrations are intended to be written as forward-compatible and subsequently unchanged, but they may contain Standard Ruby violations. Rather than apply fixes to those old migrations (and risk changing their behavior), you can ignore them in your `.standard.yml` like this:
42
-
43
- ```ruby
44
- ignore:
45
- # Legacy migrations
46
- - 'db/migrate/201*.rb'
47
- - 'db/migrate/2020*.rb'
48
- - 'db/migrate/2021*.rb'
49
- - 'db/migrate/2022*.rb'
50
- - 'db/migrate/2023*.rb'
51
- ```
52
-
53
39
  ## Code of Conduct
54
40
 
55
41
  This project follows Test Double's [code of
data/config/base.yml CHANGED
@@ -30,6 +30,9 @@ Lint/SafeNavigationChain:
30
30
  - try!
31
31
  - in?
32
32
 
33
+ Lint/UselessAccessModifier:
34
+ Enabled: false
35
+
33
36
  Rails/ActionControllerFlashBeforeRender:
34
37
  Enabled: false
35
38
 
@@ -237,6 +240,9 @@ Rails/MatchRoute:
237
240
  Rails/MigrationClassName:
238
241
  Enabled: true
239
242
 
243
+ Rails/MultipleRoutePaths:
244
+ Enabled: true
245
+
240
246
  Rails/NegateInclude:
241
247
  Enabled: false
242
248
 
@@ -366,6 +372,9 @@ Rails/SquishedSQLHeredocs:
366
372
  Rails/StripHeredoc:
367
373
  Enabled: true
368
374
 
375
+ Rails/StrongParametersExpect:
376
+ Enabled: false
377
+
369
378
  Rails/TableNameAssignment:
370
379
  Enabled: false
371
380
 
@@ -7,26 +7,25 @@
7
7
  # of RuboCop built-in cops in this file, we need to monitor it for changes
8
8
  # in rubocop-rails and keep it up to date.
9
9
  #
10
- # Last updated from rubocop-rails v2.26.0
10
+ # Last updated from rubocop-rails v2.31.0
11
11
 
12
12
  # frozen_string_literal: true
13
13
 
14
14
  require "rubocop"
15
15
  require "rack/utils"
16
16
  require "active_support/inflector"
17
- require "active_support/core_ext/object/blank"
18
17
 
19
18
  require_path = Pathname.new(Gem.loaded_specs["rubocop-rails"].full_require_paths.first)
20
19
  require require_path.join("rubocop/rails")
21
20
  require require_path.join("rubocop/rails/version")
22
- # require_relative 'rubocop/rails/inject'
23
21
  require require_path.join("rubocop/rails/schema_loader")
24
22
  require require_path.join("rubocop/rails/schema_loader/schema")
25
-
26
- # RuboCop::Rails::Inject.defaults!
27
-
23
+ require require_path.join("rubocop/rails/plugin")
28
24
  require require_path.join("rubocop/cop/rails_cops")
29
25
 
26
+ require require_path.join("rubocop/rails/migration_file_skippable")
27
+ RuboCop::Rails::MigrationFileSkippable.apply_to_cops!
28
+
30
29
  RuboCop::Cop::Style::HashExcept.minimum_target_ruby_version(2.0)
31
30
 
32
31
  RuboCop::Cop::Style::InverseMethods.singleton_class.prepend(
@@ -1,5 +1,5 @@
1
1
  module Standard
2
2
  module Rails
3
- VERSION = "1.2.0"
3
+ VERSION = "1.4.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-26 00:00:00.000000000 Z
11
+ date: 2025-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lint_roller
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.26.0
33
+ version: 2.31.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 2.26.0
40
+ version: 2.31.0
41
41
  description:
42
42
  email:
43
43
  - searls@gmail.com
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  requirements: []
85
- rubygems_version: 3.5.14
85
+ rubygems_version: 3.3.7
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: A Standard plugin that adds Rails-specific rules to Standard