ruby-lsp-rails 0.2.0 → 0.2.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/lib/ruby_lsp/ruby_lsp_rails/code_lens.rb +6 -0
- data/lib/ruby_lsp_rails/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: d62c9c6613e15fb174468c31e4e1ceff8b23ea409ed2acf7f447bbff159f9245
|
|
4
|
+
data.tar.gz: f3695787be337b22fd9bb17aa1adb52f8d4aa3b977d18876f109f43dcfd4beca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 660c5ea840b66c2365a8b9329b6e41eb7b96580e8f1b6ceb243776f78c02e8891693093406a88a3e5058dd6d01e04556dc7311feb25c874590eef1cc4b528a9e
|
|
7
|
+
data.tar.gz: 9ce1311a2ef289a20f5c911fb52064855519566859490f60df77eb0fb6c74783059e95736ad2c9b9de2b1b46bc43d9b4c15dae0c0478cdbc663133bf1757a8cc
|
|
@@ -61,6 +61,12 @@ module RubyLsp
|
|
|
61
61
|
first_argument = node.arguments.parts.first
|
|
62
62
|
return unless first_argument.is_a?(SyntaxTree::StringLiteral)
|
|
63
63
|
|
|
64
|
+
# The test name may be a blank string while the code is being typed
|
|
65
|
+
return if first_argument.parts.empty?
|
|
66
|
+
|
|
67
|
+
# We can't handle interpolation yet
|
|
68
|
+
return unless first_argument.parts.all? { |part| part.is_a?(SyntaxTree::TStringContent) }
|
|
69
|
+
|
|
64
70
|
test_name = first_argument.parts.first.value
|
|
65
71
|
return unless test_name
|
|
66
72
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-lsp-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shopify
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-07-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|