solargraph 0.58.0 → 0.58.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitattributes +2 -0
- data/CHANGELOG.md +3 -0
- data/bin/solargraph +8 -8
- data/lib/solargraph/source/encoding_fixes.rb +23 -23
- data/lib/solargraph/version.rb +5 -5
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 31aee8c6c10b4c153a7cdd4da7c5d94748b702234df69302dc642d5956b87320
|
|
4
|
+
data.tar.gz: 9579e90add3bb40c8a0c348a2111f6b4626f6bf7a5fd11a4d5d35aa4fa8d98b5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: feb5d83ea7f7143805119c52e77c6109f454a3b46485b2a574a2a53c2bd726b040310f6bc5a874044798f5ac40b8dd015b38d67204d2b9343f601a0e74385154
|
|
7
|
+
data.tar.gz: '09a728082ed231fd8dd93c8ba2c1480727e75c91ac92c11ef752e3a228729c357f9c7b9d4a9536ff0a1c92278a1c2904a86964206c7fc0293cd82226693c165d'
|
data/.gitattributes
ADDED
data/CHANGELOG.md
CHANGED
data/bin/solargraph
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
# turn off warning diagnostics from Ruby
|
|
4
|
-
$VERBOSE=nil
|
|
5
|
-
|
|
6
|
-
require 'solargraph'
|
|
7
|
-
|
|
8
|
-
Solargraph::Shell.start(ARGV)
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
# turn off warning diagnostics from Ruby
|
|
4
|
+
$VERBOSE=nil
|
|
5
|
+
|
|
6
|
+
require 'solargraph'
|
|
7
|
+
|
|
8
|
+
Solargraph::Shell.start(ARGV)
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Solargraph
|
|
4
|
-
class Source
|
|
5
|
-
module EncodingFixes
|
|
6
|
-
module_function
|
|
7
|
-
|
|
8
|
-
# Convert strings to normalized UTF-8.
|
|
9
|
-
#
|
|
10
|
-
# @param string [String]
|
|
11
|
-
# @return [String]
|
|
12
|
-
def normalize string
|
|
13
|
-
begin
|
|
14
|
-
string.dup.force_encoding('UTF-8')
|
|
15
|
-
rescue ::Encoding::CompatibilityError, ::Encoding::UndefinedConversionError, ::Encoding::InvalidByteSequenceError => e
|
|
16
|
-
# @todo Improve error handling
|
|
17
|
-
Solargraph::Logging.logger.warn "Normalize error: #{e.message}"
|
|
18
|
-
string
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Solargraph
|
|
4
|
+
class Source
|
|
5
|
+
module EncodingFixes
|
|
6
|
+
module_function
|
|
7
|
+
|
|
8
|
+
# Convert strings to normalized UTF-8.
|
|
9
|
+
#
|
|
10
|
+
# @param string [String]
|
|
11
|
+
# @return [String]
|
|
12
|
+
def normalize string
|
|
13
|
+
begin
|
|
14
|
+
string.dup.force_encoding('UTF-8')
|
|
15
|
+
rescue ::Encoding::CompatibilityError, ::Encoding::UndefinedConversionError, ::Encoding::InvalidByteSequenceError => e
|
|
16
|
+
# @todo Improve error handling
|
|
17
|
+
Solargraph::Logging.logger.warn "Normalize error: #{e.message}"
|
|
18
|
+
string
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
data/lib/solargraph/version.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Solargraph
|
|
4
|
-
VERSION = '0.58.
|
|
5
|
-
end
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Solargraph
|
|
4
|
+
VERSION = '0.58.1'
|
|
5
|
+
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: solargraph
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.58.
|
|
4
|
+
version: 0.58.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Fred Snyder
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-01-
|
|
10
|
+
date: 2026-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: ast
|
|
@@ -538,6 +538,7 @@ executables:
|
|
|
538
538
|
extensions: []
|
|
539
539
|
extra_rdoc_files: []
|
|
540
540
|
files:
|
|
541
|
+
- ".gitattributes"
|
|
541
542
|
- ".github/FUNDING.yml"
|
|
542
543
|
- ".github/workflows/linting.yml"
|
|
543
544
|
- ".github/workflows/plugins.yml"
|