ws-style 6.13.25 → 6.14.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 63b5294679d17473cc92faa082063c89219e5e6ecfb190d330e89941120f5d74
4
- data.tar.gz: 87fb63b0fb8a013855b7f7601be5358505abb495bc5dc827237a12837598e25a
3
+ metadata.gz: '080fad03ff8a68d35d0255d447ebd0d27590c91cd5b9ed21e1d980a8251b0fd2'
4
+ data.tar.gz: 1e6467363fe04551f59380a097c32476e03872698377ecee6bcccfad48059cac
5
5
  SHA512:
6
- metadata.gz: 4100aa60e18c33e7abcc13b336f3aff224f2e3934bf7f503fcb154cce85a4caa727d51c40dc4bc82744e589776d07d118a47e14933408b1667059dbbf19886ed
7
- data.tar.gz: 51220515ea1199d909fbe470ccaee99486a28a8533dab82ea8b2e1b3cd8a6def80075ca79c302f5ca5f6150ea5462a7d1ac7544fe7d5ebeae432cbc5a0a300b1
6
+ metadata.gz: 14e82c577413ec122736a4522f54aa1ecf7d182f53c91da6c670ff48d51fc82f1b367c8aebbfcaedeb08176df5c00872f7959acb7b1a77255df75ee9905f1b21
7
+ data.tar.gz: 035642e69ac586c9c60944304fa6123860a4cf163f1a0f39e8b97d6309b91f7a7b18df8d9f58e9f3a63119bf20ac0ecdd8ef8a4e57bff433f91062fb038446d5
data/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## 6.14.1 - 2022-09-14
8
+ ### Changed
9
+ - NewCops rule can only be defined once.
10
+
11
+ ## 6.14.0 - 2022-09-6
12
+ ### Changed
13
+ - Support new rules introduced between rubocop 1.26 -> 1.36
14
+
7
15
  ## 6.13.25 - 2022-07-13
8
16
  ### Changed
9
17
  - Disable AllowForAlignment under Layout/ExtraSpacing.
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ws-style (6.13.25)
5
- rubocop (>= 1.30)
4
+ ws-style (6.14.1)
5
+ rubocop (>= 1.36)
6
6
  rubocop-performance (>= 1.10.2)
7
7
  rubocop-rails (>= 2.9.1)
8
8
  rubocop-rspec (>= 2.2.0)
@@ -11,30 +11,34 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- activesupport (7.0.3)
14
+ activesupport (7.0.4)
15
15
  concurrent-ruby (~> 1.0, >= 1.0.2)
16
16
  i18n (>= 1.6, < 2)
17
17
  minitest (>= 5.1)
18
18
  tzinfo (~> 2.0)
19
+ addressable (2.8.1)
20
+ public_suffix (>= 2.0.2, < 6.0)
19
21
  ast (2.4.2)
20
22
  bundler-audit (0.7.0.1)
21
23
  bundler (>= 1.2.0, < 3)
22
24
  thor (>= 0.18, < 2)
23
25
  concurrent-ruby (1.1.10)
24
26
  diff-lcs (1.5.0)
25
- git (1.11.0)
27
+ git (1.12.0)
28
+ addressable (~> 2.8)
26
29
  rchardet (~> 1.8)
27
- i18n (1.11.0)
30
+ i18n (1.12.0)
28
31
  concurrent-ruby (~> 1.0)
29
32
  json (2.6.2)
30
33
  keepachangelog (0.6.1)
31
34
  json (~> 2.1)
32
35
  thor (~> 0.20)
33
- minitest (5.16.2)
36
+ minitest (5.16.3)
34
37
  parallel (1.22.1)
35
- parser (3.1.2.0)
38
+ parser (3.1.2.1)
36
39
  ast (~> 2.4.1)
37
- rack (2.2.4)
40
+ public_suffix (5.0.0)
41
+ rack (3.0.0)
38
42
  rainbow (3.1.1)
39
43
  rake (13.0.6)
40
44
  rchardet (1.8.0)
@@ -53,34 +57,34 @@ GEM
53
57
  diff-lcs (>= 1.2.0, < 2.0)
54
58
  rspec-support (~> 3.11.0)
55
59
  rspec-support (3.11.0)
56
- rubocop (1.31.2)
60
+ rubocop (1.36.0)
57
61
  json (~> 2.3)
58
62
  parallel (~> 1.10)
59
- parser (>= 3.1.0.0)
63
+ parser (>= 3.1.2.1)
60
64
  rainbow (>= 2.2.2, < 4.0)
61
65
  regexp_parser (>= 1.8, < 3.0)
