ws-style 6.12.2 → 6.13.1

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: 5f4d34fccf285bd944833b2bf0600943fa15336b76a039a9e1b65c9f83251663
4
- data.tar.gz: 4e521b797463416a8acd9a6892bc64afe9463da59b4eebe31067a9afa5acfa3b
3
+ metadata.gz: ec8f383640efde6278a5668bb65c4ee48602c7cb940f8443af2d6b37e8fd6457
4
+ data.tar.gz: b84fd2c1f7c7619e2ddae9d198bf5296c3ad2f3b37c4c9f9a3996eb9706317fc
5
5
  SHA512:
6
- metadata.gz: d6662199c684e517e7c02771d650e47568e4c4979fb451043c8e94e2f99c7f47d703ff7447b5c9f2845252fa4e13c9997cb4b2989ec83745eb2fc745b52854f9
7
- data.tar.gz: 4396c24eefd1d392cfea644c7521987086f3145c44986cf873457eb903e659c45269444129b908ca5fc4e1486abe1309d2b8f966aa71d3070c85da37a0be7ede
6
+ metadata.gz: d4fcaa5a71f27888c49e338fc7c2ce0d3b8aebc6cad92c1e906175bb9ff1f270d7caab89e0b12e98002a1fd297fd67ffbf5f5ed9363bf091711882d81b07ff9d
7
+ data.tar.gz: d88df75aa68b23e3ddb644c0e61f59a0b3e93d9fcd0d3eac4274c5f891c9ae4d04edb6b5b6a8aad507f7d6fc3d8a666588111dc80e2d86ee9b84f3f5bf73fe62
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.1 - 2021-01-07
8
+ ### Changed
9
+ - Disable ruby 3.1 Hash shorthand syntax
10
+
11
+ ## 6.13.0 - 2021-01-04
12
+ ### Changed
13
+ - Updated rubocop to 1.24.1 and opted into new cops
14
+
15
+ ## 6.12.4 - 2022-01-04
16
+ ### Changed
17
+ - Updated dependencies
18
+
19
+ ## 6.12.3 - 2021-12-20
20
+ ### Changed
21
+ - Updated dependencies
22
+
7
23
  ## 6.12.2 - 2021-12-16
8
24
  ### Changed
9
25
  - Upgraded rubocop to 1.23
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ws-style (6.12.2)
4
+ ws-style (6.13.1)
5
5
  rubocop (>= 1.23)
6
6
  rubocop-performance (>= 1.10.2)
7
7
  rubocop-rails (>= 2.9.1)
@@ -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.1)
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,35 @@ 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
+ Style/HashSyntax:
564
+ EnforcedShorthandSyntax: never
565
+
566
+ # rubocop-rspec 2.7
567
+ RSpec/FactoryBot/SyntaxMethods:
568
+ Enabled: false
@@ -1,5 +1,5 @@
1
1
  module Ws
2
2
  module Style
3
- VERSION = '6.12.2'.freeze
3
+ VERSION = '6.13.1'.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
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.2
4
+ version: 6.13.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: 2021-12-17 00:00:00.000000000 Z
11
+ date: 2022-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop