solargraph 0.60.0 → 0.60.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 +5 -0
- data/lib/solargraph/api_map.rb +2 -1
- data/lib/solargraph/pin/base.rb +1 -1
- data/lib/solargraph/shell.rb +1 -1
- data/lib/solargraph/version.rb +1 -19
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 073de886e2394ba8a464555403cca26739b051fe0f4bd3b65eb46e9cab6b0fb4
|
|
4
|
+
data.tar.gz: d6b5a79ae2127dae156a63759f0bba81d333b7bcc6b96b8de451e79f2a173829
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a43dc1c04024b7f18919cc99497ce6c658cf80b9c98c2b48066f5609228e1949da3114ca3dcd41c47f1360a690ca0440c063aa1b3b229cb55d51e3367772861c
|
|
7
|
+
data.tar.gz: 551a79dfdb3007fd97063e65dac75dd68fbddee9b121005fb9de4e68e3870300fc1a1b7ba716c3787d593a140b50a08a81fb43e886a3d07bfd4be8493e70d937
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
## 0.60.1 - June 20, 2026
|
|
2
|
+
- Process macro directives from included and extended modules (#1210)
|
|
3
|
+
- Flaky pathname issue (#1211)
|
|
4
|
+
- Check object equality in Pin::Base#nearly? (#1213)
|
|
5
|
+
|
|
1
6
|
## 0.60.0 - June 15, 2026
|
|
2
7
|
- Add YARD macro support for DSL methods (#1187)
|
|
3
8
|
- YARD macros - More typecheck fixes (#1188)
|
data/lib/solargraph/api_map.rb
CHANGED
|
@@ -140,13 +140,14 @@ module Solargraph
|
|
|
140
140
|
Solargraph.logger.debug { "ApiMap#process_macros: named macros: #{store.named_macros.keys.join(', ')}" }
|
|
141
141
|
source_maps.each do |source_map|
|
|
142
142
|
method_candidates = source_map.macro_method_candidates(store.macro_method_names)
|
|
143
|
+
Solargraph.logger.warn "Candidates: #{method_candidates}"
|
|
143
144
|
Solargraph.logger.debug { "ApiMap#process_macros: processing source map for #{source_map.filename} with #{method_candidates.size} macro method candidates" }
|
|
144
145
|
method_candidates.each do |node|
|
|
145
146
|
closure = source_map.locate_closure_pin(node.location.line, node.location.column)
|
|
146
147
|
chain = Solargraph::Parser::ParserGem::NodeChainer.chain(node)
|
|
147
148
|
if node.children[0].nil? && store.macro_method_name_pins.key?(node.children[1].to_s)
|
|
148
149
|
match = store.macro_method_name_pins[node.children[1].to_s].find do |pin|
|
|
149
|
-
|
|
150
|
+
get_complex_type_methods(closure.return_type).include?(pin)
|
|
150
151
|
end
|
|
151
152
|
if match
|
|
152
153
|
match.macros.each do |macro|
|
data/lib/solargraph/pin/base.rb
CHANGED
|
@@ -491,7 +491,7 @@ module Solargraph
|
|
|
491
491
|
# @sg-ignore Translate to something flow sensitive typing understands
|
|
492
492
|
name == other.name &&
|
|
493
493
|
# @sg-ignore flow sensitive typing needs to handle attrs
|
|
494
|
-
(closure
|
|
494
|
+
(closure.equal?(other.closure) || (closure&.nearly?(other.closure))) &&
|
|
495
495
|
# @sg-ignore Translate to something flow sensitive typing understands
|
|
496
496
|
(comments == other.comments ||
|
|
497
497
|
# @sg-ignore Translate to something flow sensitive typing understands
|
data/lib/solargraph/shell.rb
CHANGED
data/lib/solargraph/version.rb
CHANGED
|
@@ -1,23 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module Solargraph
|
|
4
|
-
VERSION = ENV.fetch('SOLARGRAPH_FORCE_VERSION', '0.60.
|
|
5
|
-
end
|
|
6
|
-
|
|
7
|
-
# @generic T
|
|
8
|
-
class A
|
|
9
|
-
# @yieldparam param0 [generic<T>]
|
|
10
|
-
def foo
|
|
11
|
-
end
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
class B < A # [Integer]
|
|
15
|
-
def bar
|
|
16
|
-
foo { |param0| }
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
b = B.new
|
|
21
|
-
b.foo do |arg|
|
|
22
|
-
arg #=> Integer
|
|
4
|
+
VERSION = ENV.fetch('SOLARGRAPH_FORCE_VERSION', '0.60.1')
|
|
23
5
|
end
|