ruby-lsp-rails 0.3.30 → 0.3.31

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49634ac9d3fa4dd22f14f87ba41520ac0edbdee999157a46b354c1c6da36b855
4
- data.tar.gz: 462413c2420e98671bee2aaadd5bb843e6b209a011fd375f6ef59f871cbb75d1
3
+ metadata.gz: b1d9f0d516dcad6d833e05e05defd6ba7ea0bbb3fb2b0c48e7edb9709306d854
4
+ data.tar.gz: 41b2f9dec0e1ba1d3d4d92a5eb1b4ad5dfd6b6d8c3e62b69822ac156f3232bfd
5
5
  SHA512:
6
- metadata.gz: 83f71eb4c8622c3652b561e0c5f4a4d3fa9de34b853e6fa5877435256b12b580c08a10ff8b1593d0224c48c0f9fec2ea633e4bdc9d6c2ae45cb292f6e681f67b
7
- data.tar.gz: f4c7425425794e1e1b2cd3a24a5283397b702837a6383a2a617f3cffe97495b5afae44c0a96f6806ad17452c67bf6b2bd8aed84c23d6cab0b596f52ef3ee6fc7
6
+ metadata.gz: f4421fb81f4cffaa89abe05244ec8bcc2da8ffa0e27b5f7c310c49747d7b2e20a6eec85b58dfe77f5107bd8281ca9d2e61a5f70b2d100c5938f4a2932deedfd0
7
+ data.tar.gz: aa8476c6f72a66782d9d8b3225944c862f708cd9fc60fd17cf871d9f3332885bd0b7060cbf778710e9213686d5e24c1e415327c14a00a738e28f934dfae156c7
@@ -223,12 +223,7 @@ module RubyLsp
223
223
  id: "workspace/didChangeWatchedFilesRails",
224
224
  method: "workspace/didChangeWatchedFiles",
225
225
  register_options: Interface::DidChangeWatchedFilesRegistrationOptions.new(
226
- watchers: [
227
- Interface::FileSystemWatcher.new(
228
- glob_pattern: "**/*structure.sql",
229
- kind: Constant::WatchKind::CREATE | Constant::WatchKind::CHANGE | Constant::WatchKind::DELETE,
230
- ),
231
- ],
226
+ watchers: [structure_sql_file_watcher, fixture_file_watcher],
232
227
  ),
233
228
  ),
234
229
  ],
@@ -236,6 +231,22 @@ module RubyLsp
236
231
  )
237
232
  end
238
233
 
234
+ sig { returns(Interface::FileSystemWatcher) }
235
+ def structure_sql_file_watcher
236
+ Interface::FileSystemWatcher.new(
237
+ glob_pattern: "**/*structure.sql",
238
+ kind: Constant::WatchKind::CREATE | Constant::WatchKind::CHANGE | Constant::WatchKind::DELETE,
239
+ )
240
+ end
241
+
242
+ sig { returns(Interface::FileSystemWatcher) }
243
+ def fixture_file_watcher
244
+ Interface::FileSystemWatcher.new(
245
+ glob_pattern: "**/fixtures/**/*.{yml,yaml,yml.erb,yaml.erb}",
246
+ kind: Constant::WatchKind::CREATE | Constant::WatchKind::CHANGE | Constant::WatchKind::DELETE,
247
+ )
248
+ end
249
+
239
250
  sig { void }
240
251
  def offer_to_run_pending_migrations
241
252
  return unless @outgoing_queue
@@ -3,6 +3,6 @@
3
3
 
4
4
  module RubyLsp
5
5
  module Rails
6
- VERSION = "0.3.30"
6
+ VERSION = "0.3.31"
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-lsp-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.30
4
+ version: 0.3.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-16 00:00:00.000000000 Z
10
+ date: 2025-01-23 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: ruby-lsp