svelte-on-rails 22.5.4 → 22.5.5

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: 1a6a1c4758093d4ee7080494a52d0a3709728dc830b7f0c261841363100ea593
4
- data.tar.gz: 18d316a0a47d9c780d3169acd3edc525f4a097864302182b1398173ffd26aba7
3
+ metadata.gz: b68077cf4a1661381ad07003c4b4bb08f837c5c7c25715e766c417aed5ef00e1
4
+ data.tar.gz: 93f86527e6be4a76d1bcbb0ecc45c9116bcb38442ad19318aca269b446c4ed68
5
5
  SHA512:
6
- metadata.gz: af06be9fb96620f83701d90eb2745dc551329f25b1fceedf55e02f42150361f4d491b0ae5fb1279639761449a08dbab73861711c6776178d294bc84343f012c9
7
- data.tar.gz: c8c362043c2872cb7b4bf8b89de643daca6accfca5d5d7937ed726f3f49dea6babe3b5501c43a9c497be5eb843b4195832b0cf1a97e3e856d9e836605a3feda6
6
+ metadata.gz: 7120ba8595db223b52a9ca2be209ea927fced27d2dfc8844cbe2dfdf962d8e4e030432dfc3d9535eb801685c35ef08dce5b357c56e8f74105ffbebd1ba1cc667
7
+ data.tar.gz: c60db572d6ab9c5407577fc6369393602a22a2f8c60905c2650385dd2b38c9f3c97cee0ca1300c98409e67af68d0af863b7797e4e1dfb76ddf3672c44e85ee01
@@ -43,7 +43,7 @@ module SvelteOnRails
43
43
  # DEFAULTS
44
44
 
45
45
  rd = @configs[:redis_cache_store] && @configs[:redis_cache_store][:namespace]
46
- @redis_namespace ||= "#{rd || app_name}:svelte-on-rails:#{Rails.env rescue 'no-env'}"
46
+ @redis_namespace ||= "#{rd || app_name}:svelte-on-rails:#{Rails.env rescue 'no-env'}:"
47
47
  @configs[:skip_ssr_header] ||= 'X-Turbo-Request-ID'
48
48
  if defined? Redis
49
49
  @redis_instance = Redis.new(url: redis_cache_store[:url])
@@ -344,10 +344,11 @@ module SvelteOnRails
344
344
  fingerprint = (@conf.watch_changes? ? @conf.fingerprint(component_paths[:path], debug?, component_paths[:name]) : '')
345
345
 
346
346
  cache_key_raw = @options.to_s +
347
- @cached_props.to_s + fingerprint + @options[:cache_key].to_s +
348
- (@cached_props.key?(:_uncached) ? "" : @html_options.to_s)
347
+ @cached_props.to_s +
348
+ fingerprint +
349
+ @html_options.to_s
349
350
 
350
- "#{@conf.redis_namespace}:#{@component_name.gsub('/','-')}:#{Digest::XXH64.hexdigest(cache_key_raw)}"
351
+ "#{@conf.redis_namespace}#{@component_name.gsub('/','-')}:#{Digest::XXH64.hexdigest(cache_key_raw)}"
351
352
  end
352
353
  end
353
354
 
@@ -13,7 +13,7 @@ namespace :svelte_on_rails do
13
13
  end
14
14
 
15
15
  if Rails.env.production? && ENV["FORCE"] != "1"
16
- print "You are about to delete all keys matching «#{namespace}:*» in PRODUCTION. Continue? (y/N) "
16
+ print "You are about to delete all keys matching «#{namespace} in PRODUCTION. Continue? (y/N) "
17
17
  answer = STDIN.gets.to_s.strip.downcase
18
18
  unless %w[y yes].include?(answer)
19
19
  puts "Aborted."
@@ -21,7 +21,7 @@ namespace :svelte_on_rails do
21
21
  end
22
22
  end
23
23
 
24
- pattern = "#{namespace}:*"
24
+ pattern = "#{namespace}*"
25
25
  cursor = "0"
26
26
  total_deleted = 0
27
27
  batches = 0
@@ -60,7 +60,7 @@ namespace :svelte_on_rails do
60
60
  next
61
61
  end
62
62
 
63
- pattern = "#{namespace}:*"
63
+ pattern = "#{namespace}*"
64
64
 
65
65
  puts "Scanning Redis for keys matching «#{pattern}» ..."
66
66
 
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: 22.5.4
4
+ version: 22.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Sedlmair