ws-style 6.13.25 → 6.14.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: 63b5294679d17473cc92faa082063c89219e5e6ecfb190d330e89941120f5d74
4
- data.tar.gz: 87fb63b0fb8a013855b7f7601be5358505abb495bc5dc827237a12837598e25a
3
+ metadata.gz: 274a8564b43a2c85e1e0a1cfd81edb4bdfcb3d87cb22a3c440d6d170365ae5c5
4
+ data.tar.gz: 95f50395e93d29800969e79e1970ee140657f87c8ce00f0803a6b975c260f7ac
5
5
  SHA512:
6
- metadata.gz: 4100aa60e18c33e7abcc13b336f3aff224f2e3934bf7f503fcb154cce85a4caa727d51c40dc4bc82744e589776d07d118a47e14933408b1667059dbbf19886ed
7
- data.tar.gz: 51220515ea1199d909fbe470ccaee99486a28a8533dab82ea8b2e1b3cd8a6def80075ca79c302f5ca5f6150ea5462a7d1ac7544fe7d5ebeae432cbc5a0a300b1
6
+ metadata.gz: acd1945fa3a787ac4ba9c4f2d3ed55d71b296e13f264f1c5d7706e338dd599073839e36f600c28c20db845e680e4c790ab44250f2b869dd7edd3a2ca10c125c2
7
+ data.tar.gz: 9b9f1792542db20b48927321dfc69441e8fae02aa934342d293ae2a5d98ee2fbadc97a5a3e98835668ca202683f4e6b3ffde4403940a77773f4429d991ece643
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ 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.0 - 2022-09-6
8
+ ### Changed
9
+ - Support new rules introduced between rubocop 1.26 -> 1.36
10
+
7
11
  ## 6.13.25 - 2022-07-13
8
12
  ### Changed
9
13
  - 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.0)
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,32 +57,32 @@ 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)
78
+ rubocop (>= 1.33.0, < 2.0)
75
79
  rubocop-rspec (2.12.1)
76
80
  rubocop (~> 1.31)
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
87
  unicode-display_width (2.2.0)
84
88
 
@@ -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
@@ -11,6 +11,9 @@ inherit_mode:
11
11
  - AllowedNames
12
12
  - Exclude
13
13
 
14
+ AllCops:
15
+ NewCops: disable
16
+
14
17
  AllCops:
15
18
  Exclude:
16
19
  - "bin/**/*"
@@ -86,7 +89,7 @@ Metrics/CyclomaticComplexity:
86
89
  Max: 7
87
90
 
88
91
  Metrics/MethodLength:
89
- IgnoredMethods: ["extended"]
92
+ AllowedMethods: ["extended"]
90
93
  Max: 25
91
94
 
92
95
  Metrics/ModuleLength:
@@ -570,3 +573,78 @@ Style/HashSyntax:
570
573
  # rubocop-rspec 2.7
571
574
  RSpec/FactoryBot/SyntaxMethods:
572
575
  Enabled: False
576
+
577
+ # rubocop 1.26
578
+ Style/NestedFileDirname:
579
+ Enabled: True
580
+
581
+ # rubocop 1.27
582
+ Lint/RefinementImportMethods:
583
+ Enabled: True
584
+
585
+ Style/RedundantInitialize:
586
+ Enabled: True
587
+
588
+ # rubocop 1.28
589
+ Security/CompoundHash:
590
+ Enabled: True
591
+
592
+ Style/FetchEnvVar:
593
+ Enabled: True
594
+
595
+ Style/ObjectThen:
596
+ Enabled: True
597
+
598
+ # rubocop 1.29
599
+ Style/EnvHome:
600
+ Enabled: True
601
+
602
+ # rubocop 1.30
603
+ Style/MapCompactWithConditionalBlock:
604
+ Enabled: True
605
+
606
+ # rubocop 1.31
607
+ Layout/LineContinuationLeadingSpace:
608
+ Enabled: True
609
+
610
+ Layout/LineContinuationSpacing:
611
+ Enabled: True
612
+
613
+ Lint/ConstantOverwrittenInRescue:
614
+ Enabled: True
615
+
616
+ Lint/NonAtomicFileOperation:
617
+ Enabled: True
618
+
619
+ # rubocop 1.32
620
+ Lint/RequireRangeParentheses:
621
+ Enabled: True
622
+
623
+ Style/EmptyHeredoc:
624
+ Enabled: True
625
+
626
+ # rubocop 1.35
627
+ Style/MagicCommentFormat:
628
+ Enabled: True
629
+
630
+ # rubocop-rspec 2.10.0
631
+ RSpec/VerifiedDoubleReference:
632
+ Enabled: True
633
+
634
+ # rubocop-rspec 2.11.0
635
+ RSpec/ChangeByZero:
636
+ Enabled: True
637
+
638
+ # rubocop-rspec 2.12
639
+ RSpec/Capybara/SpecificMatcher:
640
+ Enabled: False
641
+
642
+ RSpec/Rails/HaveHttpStatus:
643
+ Enabled: True
644
+
645
+ # rubocop-rspec 2.9.0
646
+ RSpec/BeEq:
647
+ Enabled: True
648
+
649
+ RSpec/BeNil:
650
+ Enabled: True
@@ -1,5 +1,5 @@
1
1
  module Ws
2
2
  module Style
3
- VERSION = '6.13.25'.freeze
3
+ VERSION = '6.14.0'.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.0
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-14 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