standard 1.32.1 → 1.34.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: cc2fe16b90280011abe341a176a2f3214c6c4c05955a013b6b536534fdfd1c9e
4
- data.tar.gz: 4b7bf51389d3d612127ececff2f798069de5b61863cad426d3209ee064e17158
3
+ metadata.gz: 2405f8a3eff3e635e2ab7879f85f855d10fbcbd5c2791c2d369d1bc6aada0d74
4
+ data.tar.gz: f3d9ebd04e20deab04e9aeedcc73f2c511e569e723e8467f040f56877696a299
5
5
  SHA512:
6
- metadata.gz: 4bbe989b44bdca0fe39287c04acd3a73f7df88e4262c7508d8dabdd1a8fa75315a9feaa937f7c2f1bf321c00d5835d422cea2657c5b438f53c283607cb52d176
7
- data.tar.gz: a8fa56f7eb9f0a2260b7831c08c23138ba12d8463d2815989d3fa3a86acb5dc1fff64400236e753f57554e036d0c00c17ad8740495b819b9a4b8fa9be6645707
6
+ metadata.gz: d303f2b8a5941f936f159816d19438f43d4d5aa7aeee35883be01e059e4335f60ef9f4e443b62071921e74dccab8ab2ef5855fb4b3b71a0dd72234c4e211abf1
7
+ data.tar.gz: 5e3f1e6e52451788c141ef6d2feafdc8b126e2bd9270a4fb20454a7f2ed8d0dce8a70ed88fe9594cf48c5dfd1154d6c9be3215f69554af799b39f3cc94aaf3c6
@@ -16,7 +16,7 @@ jobs:
16
16
  strategy:
17
17
  matrix:
18
18
  os: [ubuntu-latest]
19
- ruby-version: [2.7, '3.0', 3.1, 3.2, head]
19
+ ruby-version: [2.7, '3.0', 3.1, 3.2, 3.3]
20
20
 
21
21
  runs-on: ${{ matrix.os }}
22
22
 
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.34.0
4
+
5
+ * Updates rubocop to [1.60.2](https://github.com/rubocop/rubocop/releases/tag/v1.60.2)
6
+
7
+ ## 1.33.0
8
+
9
+ * Updates rubocop to [1.59.0](https://github.com/rubocop/rubocop/releases/tag/v1.59.0)
10
+ * Updates standard-performance to [1.3.0](https://github.com/standardrb/standard-performance/releases/tag/v1.3.0)
11
+
3
12
  ## 1.32.1
4
13
 
5
14
  * Fixes regeneration of TODO files ot avoid missing already-ignored rules [#587](https://github.com/standardrb/standard/pull/587)
@@ -54,9 +63,9 @@ plugin that mirrors a rubocop extension
54
63
  ## 1.28.3
55
64
 
56
65
  * Older ruby support fixes from [@pboling](https://github.com/pboling):
57
- - [#559](https://github.com/standardrb/standard/issues/559)
58
- - [#561](https://github.com/standardrb/standard/issues/560)
59
- - [#561](https://github.com/standardrb/standard/issues/561)
66
+ * [#559](https://github.com/standardrb/standard/issues/559)
67
+ * [#561](https://github.com/standardrb/standard/issues/560)
68
+ * [#561](https://github.com/standardrb/standard/issues/561)
60
69
 
61
70
  ## 1.28.2
62
71
 
@@ -541,7 +550,6 @@ mutations to RuboCop's default configuration)
541
550
  * [Performance/DeletePrefix](https://github.com/rubocop-hq/rubocop-performance/pull/105)
542
551
  * [Performance/DeleteSuffix](https://github.com/rubocop-hq/rubocop-performance/pull/105)
543
552
 
544
-
545
553
  ## 0.4.6
546
554
 
547
555
  * Disable `Naming/BinaryOperatorParameterName` because (when non-ascii method
@@ -573,7 +581,6 @@ mutations to RuboCop's default configuration)
573
581
  safe
574
582
  * Allow comments in empty `when` blocks
575
583
 
576
-
577
584
  ## 0.4.1
578
585
 
579
586
  * add given/given! as `{}` friendly blocks [#172](https://github.com/testdouble/standard/pull/172)
data/Gemfile.lock CHANGED
@@ -1,12 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (1.32.1)
4
+ standard (1.34.0)
5
5
  language_server-protocol (~> 3.17.0.2)
6
6
  lint_roller (~> 1.0)
7
- rubocop (~> 1.57.2)
7
+ rubocop (~> 1.60)
8
8
  standard-custom (~> 1.0.0)
9
- standard-performance (~> 1.2)
9
+ standard-performance (~> 1.3)
10
10
 
11
11
  GEM
12
12
  remote: https://rubygems.org/
@@ -23,7 +23,7 @@ GEM
23
23
  method_source (1.0.0)
24
24
  minitest (5.20.0)
25
25
  parallel (1.23.0)
26
- parser (3.2.2.4)
26
+ parser (3.3.0.5)
27
27
  ast (~> 2.4.1)
28
28
  racc
29
29
  racc (1.7.1)
@@ -31,22 +31,22 @@ GEM
31
31
  rake (13.0.6)
32
32
  regexp_parser (2.8.2)
33
33
  rexml (3.2.6)
34
- rubocop (1.57.2)
34
+ rubocop (1.60.2)
35
35
  json (~> 2.3)
36
36
  language_server-protocol (>= 3.17.0)
37
37
  parallel (~> 1.10)
38
- parser (>= 3.2.2.4)
38
+ parser (>= 3.3.0.2)
39
39
  rainbow (>= 2.2.2, < 4.0)
40
40
  regexp_parser (>= 1.8, < 3.0)
41
41
  rexml (>= 3.2.5, < 4.0)
42
- rubocop-ast (>= 1.28.1, < 2.0)
42
+ rubocop-ast (>= 1.30.0, < 2.0)
43
43
  ruby-progressbar (~> 1.7)
44
44
  unicode-display_width (>= 2.4.0, < 3.0)
45
- rubocop-ast (1.29.0)
45
+ rubocop-ast (1.30.0)
46
46
  parser (>= 3.2.1.0)
47
- rubocop-performance (1.19.1)
48
- rubocop (>= 1.7.0, < 2.0)
49
- rubocop-ast (>= 0.4.0)
47
+ rubocop-performance (1.20.1)
48
+ rubocop (>= 1.48.1, < 2.0)
49
+ rubocop-ast (>= 1.30.0, < 2.0)
50
50
  ruby-progressbar (1.13.0)
51
51
  simplecov (0.22.0)
52
52
  docile (~> 1.1)
@@ -57,9 +57,9 @@ GEM
57
57
  standard-custom (1.0.2)
58
58
  lint_roller (~> 1.0)
59
59
  rubocop (~> 1.50)
60
- standard-performance (1.2.1)
60
+ standard-performance (1.3.0)
61
61
  lint_roller (~> 1.1)
62
- rubocop-performance (~> 1.19.1)
62
+ rubocop-performance (~> 1.20.1)
63
63
  unicode-display_width (2.5.0)
64
64
 
65
65
  PLATFORMS
@@ -76,4 +76,4 @@ DEPENDENCIES
76
76
  standard!
77
77
 
78
78
  BUNDLED WITH
79
- 2.4.21
79
+ 2.4.12
data/README.md CHANGED
@@ -156,6 +156,7 @@ We've added a number of editing guides for getting started:
156
156
  - [neovim](https://github.com/standardrb/standard/wiki/IDE:-neovim)
157
157
  - [RubyMine](https://www.jetbrains.com/help/ruby/rubocop.html#disable_rubocop)
158
158
  - [emacs](https://www.flycheck.org/en/latest/languages.html#syntax-checker-ruby-standard)
159
+ - [Helix](https://github.com/helix-editor/helix/wiki/External-formatter-configuration#standardrb)
159
160
  - [Atom](https://github.com/standardrb/standard/wiki/IDE:-Atom)
160
161
 
161
162
  If you'd like to help by creating a guide, please draft one [in an
@@ -172,7 +173,7 @@ editors can support natively, even without a Standard-specific plugin.
172
173
  You can run the server by supplying the `--lsp` flag:
173
174
 
174
175
  ```
175
- standard --lsp
176
+ standardrb --lsp
176
177
  ```
177
178
 
178
179
  If your editor offers LSP support, it probably has a place to configure the
@@ -498,6 +499,7 @@ Here are a few examples of Ruby Standard-compliant teams & projects:
498
499
  * [Spinal](https://spinalcms.com/)
499
500
  * [Teamtailor](https://www.teamtailor.com/)
500
501
  * [thoughtbot](https://thoughtbot.com/)
502
+ * [University of Wisconsin-Eau Claire](https://www.uwec.edu/)
501
503
 
502
504
  Does your team use Standard? [Add your name to the list](https://github.com/standardrb/standard/edit/main/README.md)!
503
505
 
data/config/base.yml CHANGED
@@ -586,12 +586,18 @@ Lint/InheritException:
586
586
  Lint/InterpolationCheck:
587
587
  Enabled: true
588
588
 
589
+ Lint/ItWithoutArgumentsInBlock:
590
+ Enabled: true
591
+
589
592
  Lint/LambdaWithoutLiteralBlock:
590
593
  Enabled: false
591
594
 
592
595
  Lint/LiteralAsCondition:
593
596
  Enabled: true
594
597
 
598
+ Lint/LiteralAssignmentInCondition:
599
+ Enabled: true
600
+
595
601
  Lint/LiteralInInterpolation:
596
602
  Enabled: true
597
603
 
@@ -977,6 +983,9 @@ Style/ArgumentsForwarding:
977
983
  Style/ArrayCoercion:
978
984
  Enabled: false
979
985
 
986
+ Style/ArrayFirstLast:
987
+ Enabled: false
988
+
980
989
  Style/ArrayIntersect:
981
990
  Enabled: false
982
991
 
@@ -1557,7 +1566,7 @@ Style/RedundantHeredocDelimiterQuotes:
1557
1566
  Enabled: true
1558
1567
 
1559
1568
  Style/RedundantInitialize:
1560
- Enabled: true
1569
+ Enabled: false
1561
1570
 
1562
1571
  Style/RedundantInterpolation:
1563
1572
  Enabled: true
@@ -1712,6 +1721,9 @@ Style/Strip:
1712
1721
  Style/StructInheritance:
1713
1722
  Enabled: false
1714
1723
 
1724
+ Style/SuperWithArgsParentheses:
1725
+ Enabled: true
1726
+
1715
1727
  Style/SwapValues:
1716
1728
  Enabled: false
1717
1729
 
@@ -13,7 +13,7 @@ module Standard
13
13
  end
14
14
 
15
15
  def self.handle(name, &block)
16
- define_method("handle_#{name}", &block)
16
+ define_method(:"handle_#{name}", &block)
17
17
  end
18
18
 
19
19
  def for(name)
@@ -1,3 +1,3 @@
1
1
  module Standard
2
- VERSION = Gem::Version.new("1.32.1")
2
+ VERSION = Gem::Version.new("1.34.0")
3
3
  end
data/standard.gemspec CHANGED
@@ -23,11 +23,11 @@ Gem::Specification.new do |spec|
23
23
  spec.require_paths = ["lib"]
24
24
  spec.metadata["rubygems_mfa_required"] = "true"
25
25
 
26
- spec.add_dependency "rubocop", "~> 1.57.2"
26
+ spec.add_dependency "rubocop", "~> 1.60"
27
27
 
28
28
  spec.add_dependency "lint_roller", "~> 1.0"
29
29
  spec.add_dependency "standard-custom", "~> 1.0.0"
30
- spec.add_dependency "standard-performance", "~> 1.2"
30
+ spec.add_dependency "standard-performance", "~> 1.3"
31
31
 
32
32
  # not semver: first three are lsp protocol version, last is patch
33
33
  spec.add_dependency "language_server-protocol", "~> 3.17.0.2"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.32.1
4
+ version: 1.34.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: 2023-12-04 00:00:00.000000000 Z
11
+ date: 2024-02-13 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.57.2
19
+ version: '1.60'
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.57.2
26
+ version: '1.60'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: lint_roller
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.2'
61
+ version: '1.3'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.2'
68
+ version: '1.3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: language_server-protocol
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  - !ruby/object:Gem::Version
184
184
  version: '0'
185
185
  requirements: []
186
- rubygems_version: 3.4.21
186
+ rubygems_version: 3.1.6
187
187
  signing_key:
188
188
  specification_version: 4
189
189
  summary: Ruby Style Guide, with linter & automatic code fixer