solargraph 0.53.0 → 0.53.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/CHANGELOG.md +4 -0
- data/lib/solargraph/bench.rb +1 -0
- data/lib/solargraph/doc_map.rb +4 -2
- data/lib/solargraph/rbs_map/conversions.rb +4 -4
- data/lib/solargraph/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb238e5ca67dae6ca26b2a5fb6eda261727eb6464f0c048adf1d043fb13ccacd
|
4
|
+
data.tar.gz: dfc03ca7f87fe40f79ba387b4489be60f7f155b60e2e6a3fa696637684545501
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f101995ec1f808c69afbdb8be4d865159a6b349782b97ab7d6bb96dd61fd6ec43b8b3a3d7c9c55e14ee6feab4cdd7f570c9de688ff6a8a099f927a3d972a4e0a
|
7
|
+
data.tar.gz: 82b02c423e72e482e93b314361eb7165898906c3d02221b4336af853645bc668bbbb7412298db2921b621e91c0baf294987cf0d16c2b878bb5ad3b57fd0d2f3b
|
data/CHANGELOG.md
CHANGED
data/lib/solargraph/bench.rb
CHANGED
data/lib/solargraph/doc_map.rb
CHANGED
@@ -19,8 +19,8 @@ module Solargraph
|
|
19
19
|
# @param requires [Array<String>]
|
20
20
|
# @param dependencies [Array<Gem::Specification>]
|
21
21
|
def initialize(requires, dependencies)
|
22
|
-
@requires = requires
|
23
|
-
@dependencies = dependencies
|
22
|
+
@requires = requires.compact
|
23
|
+
@dependencies = dependencies.compact
|
24
24
|
generate
|
25
25
|
end
|
26
26
|
|
@@ -105,6 +105,8 @@ module Solargraph
|
|
105
105
|
# @param path [String]
|
106
106
|
# @return [Gem::Specification, nil]
|
107
107
|
def resolve_path_to_gemspec path
|
108
|
+
return nil if path.empty?
|
109
|
+
|
108
110
|
gemspec = Gem::Specification.find_by_path(path)
|
109
111
|
if gemspec.nil?
|
110
112
|
gem_name_guess = path.split('/').first
|
@@ -173,7 +173,7 @@ module Solargraph
|
|
173
173
|
name: decl.super_class.name.relative!.to_s
|
174
174
|
)
|
175
175
|
end
|
176
|
-
add_mixins decl, class_pin
|
176
|
+
add_mixins decl, class_pin
|
177
177
|
convert_members_to_pins decl, class_pin
|
178
178
|
end
|
179
179
|
|
@@ -621,15 +621,15 @@ module Solargraph
|
|
621
621
|
end
|
622
622
|
|
623
623
|
# @param decl [RBS::AST::Declarations::Class, RBS::AST::Declarations::Module]
|
624
|
-
# @param closure [Pin::
|
624
|
+
# @param closure [Pin::Namespace]
|
625
625
|
# @return [void]
|
626
|
-
def add_mixins decl,
|
626
|
+
def add_mixins decl, namespace
|
627
627
|
decl.each_mixin do |mixin|
|
628
628
|
klass = mixin.is_a?(RBS::AST::Members::Include) ? Pin::Reference::Include : Pin::Reference::Extend
|
629
629
|
pins.push klass.new(
|
630
630
|
name: mixin.name.relative!.to_s,
|
631
631
|
location: rbs_location_to_location(mixin.location),
|
632
|
-
closure:
|
632
|
+
closure: namespace
|
633
633
|
)
|
634
634
|
end
|
635
635
|
end
|
data/lib/solargraph/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solargraph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.53.
|
4
|
+
version: 0.53.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fred Snyder
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-03-
|
11
|
+
date: 2025-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: backport
|