standard-rails 1.2.0 → 1.3.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: a832d072fdb5eda9918e6a252ca73da11727f59829d3636bb4602cd19624e667
4
+ data.tar.gz: d6923672a34c4d2e882c0fd01778cc073ce294ddcbff0653a1f5c468e8f1b560
5
5
  SHA512:
6
- metadata.gz: 76d8edc3965b26dd67ca994cad332d009e2db26975d5d7ec1f62807eb5c6804aff274fbce72f85d51b38e7afb8417c1eab3f112a2ee464d75d705141213d2f71
7
- data.tar.gz: 603fe9220903e1bd7cbe14cc880776ee8eae0411ed61dbd2cce850672b1734ab253cf6486f20ea9e63fdf04f972f65133d63e3d6c81f6f1508836b9ba662e510
6
+ metadata.gz: 62ebdfef91cec51d360b0e3f68c48798202557dcf7b8ab12109a862fe95344894777f1a3de26bea72b867e6819eef868d14a7e945ea8b5c9a4dec4c533b28df3
7
+ data.tar.gz: 5a9b10cf8f500117bf6ab3930a402af5ba872a8a183ead1ca4abc4b2eae5efb267df2766af3cb4a66b2a925edc7ad16dd28c51fb177d9215b3d892dd9e3d6693
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,14 @@
1
+ ## [1.3.0]
2
+
3
+ - Update Gems
4
+ - regexp_parser@2.10.0
5
+ - rubocop-ast@1.40.0
6
+ - rubocop@1.73.2
7
+ - rubocop-performance@1.24.0
8
+ - standard-performance@1.7.0
9
+ - standard@1.47.0
10
+ - add Ruby 3.4 to Github Action Runner
11
+
1
12
  ## [1.2.0]
2
13
 
3
14
  - 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,117 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard-rails (1.2.0)
4
+ standard-rails (1.3.0)
5
5
  lint_roller (~> 1.0)
6
- rubocop-rails (~> 2.26.0)
6
+ rubocop-rails (~> 2.30.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)
23
+ tzinfo (~> 2.0)
22
24
  ast (2.4.2)
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)
34
+ json (2.8.1)
31
35
  language_server-protocol (3.17.0.3)
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
42
  minitest (5.25.1)
43
+ mutex_m (0.2.0)
39
44
  parallel (1.26.3)
40
- parser (3.3.4.2)
45
+ parser (3.3.6.0)
41
46
  ast (~> 2.4.1)
42
47
  racc
43
48
  racc (1.8.1)
44
49
  rack (3.1.7)
45
50
  rainbow (3.1.1)
46
51
  rake (13.2.1)
47
- regexp_parser (2.9.2)
48
- rexml (3.3.6)
49
- strscan
50
- rubocop (1.65.1)
52
+ regexp_parser (2.10.0)
53
+ rubocop (1.73.2)
51
54
  json (~> 2.3)
52
- language_server-protocol (>= 3.17.0)
55
+ language_server-protocol (~> 3.17.0.2)
56
+ lint_roller (~> 1.1.0)
53
57
  parallel (~> 1.10)
54
58
  parser (>= 3.3.0.2)
55
59
  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)
60
+ regexp_parser (>= 2.9.3, < 3.0)
61
+ rubocop-ast (>= 1.38.0, < 2.0)
59
62
  ruby-progressbar (~> 1.7)
60
- unicode-display_width (>= 2.4.0, < 3.0)
61
- rubocop-ast (1.32.1)
63
+ unicode-display_width (>= 2.4.0, < 4.0)
64
+ rubocop-ast (1.38.1)
62
65
  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)
66
+ rubocop-performance (1.24.0)
67
+ lint_roller (~> 1.1)
68
+ rubocop (>= 1.72.1, < 2.0)
69
+ rubocop-ast (>= 1.38.0, < 2.0)
70
+ rubocop-rails (2.30.3)
67
71
  activesupport (>= 4.2.0)
72
+ lint_roller (~> 1.1)
68
73
  rack (>= 1.1)
69
- rubocop (>= 1.52.0, < 2.0)
70
- rubocop-ast (>= 1.31.1, < 2.0)
74
+ rubocop (>= 1.72.1, < 2.0)
75
+ rubocop-ast (>= 1.38.0, < 2.0)
71
76
  ruby-progressbar (1.13.0)
72
77
  securerandom (0.3.1)
73
- standard (1.40.0)
78
+ simplecov (0.22.0)
79
+ docile (~> 1.1)
80
+ simplecov-html (~> 0.11)
81
+ simplecov_json_formatter (~> 0.1)
82
+ simplecov-html (0.13.1)
83
+ simplecov_json_formatter (0.1.4)
84
+ standard (1.47.0)
74
85
  language_server-protocol (~> 3.17.0.2)
75
86
  lint_roller (~> 1.0)
76
- rubocop (~> 1.65.0)
87
+ rubocop (~> 1.73.0)
77
88
  standard-custom (~> 1.0.0)
78
- standard-performance (~> 1.4)
89
+ standard-performance (~> 1.7)
79
90
  standard-custom (1.0.2)
80
91
  lint_roller (~> 1.0)
81
92
  rubocop (~> 1.50)
82
- standard-performance (1.4.0)
93
+ standard-performance (1.7.0)
83
94
  lint_roller (~> 1.1)
84
- rubocop-performance (~> 1.21.0)
85
- strscan (3.1.0)
95
+ rubocop-performance (~> 1.24.0)
86
96
  tzinfo (2.0.6)
87
97
  concurrent-ruby (~> 1.0)
88
- unicode-display_width (2.5.0)
98
+ unicode-display_width (2.6.0)
89
99
 
90
100
  PLATFORMS
91
101
  arm64-darwin-20
92
102
  arm64-darwin-21
93
103
  arm64-darwin-22
94
104
  arm64-darwin-23
105
+ arm64-darwin-24
95
106
  x86_64-linux
96
107
 
97
108
  DEPENDENCIES
98
109
  m
99
110
  minitest
100
111
  rake
112
+ simplecov
101
113
  standard
102
114
  standard-rails!
103
115
 
104
116
  BUNDLED WITH
105
- 2.5.17
117
+ 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,7 +7,7 @@
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.30.3
11
11
 
12
12
  # frozen_string_literal: true
13
13
 
@@ -19,14 +19,14 @@ require "active_support/core_ext/object/blank"
19
19
  require_path = Pathname.new(Gem.loaded_specs["rubocop-rails"].full_require_paths.first)
20
20
  require require_path.join("rubocop/rails")
21
21
  require require_path.join("rubocop/rails/version")
22
- # require_relative 'rubocop/rails/inject'
23
22
  require require_path.join("rubocop/rails/schema_loader")
24
23
  require require_path.join("rubocop/rails/schema_loader/schema")
25
-
26
- # RuboCop::Rails::Inject.defaults!
27
-
24
+ require require_path.join("rubocop/rails/plugin")
28
25
  require require_path.join("rubocop/cop/rails_cops")
29
26
 
27
+ require require_path.join("rubocop/rails/migration_file_skippable")
28
+ RuboCop::Rails::MigrationFileSkippable.apply_to_cops!
29
+
30
30
  RuboCop::Cop::Style::HashExcept.minimum_target_ruby_version(2.0)
31
31
 
32
32
  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.3.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.3.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-04-08 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.30.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.30.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