standard 1.39.2 → 1.40.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: 1d4af941058eb542737ef5766b38878bf776cc1d2c2f63483259a083289d6ead
4
- data.tar.gz: bb2ee384fe411f73b28a82dc71b7076c9fe5d434484d1ee2f86b71244a73724f
3
+ metadata.gz: 31361372316502ea3e10dc90985afa89b1553397bcb055f4a7514688d7bf60ad
4
+ data.tar.gz: 0d3596a473a8f2f5c2695fb5bba5938ba576606592d20b2563afe38166a34cf5
5
5
  SHA512:
6
- metadata.gz: 3660c9dbacfb529228e9a537993b8a3a7890be024dc8c4c58483d2a49c6068b0b717ee75fc2ff4b854fdd60f3dfd3c20e6591fe7dd2a556c190ad1fadc78ca18
7
- data.tar.gz: 5f52474c6dc41df0cf2df552931c73c905cd5316c68081bfc893ac15a2fe4ef6ec7db37e1883ffbff2444b9a668c625b135e0ac5ac5741de90cefceb0978af71
6
+ metadata.gz: c2a0f5ac88e9eea4a088e9dcadc1aa04c2bfd022773e29aa3454da227c5737cfe04b596cfea9e5495b2323885dd31a271dffd8fb3ec1d8788f5d2d4d0ca7540c
7
+ data.tar.gz: 304fdad7e3bd0dd02dc7c038761de591cacfbe54983b6d4e2be52fd871a6c2ead92d75dbb9de791d2dacc11fe1a132b2b5a0e87745761eb4bf0b248885256ec0
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 1.40.1
6
+
7
+ * Fix error handling in LSP Server 84ee9f4
8
+
9
+ ## 1.40.0
10
+
11
+ * Updates rubocop to [1.65.1](https://github.com/rubocop/rubocop/releases/tag/v1.65.1)
12
+
5
13
  ## 1.39.2
6
14
 
7
15
  * Ensure a URI scheme on file paths from the built-in LSP [#642](https://github.com/standardrb/standard/pull/642).
data/Gemfile.lock CHANGED
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (1.39.2)
4
+ standard (1.40.1)
5
5
  language_server-protocol (~> 3.17.0.2)
6
6
  lint_roller (~> 1.0)
7
- rubocop (~> 1.64.0)
7
+ rubocop (~> 1.65.0)
8
8
  standard-custom (~> 1.0.0)
9
9
  standard-performance (~> 1.4)
10
10
 
@@ -16,6 +16,7 @@ GEM
16
16
  json (2.6.3)
17
17
  language_server-protocol (3.17.0.3)
18
18
  lint_roller (1.1.0)
19
+ logger (1.6.0)
19
20
  m (1.6.2)
20
21
  method_source (>= 0.6.7)
21
22
  rake (>= 0.9.2.2)
@@ -26,19 +27,21 @@ GEM
26
27
  parser (3.3.0.5)
27
28
  ast (~> 2.4.1)
28
29
  racc
29
- prism (0.27.0)
30
+ prism (0.30.0)
30
31
  racc (1.7.1)
31
32
  rainbow (3.1.1)
32
33
  rake (13.0.6)
34
+ rbs (3.5.2)
35
+ logger
33
36
  regexp_parser (2.8.2)
34
37
  rexml (3.2.6)
35
- rubocop (1.64.1)
38
+ rubocop (1.65.1)
36
39
  json (~> 2.3)
37
40
  language_server-protocol (>= 3.17.0)
38
41
  parallel (~> 1.10)
39
42
  parser (>= 3.3.0.2)
40
43
  rainbow (>= 2.2.2, < 4.0)
41
- regexp_parser (>= 1.8, < 3.0)
44
+ regexp_parser (>= 2.4, < 3.0)
42
45
  rexml (>= 3.2.5, < 4.0)
43
46
  rubocop-ast (>= 1.31.1, < 2.0)
44
47
  ruby-progressbar (~> 1.7)
@@ -48,9 +51,10 @@ GEM
48
51
  rubocop-performance (1.21.0)
49
52
  rubocop (>= 1.48.1, < 2.0)
50
53
  rubocop-ast (>= 1.31.1, < 2.0)
51
- ruby-lsp (0.16.6)
54
+ ruby-lsp (0.17.7)
52
55
  language_server-protocol (~> 3.17.0)
53
- prism (>= 0.23.0, < 0.28)
56
+ prism (>= 0.29.0, < 0.31)
57
+ rbs (>= 3, < 4)
54
58
  sorbet-runtime (>= 0.5.10782)
55
59
  ruby-progressbar (1.13.0)
56
60
  simplecov (0.22.0)
@@ -59,7 +63,7 @@ GEM
59
63
  simplecov_json_formatter (~> 0.1)
60
64
  simplecov-html (0.12.3)
61
65
  simplecov_json_formatter (0.1.4)
62
- sorbet-runtime (0.5.11385)
66
+ sorbet-runtime (0.5.11481)
63
67
  standard-custom (1.0.2)
64
68
  lint_roller (~> 1.0)
65
69
  rubocop (~> 1.50)
data/README.md CHANGED
@@ -509,6 +509,7 @@ Here are a few examples of Ruby Standard-compliant teams & projects:
509
509
  * [Planet Argon](https://www.planetargon.com/)
510
510
  * [PLT4M](https://plt4m.com/)
511
511
  * [Podia](https://www.podia.com/)
512
+ * [Privy](https://www.privy.com/)
512
513
  * [Rebase Interactive](https://www.rebaseinteractive.com/)
513
514
  * [Renuo](https://www.renuo.ch/)
514
515
  * [RubyCI](https://ruby.ci)
data/config/base.yml CHANGED
@@ -27,6 +27,9 @@ Bundler/InsecureProtocolSource:
27
27
  Bundler/OrderedGems:
28
28
  Enabled: false
29
29
 
30
+ Gemspec/AddRuntimeDependency:
31
+ Enabled: false
32
+
30
33
  Gemspec/DependencyVersion:
31
34
  Enabled: false
32
35
 
@@ -42,11 +42,19 @@ module Standard
42
42
 
43
43
  raise Interrupt if aborting?
44
44
  rescue ::RuboCop::Runner::InfiniteCorrectionLoop => error
45
- raise RubyLsp::Requests::Formatting::Erro, error.message
45
+ if defined?(::RubyLsp::Requests::Formatting::Error)
46
+ raise ::RubyLsp::Requests::Formatting::Error, error.message
47
+ else
48
+ raise error
49
+ end
46
50
  rescue ::RuboCop::ValidationError => error
47
51
  raise ConfigurationError, error.message
48
52
  rescue => error
49
- raise ::RubyLsp::Requests::Support::InternalRuboCopError, error
53
+ if defined?(::RubyLsp::Requests::Formatting::Error)
54
+ raise ::RubyLsp::Requests::Support::InternalRuboCopError, error
55
+ else
56
+ raise error
57
+ end
50
58
  end
51
59
 
52
60
  def formatted_source
@@ -1,3 +1,3 @@
1
1
  module Standard
2
- VERSION = Gem::Version.new("1.39.2")
2
+ VERSION = Gem::Version.new("1.40.1")
3
3
  end
data/standard.gemspec CHANGED
@@ -23,7 +23,7 @@ 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.64.0"
26
+ spec.add_dependency "rubocop", "~> 1.65.0"
27
27
 
28
28
  spec.add_dependency "lint_roller", "~> 1.0"
29
29
  spec.add_dependency "standard-custom", "~> 1.0.0"
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.39.2
4
+ version: 1.40.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-16 00:00:00.000000000 Z
11
+ date: 2024-10-03 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.64.0
19
+ version: 1.65.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.64.0
26
+ version: 1.65.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: lint_roller
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -188,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
188
  - !ruby/object:Gem::Version
189
189
  version: '0'
190
190
  requirements: []
191
- rubygems_version: 3.5.14
191
+ rubygems_version: 3.5.11
192
192
  signing_key:
193
193
  specification_version: 4
194
194
  summary: Ruby Style Guide, with linter & automatic code fixer