ruby-lsp-cell 0.1.0 → 0.1.2

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: ef542283838f0b02db357300bd9eb16dbd29df6473451799350e7a9000464efc
4
- data.tar.gz: 6502422f819758a0f20ce099d93c172f5508d9d115219b3696cb8bf59fe28785
3
+ metadata.gz: d26cf866d9c38fe88db134b7da05d7c883aa8cab0907b064042ef41a01dce7c7
4
+ data.tar.gz: d91237300c2695320827a43142dcb84d3392d66486fa72a6f7df16750f490743
5
5
  SHA512:
6
- metadata.gz: b7a02eb7ecd15d9894347674c1be575ef4d16e4de5cf54703981df112bb1f8a78ad06e26b2a51f76bb1d3aa0473948aac6df4ed740d31ed1b64fe1171813e1be
7
- data.tar.gz: 7885de047e0c9c287ec04fddfe69e26da9b1023a0666c480a2c89b2bc9cc9be91b6f9fc5ac848cdfdd07ee381500164714af26ab333d0d7fcbeac2791ae5864e
6
+ metadata.gz: 3d0b35cd0593bcdc3c71cb18c19c7ffd8202763ce75a26389c1538e6f5ab4650e8996c69efcd8a16dd6e31e3d9c1b7013d869759b1a0bd922fec4f71a384f2be
7
+ data.tar.gz: 46d0d9e866cdc4a8a0a75f6b930a31d40861616f5f2212069937cfdd4ba3a7077fe542b2b398f0dca1f6b5b9aa9d1a2a113c4bb5eeda349f03f3b86dc679f1dc
data/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ ## [0.1.1] - 2025-06-09
2
+ - Add compatibility with Ruby LSP 0.24.1
3
+
4
+ ## [0.1.0] - 2025-06-03
5
+ - Add compatibility with Ruby LSP 0.23.15
6
+ - Start of the main project
7
+
8
+ ## [0.0.1] - 2024-06-22
9
+ - Add compatibility with Ruby LSP 0.17.17
@@ -3,6 +3,6 @@
3
3
 
4
4
  module RubyLsp
5
5
  module Cell
6
- VERSION = "0.1.0"
6
+ VERSION = "0.1.2"
7
7
  end
8
8
  end
@@ -7,7 +7,7 @@ require "ruby_lsp/internal"
7
7
  require_relative "code_lens"
8
8
  require_relative "../cell/version"
9
9
 
10
- RubyLsp::Addon.depend_on_ruby_lsp!("~> 0.23.0")
10
+ RubyLsp::Addon.depend_on_ruby_lsp!("~> 0.24.0")
11
11
 
12
12
  module RubyLsp
13
13
  module Cell
@@ -40,6 +40,7 @@ module RubyLsp
40
40
  def on_class_node_enter(node)
41
41
  @class_name = node.constant_path.slice
42
42
  return unless @class_name.end_with?("Cell")
43
+ return unless @global_state.index.linearized_ancestors_of(@class_name).include?("Cell::ViewModel")
43
44
 
44
45
  add_default_goto_code_lens(node)
45
46
  end
@@ -53,6 +54,7 @@ module RubyLsp
53
54
  def on_def_node_leave(node)
54
55
  return unless @class_name.end_with?("Cell")
55
56
  return unless contains_render_call?(node.body)
57
+ return unless @global_state.index.linearized_ancestors_of(@class_name).include?("Cell::ViewModel")
56
58
 
57
59
  add_function_goto_code_lens(node, node.name.to_s)
58
60
  end
@@ -0,0 +1,8 @@
1
+ # typed: false
2
+ # frozen_string_literal: true
3
+
4
+ raise "Do not load this file!" unless defined?(RubyIndexer)
5
+
6
+ module Cell
7
+ class ViewModel; end
8
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-lsp-cell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edgar Guzmán
@@ -20,6 +20,7 @@ files:
20
20
  - ".rubocop.yml"
21
21
  - ".ruby-version"
22
22
  - ".vscode/settings.json"
23
+ - CHANGELOG.md
23
24
  - LICENSE.txt
24
25
  - README.md
25
26
  - Rakefile
@@ -28,6 +29,7 @@ files:
28
29
  - lib/ruby_lsp/ruby-lsp-cell/addon.rb
29
30
  - lib/ruby_lsp/ruby-lsp-cell/code_lens.rb
30
31
  - ruby-lsp-cell.gemspec
32
+ - tools/cell_fake.rb
31
33
  homepage: https://github.com/guzmanem/ruby-lsp-cell
32
34
  licenses:
33
35
  - MIT