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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 641af662aeb7df4487d90ec7ffe3c1f26b7f8a936700a3b8dc5ec77d38eb65ba
4
- data.tar.gz: 52d1989ad1288d0e3a0d0d478cdd9a79cb0ff33a3ddf25e2757a80e6822be7d3
3
+ metadata.gz: d62c9c6613e15fb174468c31e4e1ceff8b23ea409ed2acf7f447bbff159f9245
4
+ data.tar.gz: f3695787be337b22fd9bb17aa1adb52f8d4aa3b977d18876f109f43dcfd4beca
5
5
  SHA512:
6
- metadata.gz: f3b5ab9bad1cd657d5f79f0ef467435f6840ee720cf5b7b332e42fed3b050170521fcd0bbc590f72d0d865fb8f73daa2b0d16b16e11e61d8e2416f1963b51f83
7
- data.tar.gz: d9f1be241d9ab18e8cfb44c62b52b09634a598bb02420dcf55a2f0de6cb8185a4aa05d41cc5d9011a5fcdbe268cf8c1178ff8d24c42b8c52abcd7d2ce225a6d4
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
 
@@ -3,6 +3,6 @@
3
3
 
4
4
  module RubyLsp
5
5
  module Rails
6
- VERSION = "0.2.0"
6
+ VERSION = "0.2.1"
7
7
  end
8
8
  end
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.0
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-06-30 00:00:00.000000000 Z
11
+ date: 2023-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails