standard 1.40.1 → 1.41.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: 31361372316502ea3e10dc90985afa89b1553397bcb055f4a7514688d7bf60ad
4
- data.tar.gz: 0d3596a473a8f2f5c2695fb5bba5938ba576606592d20b2563afe38166a34cf5
3
+ metadata.gz: 518f3cd8128adcdb51904e331444965466ab87f3cdceb6c8e48cbcc406d67844
4
+ data.tar.gz: 9ca1ba65a3220da9690f86efdbf980646b94dbce5c601f77854bbf5c4135bd72
5
5
  SHA512:
6
- metadata.gz: c2a0f5ac88e9eea4a088e9dcadc1aa04c2bfd022773e29aa3454da227c5737cfe04b596cfea9e5495b2323885dd31a271dffd8fb3ec1d8788f5d2d4d0ca7540c
7
- data.tar.gz: 304fdad7e3bd0dd02dc7c038761de591cacfbe54983b6d4e2be52fd871a6c2ead92d75dbb9de791d2dacc11fe1a132b2b5a0e87745761eb4bf0b248885256ec0
6
+ metadata.gz: 2112c97536d431ef5e9b45979878e3b63ee55e08c1d8b1016d248737adef1212bbac79ebd20ed11b089dd4554e8db9128b039b585dffd070c3e82160c587489d
7
+ data.tar.gz: d1028b2d67144598f17aaec23cd9f71262e75a757f441c7216da9b735effbc6ef2e3401a24698c4b1a6696833f9c92cea5265ee8af2a009af538bda83a4bd977
data/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 1.41.1
6
+
7
+ * Adds a stub method to the Ruby LSP add-on to avoid a potential runtime exception
8
+ for range formatting requests [#655](https://github.com/standardrb/standard/pull/655)
9
+
10
+ ## 1.41.0
11
+
12
+ * Updates rubocop to [1.66.1](https://github.com/rubocop/rubocop/releases/tag/v1.66.1)
13
+ * Updates standard-performance to [1.5.0](https://github.com/standardrb/standard-performance/releases/tag/v1.5.0)
14
+
5
15
  ## 1.40.1
6
16
 
7
17
  * Fix error handling in LSP Server 84ee9f4
data/Gemfile.lock CHANGED
@@ -1,12 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (1.40.1)
4
+ standard (1.41.1)
5
5
  language_server-protocol (~> 3.17.0.2)
6
6
  lint_roller (~> 1.0)
7
- rubocop (~> 1.65.0)
7
+ rubocop (~> 1.66.0)
8
8
  standard-custom (~> 1.0.0)
9
- standard-performance (~> 1.4)
9
+ standard-performance (~> 1.5)
10
10
 
11
11
  GEM
12
12
  remote: https://rubygems.org/
@@ -24,7 +24,7 @@ GEM
24
24
  minitest (5.20.0)
25
25
  mutex_m (0.2.0)
26
26
  parallel (1.23.0)
27
- parser (3.3.0.5)
27
+ parser (3.3.5.0)
28
28
  ast (~> 2.4.1)
29
29
  racc
30
30
  prism (0.30.0)
@@ -34,21 +34,19 @@ GEM
34
34
  rbs (3.5.2)
35
35
  logger
36
36
  regexp_parser (2.8.2)
37
- rexml (3.2.6)
38
- rubocop (1.65.1)
37
+ rubocop (1.66.1)
39
38
  json (~> 2.3)
40
39
  language_server-protocol (>= 3.17.0)
41
40
  parallel (~> 1.10)
42
41
  parser (>= 3.3.0.2)
43
42
  rainbow (>= 2.2.2, < 4.0)
44
43
  regexp_parser (>= 2.4, < 3.0)
45
- rexml (>= 3.2.5, < 4.0)
46
- rubocop-ast (>= 1.31.1, < 2.0)
44
+ rubocop-ast (>= 1.32.2, < 2.0)
47
45
  ruby-progressbar (~> 1.7)
48
46
  unicode-display_width (>= 2.4.0, < 3.0)
49
- rubocop-ast (1.31.2)
50
- parser (>= 3.3.0.4)
51
- rubocop-performance (1.21.0)
47
+ rubocop-ast (1.32.3)
48
+ parser (>= 3.3.1.0)
49
+ rubocop-performance (1.22.1)
52
50
  rubocop (>= 1.48.1, < 2.0)
53
51
  rubocop-ast (>= 1.31.1, < 2.0)
54
52
  ruby-lsp (0.17.7)
@@ -67,9 +65,9 @@ GEM
67
65
  standard-custom (1.0.2)
68
66
  lint_roller (~> 1.0)
69
67
  rubocop (~> 1.50)
70
- standard-performance (1.4.0)
68
+ standard-performance (1.5.0)
71
69
  lint_roller (~> 1.1)
72
- rubocop-performance (~> 1.21.0)
70
+ rubocop-performance (~> 1.22.0)
73
71
  unicode-display_width (2.5.0)
74
72
 
75
73
  PLATFORMS
data/config/base.yml CHANGED
@@ -837,6 +837,9 @@ Lint/UselessElseWithoutRescue:
837
837
  Lint/UselessMethodDefinition:
838
838
  Enabled: false
839
839
 
840
+ Lint/UselessNumericOperation:
841
+ Enabled: false
842
+
840
843
  Lint/UselessRescue:
841
844
  Enabled: true
842
845
 
@@ -1577,6 +1580,9 @@ Style/RedundantInitialize:
1577
1580
  Style/RedundantInterpolation:
1578
1581
  Enabled: true
1579
1582
 
1583
+ Style/RedundantInterpolationUnfreeze:
1584
+ Enabled: true
1585
+
1580
1586
  Style/RedundantLineContinuation:
1581
1587
  Enabled: true
1582
1588
 
data/config/ruby-2.7.yml CHANGED
@@ -5,3 +5,6 @@ AllCops:
5
5
 
6
6
  Style/HashExcept:
7
7
  Enabled: false
8
+
9
+ Style/RedundantInterpolationUnfreeze:
10
+ Enabled: false
@@ -20,6 +20,13 @@ module RubyLsp
20
20
  @standardizer.offenses(uri_to_path(uri), document.source, document.encoding)
21
21
  end
22
22
 
23
+ def run_range_formatting(_uri, _partial_source, _base_indentation)
24
+ # Not yet supported. Should return the formatted version of `partial_source` which is a partial selection of the
25
+ # entire document. For example, it should not try to add a frozen_string_literal magic comment and all style
26
+ # corrections should start from the `base_indentation`
27
+ nil
28
+ end
29
+
23
30
  private
24
31
 
25
32
  # duplicated from: lib/standard/lsp/routes.rb
@@ -1,3 +1,3 @@
1
1
  module Standard
2
- VERSION = Gem::Version.new("1.40.1")
2
+ VERSION = Gem::Version.new("1.41.1")
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.65.0"
26
+ spec.add_dependency "rubocop", "~> 1.66.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.4"
30
+ spec.add_dependency "standard-performance", "~> 1.5"
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.40.1
4
+ version: 1.41.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-10-03 00:00:00.000000000 Z
11
+ date: 2024-10-17 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.65.0
19
+ version: 1.66.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.65.0
26
+ version: 1.66.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.4'
61
+ version: '1.5'
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.4'
68
+ version: '1.5'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: language_server-protocol
71
71
  requirement: !ruby/object:Gem::Requirement