62
66
  rexml (>= 3.2.5, < 4.0)
63
- rubocop-ast (>= 1.18.0, < 2.0)
67
+ rubocop-ast (>= 1.20.1, < 2.0)
64
68
  ruby-progressbar (~> 1.7)
65
69
  unicode-display_width (>= 1.4.0, < 3.0)
66
- rubocop-ast (1.19.1)
70
+ rubocop-ast (1.21.0)
67
71
  parser (>= 3.1.1.0)
68
- rubocop-performance (1.14.2)
72
+ rubocop-performance (1.15.0)
69
73
  rubocop (>= 1.7.0, < 2.0)
70
74
  rubocop-ast (>= 0.4.0)
71
- rubocop-rails (2.15.2)
75
+ rubocop-rails (2.16.0)
72
76
  activesupport (>= 4.2.0)
73
77
  rack (>= 1.1)
74
- rubocop (>= 1.7.0, < 2.0)
75
- rubocop-rspec (2.12.1)
76
- rubocop (~> 1.31)
78
+ rubocop (>= 1.33.0, < 2.0)
79
+ rubocop-rspec (2.13.1)
80
+ rubocop (~> 1.33)
77
81
  rubocop-vendor (0.8.10)
78
82
  rubocop (>= 0.53.0)
79
83
  ruby-progressbar (1.11.0)
80
84
  thor (0.20.3)
81
- tzinfo (2.0.4)
85
+ tzinfo (2.0.5)
82
86
  concurrent-ruby (~> 1.0)
83
- unicode-display_width (2.2.0)
87
+ unicode-display_width (2.3.0)
84
88
 
85
89
  PLATFORMS
86
90
  ruby
@@ -95,4 +99,4 @@ DEPENDENCIES
95
99
  ws-style!
96
100
 
97
101
  BUNDLED WITH
98
- 2.3.16
102
+ 2.3.21
data/Rakefile CHANGED
@@ -20,7 +20,9 @@ task :election do
20
20
  'performance' => 'https://docs.rubocop.org/rubocop-performance/cops_performance.html#performance',
21
21
  'rails' => 'https://docs.rubocop.org/rubocop-rails/cops_rails.html#rails',
22
22
  'rspec' => 'https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspec',
23
- 'rspec_factorybot' => 'https://docs.rubocop.org/rubocop-rspec/cops_rspec_factorybot.html#rspecfactorybot',
23
+ 'rspec_capybara' => 'https://docs.rubocop.org/rubocop-rspec/cops_rspec_capybara.html',
24
+ 'rspec_factorybot' => 'https://docs.rubocop.org/rubocop-rspec/cops_rspec_factorybot.html',
25
+ 'rspec_rails' => 'https://docs.rubocop.org/rubocop-rspec/cops_rspec_rails.html',
24
26
  'security' => 'https://docs.rubocop.org/rubocop/cops_security.html#security',
25
27
  'style' => 'https://docs.rubocop.org/rubocop/cops_style.html#style',
26
28
  'naming' => 'https://docs.rubocop.org/rubocop/cops_naming.html#naming',
data/core.yml CHANGED
@@ -12,6 +12,7 @@ inherit_mode:
12
12
  - Exclude
13
13
 
14
14
  AllCops:
15
+ NewCops: disable
15
16
  Exclude:
16
17
  - "bin/**/*"
17
18
  - "data/**/*"
@@ -86,7 +87,7 @@ Metrics/CyclomaticComplexity:
86
87
  Max: 7
87
88
 
88
89
  Metrics/MethodLength:
89
- IgnoredMethods: ["extended"]
90
+ AllowedMethods: ["extended"]
90
91
  Max: 25
91
92
 
92
93
  Metrics/ModuleLength:
@@ -570,3 +571,78 @@ Style/HashSyntax:
570
571
  # rubocop-rspec 2.7
571
572
  RSpec/FactoryBot/SyntaxMethods:
572
573
  Enabled: False
574
+
575
+ # rubocop 1.26
576
+ Style/NestedFileDirname:
577
+ Enabled: True
578
+
579
+ # rubocop 1.27
580
+ Lint/RefinementImportMethods:
581
+ Enabled: True
582
+
583
+ Style/RedundantInitialize:
584
+ Enabled: True
585
+
586
+ # rubocop 1.28
587
+ Security/CompoundHash:
588
+ Enabled: True
589
+
590
+ Style/FetchEnvVar:
591
+ Enabled: True
592
+
593
+ Style/ObjectThen:
594
+ Enabled: True
595
+
596
+ # rubocop 1.29
597
+ Style/EnvHome:
598
+ Enabled: True
599
+
600
+ # rubocop 1.30
601
+ Style/MapCompactWithConditionalBlock:
602
+ Enabled: True
603
+
604
+ # rubocop 1.31
605
+ Layout/LineContinuationLeadingSpace:
606
+ Enabled: True
607
+
608
+ Layout/LineContinuationSpacing:
609
+ Enabled: True
610
+
611
+ Lint/ConstantOverwrittenInRescue:
612
+ Enabled: True
613
+
614
+ Lint/NonAtomicFileOperation:
615
+ Enabled: True
616
+
617
+ # rubocop 1.32
618
+ Lint/RequireRangeParentheses:
619
+ Enabled: True
620
+
621
+ Style/EmptyHeredoc:
622
+ Enabled: True
623
+
624
+ # rubocop 1.35
625
+ Style/MagicCommentFormat:
626
+ Enabled: True
627
+
628
+ # rubocop-rspec 2.10.0
629
+ RSpec/VerifiedDoubleReference:
630
+ Enabled: True
631
+
632
+ # rubocop-rspec 2.11.0
633
+ RSpec/ChangeByZero:
634
+ Enabled: True
635
+
636
+ # rubocop-rspec 2.12
637
+ RSpec/Capybara/SpecificMatcher:
638
+ Enabled: False
639
+
640
+ RSpec/Rails/HaveHttpStatus:
641
+ Enabled: True
642
+
643
+ # rubocop-rspec 2.9.0
644
+ RSpec/BeEq:
645
+ Enabled: True
646
+
647
+ RSpec/BeNil:
648
+ Enabled: True
@@ -1,5 +1,5 @@
1
1
  module Ws
2
2
  module Style
3
- VERSION = '6.13.25'.freeze
3
+ VERSION = '6.14.1'.freeze
4
4
  end
5
5
  end
data/rails.yml CHANGED
@@ -107,3 +107,63 @@ Rails/RedundantPresenceValidationOnBelongsTo:
107
107
 
108
108
  Rails/RootJoinChain:
109
109
  Enabled: True
110
+
111
+ # rubocop-rails 2.14
112
+ Rails/ActionControllerTestCase:
113
+ Enabled: False
114
+
115
+ Rails/DeprecatedActiveModelErrorsMethods:
116
+ Enabled: True
117
+
118
+ Rails/DuplicateAssociation:
119
+ Enabled: True
120
+
121
+ Rails/DuplicateScope:
122
+ Enabled: True
123
+
124
+ Rails/I18nLazyLookup:
125
+ Enabled: True
126
+
127
+ Rails/I18nLocaleTexts:
128
+ Enabled: False
129
+
130
+ Rails/MigrationClassName:
131
+ Enabled: True
132
+
133
+ Rails/TransactionExitStatement:
134
+ Enabled: True
135
+
136
+ # rubocop-rails 2.15
137
+ Rails/DotSeparatedKeys:
138
+ Enabled: True
139
+
140
+ Rails/RootPublicPath:
141
+ Enabled: True
142
+
143
+ Rails/StripHeredoc:
144
+ Enabled: True
145
+
146
+ Rails/ToFormattedS:
147
+ Enabled: True
148
+
149
+ # rubocop-rails 2.16
150
+ Rails/ActionControllerFlashBeforeRender:
151
+ Enabled: True
152
+
153
+ Rails/ActiveSupportOnLoad:
154
+ Enabled: True
155
+
156
+ Rails/FreezeTime:
157
+ Enabled: True
158
+
159
+ Rails/RootPathnameMethods:
160
+ Enabled: True
161
+
162
+ Rails/ToSWithArgument:
163
+ Enabled: True
164
+
165
+ Rails/TopLevelHashWithIndifferentAccess:
166
+ Enabled: True
167
+
168
+ Rails/WhereMissing:
169
+ Enabled: True
data/ws-style.gemspec CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
  s.require_paths = ['lib']
23
23
  s.required_ruby_version = '>= 2.7.2'
24
24
 
25
- s.add_dependency 'rubocop', '>= 1.30'
25
+ s.add_dependency 'rubocop', '>= 1.36'
26
26
  s.add_dependency 'rubocop-performance', '>= 1.10.2'
27
27
  s.add_dependency 'rubocop-rails', '>= 2.9.1'
28
28
  s.add_dependency 'rubocop-rspec', '>= 2.2.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ws-style
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.13.25
4
+ version: 6.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Graham
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-07-14 00:00:00.000000000 Z
11
+ date: 2022-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.30'
19
+ version: '1.36'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.30'
26
+ version: '1.36'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement