standard 1.33.0 → 1.37.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: d2d9b2d176cfaf42632e3007ae0520736726fe7bf4d0b8cf2bbfcace98bffbc3
4
- data.tar.gz: 4f200b152f0d8bee0cce4540d3b19b4270180598fe4f534563875736f2beff9d
3
+ metadata.gz: d2deb844275c075310374ee37f374dfb1ab31ded453dd65744a051c2b4c1139a
4
+ data.tar.gz: 036bbabc58241f5edf1b18a0da1d47e36262b51c37a196298bc0ef4b5e5ba4e5
5
5
  SHA512:
6
- metadata.gz: 93430778d9de63b32a445825e4d68ad9fe9f7d4afc86b090482d1459ecd3c4a440326688287c3148ddec14a17755b82b9dfd119476d09737e62e1e5e1791aa92
7
- data.tar.gz: e0d6055c79a0e81d236183f30a50edf4b4136c37525d182747155da6a67c29444477583fd223f72a2c54aa26f5fe94cc1326d4b9f6899b510d5aa0a2564872b4
6
+ metadata.gz: 2723bef6152debb628fd5f510f527296d30714c5e68bff12489b9af0ce6add2361c44911198dea8f764b5302ec24049f7da3671f15e033543f42427f951abe46
7
+ data.tar.gz: 3804a98d3c95ae5a040380f2dff8b8aaf15431c95392a42563d1687c513e84d55e14337351d24222d301b89755443527b10b5ea2ed93ad2ee93f323c4188a36b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.37.0
4
+
5
+ * Updates rubocop to [1.64.1](https://github.com/rubocop/rubocop/releases/tag/v1.64.1)
6
+
7
+ ## 1.36.0
8
+
9
+ * Updates rubocop to [1.63.5](https://github.com/rubocop/rubocop/releases/tag/v1.63.5)
10
+ * Updates standard-performance to [1.4.0](https://github.com/standardrb/standard-performance/releases/tag/v1.4.0)
11
+
12
+ ## 1.35.1
13
+
14
+ * Corrects rubocop constraint to the patch version, not minor version.
15
+
16
+ ## 1.35.0
17
+
18
+ * Updates rubocop to [1.62](https://github.com/rubocop/rubocop/releases/tag/v1.62.1)
19
+
20
+ ## 1.34.0
21
+
22
+ * Updates rubocop to [1.60.2](https://github.com/rubocop/rubocop/releases/tag/v1.60.2)
23
+
3
24
  ## 1.33.0
4
25
 
5
26
  * Updates rubocop to [1.59.0](https://github.com/rubocop/rubocop/releases/tag/v1.59.0)
@@ -59,9 +80,9 @@ plugin that mirrors a rubocop extension
59
80
  ## 1.28.3
60
81
 
61
82
  * Older ruby support fixes from [@pboling](https://github.com/pboling):
62
- - [#559](https://github.com/standardrb/standard/issues/559)
63
- - [#561](https://github.com/standardrb/standard/issues/560)
64
- - [#561](https://github.com/standardrb/standard/issues/561)
83
+ * [#559](https://github.com/standardrb/standard/issues/559)
84
+ * [#561](https://github.com/standardrb/standard/issues/560)
85
+ * [#561](https://github.com/standardrb/standard/issues/561)
65
86
 
66
87
  ## 1.28.2
67
88
 
@@ -546,7 +567,6 @@ mutations to RuboCop's default configuration)
546
567
  * [Performance/DeletePrefix](https://github.com/rubocop-hq/rubocop-performance/pull/105)
547
568
  * [Performance/DeleteSuffix](https://github.com/rubocop-hq/rubocop-performance/pull/105)
548
569
 
549
-
550
570
  ## 0.4.6
551
571
 
552
572
  * Disable `Naming/BinaryOperatorParameterName` because (when non-ascii method
@@ -578,7 +598,6 @@ mutations to RuboCop's default configuration)
578
598
  safe
579
599
  * Allow comments in empty `when` blocks
580
600
 
581
-
582
601
  ## 0.4.1
583
602
 
584
603
  * add given/given! as `{}` friendly blocks [#172](https://github.com/testdouble/standard/pull/172)
data/Gemfile CHANGED
@@ -5,7 +5,6 @@ gemspec
5
5
  gem "bundler"
6
6
  gem "minitest", "~> 5.0"
7
7
  gem "rake", "~> 13.0"
8
- gem "gimme"
9
8
  gem "m"
10
9
 
11
10
  # You may want to run these off path locally:
data/Gemfile.lock CHANGED
@@ -1,19 +1,18 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (1.33.0)
4
+ standard (1.37.0)
5
5
  language_server-protocol (~> 3.17.0.2)
6
6
  lint_roller (~> 1.0)
7
- rubocop (~> 1.59.0)
7
+ rubocop (~> 1.64.0)
8
8
  standard-custom (~> 1.0.0)
9
- standard-performance (~> 1.3)
9
+ standard-performance (~> 1.4)
10
10
 
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
14
  ast (2.4.2)
15
15
  docile (1.4.0)
16
- gimme (0.5.0)
17
16
  json (2.6.3)
18
17
  language_server-protocol (3.17.0.3)
19
18
  lint_roller (1.1.0)
@@ -23,7 +22,7 @@ GEM
23
22
  method_source (1.0.0)
24
23
  minitest (5.20.0)
25
24
  parallel (1.23.0)
26
- parser (3.2.2.4)
25
+ parser (3.3.0.5)
27
26
  ast (~> 2.4.1)
28
27
  racc
29
28
  racc (1.7.1)
@@ -31,22 +30,22 @@ GEM
31
30
  rake (13.0.6)
32
31
  regexp_parser (2.8.2)
33
32
  rexml (3.2.6)
34
- rubocop (1.59.0)
33
+ rubocop (1.64.1)
35
34
  json (~> 2.3)
36
35
  language_server-protocol (>= 3.17.0)
37
36
  parallel (~> 1.10)
38
- parser (>= 3.2.2.4)
37
+ parser (>= 3.3.0.2)
39
38
  rainbow (>= 2.2.2, < 4.0)
40
39
  regexp_parser (>= 1.8, < 3.0)
41
40
  rexml (>= 3.2.5, < 4.0)
42
- rubocop-ast (>= 1.30.0, < 2.0)
41
+ rubocop-ast (>= 1.31.1, < 2.0)
43
42
  ruby-progressbar (~> 1.7)
44
43
  unicode-display_width (>= 2.4.0, < 3.0)
45
- rubocop-ast (1.30.0)
46
- parser (>= 3.2.1.0)
47
- rubocop-performance (1.20.1)
44
+ rubocop-ast (1.31.2)
45
+ parser (>= 3.3.0.4)
46
+ rubocop-performance (1.21.0)
48
47
  rubocop (>= 1.48.1, < 2.0)
49
- rubocop-ast (>= 1.30.0, < 2.0)
48
+ rubocop-ast (>= 1.31.1, < 2.0)
50
49
  ruby-progressbar (1.13.0)
51
50
  simplecov (0.22.0)
52
51
  docile (~> 1.1)
@@ -57,9 +56,9 @@ GEM
57
56
  standard-custom (1.0.2)
58
57
  lint_roller (~> 1.0)
59
58
  rubocop (~> 1.50)
60
- standard-performance (1.3.0)
59
+ standard-performance (1.4.0)
61
60
  lint_roller (~> 1.1)
62
- rubocop-performance (~> 1.20.1)
61
+ rubocop-performance (~> 1.21.0)
63
62
  unicode-display_width (2.5.0)
64
63
 
65
64
  PLATFORMS
@@ -68,7 +67,6 @@ PLATFORMS
68
67
 
69
68
  DEPENDENCIES
70
69
  bundler
71
- gimme
72
70
  m
73
71
  minitest (~> 5.0)
74
72
  rake (~> 13.0)
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
@@ -183,7 +184,7 @@ above command and will subsequently manage the server process for you.
183
184
  Various continuous integration and quality-checking tools have been made to
184
185
  support Standard Ruby, as well.
185
186
 
186
- * [Github Actions](https://github.com/andrewmcodes/standardrb-action)
187
+ * [GitHub Actions](https://github.com/standardrb/standard-ruby-action)
187
188
  * [Code Climate](https://github.com/standardrb/standard/wiki/CI:-Code-Climate)
188
189
  * [Pronto](https://github.com/julianrubisch/pronto-standardrb)
189
190
  * [Danger](https://github.com/ashfurrow/danger-rubocop/)
@@ -465,6 +466,7 @@ inherit_gem:
465
466
  Here are a few examples of Ruby Standard-compliant teams & projects:
466
467
 
467
468
  * [Test Double](https://testdouble.com/agency)
469
+ * [AdBarker](https://adbarker.com)
468
470
  * [AlchemyCMS](https://alchemy-cms.com)
469
471
  * [Amazon Web Services](https://aws.amazon.com/)
470
472
  * [Arrows](https://arrows.to/)
@@ -498,7 +500,9 @@ Here are a few examples of Ruby Standard-compliant teams & projects:
498
500
  * [Spinal](https://spinalcms.com/)
499
501
  * [Teamtailor](https://www.teamtailor.com/)
500
502
  * [thoughtbot](https://thoughtbot.com/)
503
+ * [Topkey](https://topkey.io)
501
504
  * [University of Wisconsin-Eau Claire](https://www.uwec.edu/)
505
+ * [Cartwheel](https://www.cartwheel.org)
502
506
 
503
507
  Does your team use Standard? [Add your name to the list](https://github.com/standardrb/standard/edit/main/README.md)!
504
508
 
data/config/base.yml CHANGED
@@ -1303,6 +1303,9 @@ Style/MagicCommentFormat:
1303
1303
  Style/MapCompactWithConditionalBlock:
1304
1304
  Enabled: true
1305
1305
 
1306
+ Style/MapIntoArray:
1307
+ Enabled: false
1308
+
1306
1309
  Style/MapToHash:
1307
1310
  Enabled: false
1308
1311
 
@@ -1566,7 +1569,7 @@ Style/RedundantHeredocDelimiterQuotes:
1566
1569
  Enabled: true
1567
1570
 
1568
1571
  Style/RedundantInitialize:
1569
- Enabled: true
1572
+ Enabled: false
1570
1573
 
1571
1574
  Style/RedundantInterpolation:
1572
1575
  Enabled: true
@@ -1659,6 +1662,9 @@ Style/Semicolon:
1659
1662
  Style/Send:
1660
1663
  Enabled: false
1661
1664
 
1665
+ Style/SendWithLiteralMethodName:
1666
+ Enabled: false
1667
+
1662
1668
  Style/SignalException:
1663
1669
  Enabled: false
1664
1670
 
@@ -1721,6 +1727,9 @@ Style/Strip:
1721
1727
  Style/StructInheritance:
1722
1728
  Enabled: false
1723
1729
 
1730
+ Style/SuperArguments:
1731
+ Enabled: true
1732
+
1724
1733
  Style/SuperWithArgsParentheses:
1725
1734
  Enabled: true
1726
1735
 
@@ -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)
@@ -27,10 +27,6 @@ module Standard
27
27
  @writer.write(id: request[:id], result: Proto::Interface::InitializeResult.new(
28
28
  capabilities: Proto::Interface::ServerCapabilities.new(
29
29
  document_formatting_provider: true,
30
- diagnostic_provider: LanguageServer::Protocol::Interface::DiagnosticOptions.new(
31
- inter_file_dependencies: false,
32
- workspace_diagnostics: false
33
- ),
34
30
  text_document_sync: Proto::Interface::TextDocumentSyncOptions.new(
35
31
  change: Proto::Constant::TextDocumentSyncKind::FULL,
36
32
  open_close: true
@@ -51,12 +47,6 @@ module Standard
51
47
  end
52
48
  end
53
49
 
54
- handle "textDocument/diagnostic" do |request|
55
- doc = request[:params][:textDocument]
56
- result = diagnostic(doc[:uri], doc[:text])
57
- @writer.write(result)
58
- end
59
-
60
50
  handle "textDocument/didChange" do |request|
61
51
  params = request[:params]
62
52
  result = diagnostic(params[:textDocument][:uri], params[:contentChanges][0][:text])
@@ -1,3 +1,3 @@
1
1
  module Standard
2
- VERSION = Gem::Version.new("1.33.0")
2
+ VERSION = Gem::Version.new("1.37.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.59.0"
26
+ spec.add_dependency "rubocop", "~> 1.64.0"
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.3"
30
+ spec.add_dependency "standard-performance", "~> 1.4"
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.33.0
4
+ version: 1.37.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-26 00:00:00.000000000 Z
11
+ date: 2024-06-11 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.59.0
19
+ version: 1.64.0
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.59.0
26
+ version: 1.64.0
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.3'
61
+ version: '1.4'
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.3'
68
+ version: '1.4'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: language_server-protocol
71
71
  requirement: !ruby/object:Gem::Requirement