ws-style 6.12.1 → 6.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 87c28e79d89beb888fedffe24535b3bae5dd1e208afdde4c09839fb5cec7c31f
4
- data.tar.gz: fb0fed1c33c18094ebc79e6a5a764835f58522a51ce77ed9f9f3590d7d468101
3
+ metadata.gz: 87f1ab2f03c57354024375cef184a3a89abc447256fb2e89d8d8755a5d22c427
4
+ data.tar.gz: 1b928aa31a10ec50388907173f02b78852bdd2efbc21b68614cfd79f2b7ca030
5
5
  SHA512:
6
- metadata.gz: 347c185e8b15f9732d0c588b300076ea33cd702b9e53ad81a861d8271e2e31ff20fc688fa8a9b7ae560ba4726d655cbe343db3dc312fbffe16626fe4ecef03b0
7
- data.tar.gz: a42965bccc783d6d7aa13ea53dd6052ef46027f9af9866a02a5348d2e18a0f4aac193308484952006586554b2e4d1e2ee671e896e2981ca62b00345b56dd0512
6
+ metadata.gz: 7ebd3e06640f907ea494a197c3d26d1fbbcade84a80e1f362f3fe0df452c0946846e4e8ff96386875e72b76fb8c686b34c627b21faab3b70da5fe7e7a153f092
7
+ data.tar.gz: 8d3a2bf65061266a6d64946a85f811218c92c9b588440602c158de1fdaacd3acf6354d4f2eed576df0318ded328f9d0848bd0541f4fb6dd679026802b1d29921
data/CHANGELOG.md CHANGED
@@ -4,6 +4,22 @@ 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.13.0 - 2021-01-04
8
+ ### Changed
9
+ - Updated rubocop to 1.24.1 and opted into new cops
10
+
11
+ ## 6.12.4 - 2022-01-04
12
+ ### Changed
13
+ - Updated dependencies
14
+
15
+ ## 6.12.3 - 2021-12-20
16
+ ### Changed
17
+ - Updated dependencies
18
+
19
+ ## 6.12.2 - 2021-12-16
20
+ ### Changed
21
+ - Upgraded rubocop to 1.23
22
+
7
23
  ## 6.12.1 - 2021-12-09
8
24
  ### Changed
9
25
  - Disable new Gemspec/RequireMFA cop
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ws-style (6.12.1)
5
- rubocop (>= 1.12.1)
4
+ ws-style (6.13.0)
5
+ rubocop (>= 1.23)
6
6
  rubocop-performance (>= 1.10.2)
7
7
  rubocop-rails (>= 2.9.1)
8
8
  rubocop-rspec (>= 2.2.0)
@@ -11,19 +11,18 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- activesupport (6.1.4.1)
14
+ activesupport (7.0.0)
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
- zeitwerk (~> 2.3)
20
19
  ast (2.4.2)
21
20
  bundler-audit (0.7.0.1)
22
21
  bundler (>= 1.2.0, < 3)
23
22
  thor (>= 0.18, < 2)
24
23
  concurrent-ruby (1.1.9)
25
- diff-lcs (1.4.4)
26
- git (1.9.1)
24
+ diff-lcs (1.5.0)
25
+ git (1.10.1)
27
26
  rchardet (~> 1.8)
28
27
  i18n (1.8.11)
29
28
  concurrent-ruby (~> 1.0)
@@ -31,9 +30,9 @@ GEM
31
30
  keepachangelog (0.6.1)
32
31
  json (~> 2.1)
33
32
  thor (~> 0.20)
34
- minitest (5.14.4)
33
+ minitest (5.15.0)
35
34
  parallel (1.21.0)
36
- parser (3.0.3.1)
35
+ parser (3.1.0.0)
37
36
  ast (~> 2.4.1)
38
37
  rack (2.2.3)
39
38
  rainbow (3.0.0)
@@ -54,34 +53,33 @@ GEM
54
53
  diff-lcs (>= 1.2.0, < 2.0)
55
54
  rspec-support (~> 3.10.0)
56
55
  rspec-support (3.10.3)
57
- rubocop (1.23.0)
56
+ rubocop (1.24.1)
58
57
  parallel (~> 1.10)
59
58
  parser (>= 3.0.0.0)
60
59
  rainbow (>= 2.2.2, < 4.0)
61
60
  regexp_parser (>= 1.8, < 3.0)
62
61
  rexml
63
- rubocop-ast (>= 1.12.0, < 2.0)
62
+ rubocop-ast (>= 1.15.1, < 2.0)
64
63
  ruby-progressbar (~> 1.7)
65
64
  unicode-display_width (>= 1.4.0, < 3.0)
66
- rubocop-ast (1.14.0)
65
+ rubocop-ast (1.15.1)
67
66
  parser (>= 3.0.1.1)
68
- rubocop-performance (1.12.0)
67
+ rubocop-performance (1.13.1)
69
68
  rubocop (>= 1.7.0, < 2.0)
70
69
  rubocop-ast (>= 0.4.0)
71
- rubocop-rails (2.12.4)
70
+ rubocop-rails (2.13.0)
72
71
  activesupport (>= 4.2.0)
73
72
  rack (>= 1.1)
74
73
  rubocop (>= 1.7.0, < 2.0)
75
- rubocop-rspec (2.6.0)
74
+ rubocop-rspec (2.7.0)
76
75
  rubocop (~> 1.19)
77
- rubocop-vendor (0.7.0)
76
+ rubocop-vendor (0.8.0)
78
77
  rubocop (>= 0.53.0)
79
78
  ruby-progressbar (1.11.0)
80
79
  thor (0.20.3)
81
80
  tzinfo (2.0.4)
82
81
  concurrent-ruby (~> 1.0)
83
82
  unicode-display_width (2.1.0)
84
- zeitwerk (2.5.1)
85
83
 
86
84
  PLATFORMS
87
85
  ruby
data/Rakefile CHANGED
@@ -4,7 +4,6 @@ require "rubocop"
4
4
  require "rubocop-performance"
5
5
  require "rubocop-rails"
6
6
  require "rubocop-rspec"
7
-
8
7
  RSpec::Core::RakeTask.new(:spec)
9
8
 
10
9
  task default: :spec
@@ -21,14 +20,16 @@ task :election do
21
20
  'performance' => 'https://docs.rubocop.org/rubocop-performance/cops_performance.html#performance',
22
21
  'rails' => 'https://docs.rubocop.org/rubocop-rails/cops_rails.html#rails',
23
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',
24
24
  'security' => 'https://docs.rubocop.org/rubocop/cops_security.html#security',
25
25
  'style' => 'https://docs.rubocop.org/rubocop/cops_style.html#style',
26
+ 'naming' => 'https://docs.rubocop.org/rubocop/cops_naming.html#naming',
26
27
  }
27
28
  next if configuration.key?(pending_cop.name)
28
29
 
29
- department, anchor = pending_cop.name.downcase.split('/')
30
+ *department, anchor = pending_cop.name.downcase.split('/')
30
31
  puts <<~COMMENT
31
- [**#{pending_cop.name}**](#{base_urls.fetch(department)}#{anchor})
32
+ [**#{pending_cop.name}**](#{base_urls.fetch(department.join('_'))}#{anchor})
32
33
  #{pending_cop.metadata.fetch('Description')}
33
34
 
34
35
  COMMENT
data/core.yml CHANGED
@@ -534,3 +534,32 @@ RSpec/SubjectDeclaration:
534
534
  # rubocop-performance 1.12
535
535
  Performance/ConcurrentMonotonicTime:
536
536
  Enabled: True
537
+
538
+ # rubocop-performance 1.13
539
+ Performance/StringIdentifierArgument:
540
+ Enabled: True
541
+
542
+ # rubocop 1.23
543
+ Lint/UselessRuby2Keywords:
544
+ Enabled: True
545
+
546
+ Style/OpenStructUse:
547
+ Enabled: True
548
+
549
+ # rubocop 1.24
550
+ Naming/BlockForwarding:
551
+ Enabled: True
552
+ EnforcedStyle: explicit
553
+
554
+ Style/FileRead:
555
+ Enabled: True
556
+
557
+ Style/FileWrite:
558
+ Enabled: True
559
+
560
+ Style/MapToHash:
561
+ Enabled: True
562
+
563
+ # rubocop-rspec 2.7
564
+ RSpec/FactoryBot/SyntaxMethods:
565
+ Enabled: false
@@ -1,5 +1,5 @@
1
1
  module Ws
2
2
  module Style
3
- VERSION = '6.12.1'.freeze
3
+ VERSION = '6.13.0'.freeze
4
4
  end
5
5
  end
data/rails.yml CHANGED
@@ -94,3 +94,16 @@ Rails/RedundantTravelBack:
94
94
  # rubocop-rspec 2.4
95
95
  RSpec/Rails/AvoidSetupHook:
96
96
  Enabled: True
97
+
98
+ # rubocop-rails 2.13
99
+ Rails/CompactBlank:
100
+ Enabled: True
101
+
102
+ Rails/DurationArithmetic:
103
+ Enabled: True
104
+
105
+ Rails/RedundantPresenceValidationOnBelongsTo:
106
+ Enabled: True
107
+
108
+ Rails/RootJoinChain:
109
+ 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.12.1'
25
+ s.add_dependency 'rubocop', '>= 1.23'
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.12.1
4
+ version: 6.13.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: 2021-12-09 00:00:00.000000000 Z
11
+ date: 2022-01-05 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.12.1
19
+ version: '1.23'
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.12.1
26
+ version: '1.23'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement