standard 1.40.0 → 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: 11a5e687261fb830d043558db4065c4533725a5997b1b70b3ba2b7656410fc2b
4
- data.tar.gz: 1a38f3258931be3002752d726bcae77caf6e6dedb92b7e758cf65052b6db0464
3
+ metadata.gz: 31361372316502ea3e10dc90985afa89b1553397bcb055f4a7514688d7bf60ad
4
+ data.tar.gz: 0d3596a473a8f2f5c2695fb5bba5938ba576606592d20b2563afe38166a34cf5
5
5
  SHA512:
6
- metadata.gz: 399225a5d25d05fbef38bc7008801a680c48fc89c139820010ddd0ceffdc39008a1ec405dfe0ad414a43032d1c2227a0fb487618ce0f67bffe28cffa3afe35f5
7
- data.tar.gz: feedd6180c2d564c3e0126e7f6f83731f8b029421030b7263f810e531b26943d5deec44247a8a6b136d3881b38c853762838e79742899ce091b1bf787201d893
6
+ metadata.gz: c2a0f5ac88e9eea4a088e9dcadc1aa04c2bfd022773e29aa3454da227c5737cfe04b596cfea9e5495b2323885dd31a271dffd8fb3ec1d8788f5d2d4d0ca7540c
7
+ data.tar.gz: 304fdad7e3bd0dd02dc7c038761de591cacfbe54983b6d4e2be52fd871a6c2ead92d75dbb9de791d2dacc11fe1a132b2b5a0e87745761eb4bf0b248885256ec0
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 1.40.1
6
+
7
+ * Fix error handling in LSP Server 84ee9f4
8
+
5
9
  ## 1.40.0
6
10
 
7
11
  * Updates rubocop to [1.65.1](https://github.com/rubocop/rubocop/releases/tag/v1.65.1)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (1.40.0)
4
+ standard (1.40.1)
5
5
  language_server-protocol (~> 3.17.0.2)
6
6
  lint_roller (~> 1.0)
7
7
  rubocop (~> 1.65.0)
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)
@@ -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.40.0")
2
+ VERSION = Gem::Version.new("1.40.1")
3
3
  end
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.40.0
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-08-13 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
@@ -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.4.10
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