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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3eff86e8759fbaaa9526cf9cceb70827c701f3b1925d58e1575870989d60e60
4
- data.tar.gz: a60b5c8e9598afdca808c94fa68e2551d17f970b812ca64c3f00d530d0498fff
3
+ metadata.gz: 073de886e2394ba8a464555403cca26739b051fe0f4bd3b65eb46e9cab6b0fb4
4
+ data.tar.gz: d6b5a79ae2127dae156a63759f0bba81d333b7bcc6b96b8de451e79f2a173829
5
5
  SHA512:
6
- metadata.gz: 201861185888f275b0c7690887cca60a76d0bb90955c514ba4336e23f2adb9907d305f5e930b08f03c3c388d81bfd40996cd54c0f854035aab5a60703c40f954
7
- data.tar.gz: b37cc2ed827560a2365b77af0921c0240498dcb287e1a1ba064f0879a748c2d365f0e61cec610233b11521206ab402e83aebbdec5c897a21eb3e9f7313fba602
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)
@@ -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
- super_and_sub?(pin.namespace, closure.name)
150
+ get_complex_type_methods(closure.return_type).include?(pin)
150
151
  end
151
152
  if match
152
153
  match.macros.each do |macro|
@@ -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 == other.closure || (closure && closure.nearly?(other.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
@@ -4,10 +4,10 @@ require 'benchmark'
4
4
  require 'thor'
5
5
  require 'yard'
6
6
  require 'yaml'
7
+ require 'pathname'
7
8
  require 'sord'
8
9
  require 'tmpdir'
9
10
 
10
-
11
11
  module Solargraph
12
12
  class Shell < Thor
13
13
  include Solargraph::ServerMethods
@@ -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.0')
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solargraph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.60.0
4
+ version: 0.60.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fred Snyder