svelte-on-rails 0.0.10 → 0.0.12

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: 91e3a5e36988fe3fd9aa4cbf83c5dd475dae2919dc788afd3e1c3ba399690490
4
- data.tar.gz: d9d60ad9b06e29bd1b744575f80bcd2ea9edbe60cc4a1badc6e8178867ff8b36
3
+ metadata.gz: 202f1fbacaa78ff38947e7665f87e21a904f6cb25fdab0e2c3280f8cd8d47c8c
4
+ data.tar.gz: 18024b88f324f8e6a2e95832b6bec156154ff00692ad849952dc5739d6875634
5
5
  SHA512:
6
- metadata.gz: 8e8fa476b10eed4dd4ef9772c60b8e66bdf87fd7627458d9ba301520be94ad7ff96de9ac72ac6cbf85312473cfec42138e94e10110a7647b5a2e412bf460bb2e
7
- data.tar.gz: 4539559ff01e47a4138f91cc7258846aa31ca4353b643a8c06dd5995e6cad991f597f2ec2a92fb48a0e4fcfff86191fdebd05354ae1d21fc6d26fc931a471ed3
6
+ metadata.gz: dc2bd126266183b839b66a9f42febc0f72b1a75f9d104b3b00cd8f15d80aa92345aa47060444cca49190fd9d6317517560e2d648d5680f6f732aee1ecafe950a
7
+ data.tar.gz: 405093ef539c984afe97a78dca95e70c43c920da0cce9b01c12e1c5e3a75bb91139a74cb8fb6df9384d506eeecb36a510cda8014a2fca700d1a06d487ab3805e
@@ -121,8 +121,11 @@ module SvelteOnRails
121
121
  end
122
122
 
123
123
  def self.file_exist_case_sensitive?(containing_dir, filename)
124
- # because some filesystems are case insensitive we test case sensitive
125
- Dir[File.join(containing_dir, "*")].select {|f| File.basename(f) == filename}.any?
124
+ # Combine the directory path and filename
125
+ full_path = File.join(containing_dir, filename)
126
+
127
+ # Check if the file exists and the path matches case-sensitively
128
+ File.exist?(full_path) && Dir[File.join(containing_dir, "*")].any? { |f| f == full_path }
126
129
  end
127
130
 
128
131
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svelte-on-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Sedlmair