proscenium 0.22.1-aarch64-linux → 0.22.2-aarch64-linux

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: 997c56ce828fab6aac189965bd10b4ffa51da5260f5060732d6898a7531ddaeb
4
- data.tar.gz: 32c4b7f22f812b790aa8d62700d2c9ddda2d856333c0747bfcb174b925f374fb
3
+ metadata.gz: 80674235b91e1592c6090faa96087a6955c626112dfd9934bb81dad1c87bff8c
4
+ data.tar.gz: c3504f8e728b439447ee52dd352af2607e4f74dee745572b5a2a8865765a0223
5
5
  SHA512:
6
- metadata.gz: 8827a75a45194763516cf436e105fd136f657ddbfd2c7f743d8824dfa128be7ca8a97ba4c1df2db15ce49d67b24967be981668a55ca32e0b8dce5e3105e96412
7
- data.tar.gz: a8fb47c6524c34022beef5d46345a8698ddc8d6e3ae434cdbc6f2d75f5b35bf0bb47e5f7346b1e585ede29ed38719a155ed0539625f7a8a314c2db8ccdff5635
6
+ metadata.gz: 67242a4b8fd5bf4e942f36547c18dbd5283e76640f61ac3b92fe2f07f500a9cc9ef5a0385728f0fd42087d94a3466af2efd0e7f0363b2c0d475fc04bb02683a7
7
+ data.tar.gz: ac26fdb8b6ecb1af969c3df439d0703b3bdb8b23ebd8af6618f8b3b641b1d007ea614ac615e12018cc54eb656c220a432a9ea26342a560925847a07ef496df38
Binary file
@@ -12,16 +12,26 @@ module Proscenium
12
12
  end
13
13
 
14
14
  def load!
15
+ public_path = Rails.configuration.paths['public'].first
15
16
  self.manifest = {}
16
17
  self.loaded = false
17
18
 
18
19
  if Proscenium.config.manifest_path.exist?
19
20
  self.loaded = true
20
21
 
21
- JSON.parse(Proscenium.config.manifest_path.read)['outputs'].each do |output_path, details|
22
+ JSON.parse(Proscenium.config.manifest_path.read)['outputs'].each do |outpath, details|
22
23
  next if !details.key?('entryPoint')
23
24
 
24
- manifest[details['entryPoint']] = "/#{output_path.delete_prefix('public/')}"
25
+ outpath = outpath.delete_prefix "#{public_path}/"
26
+
27
+ ep = details['entryPoint']
28
+ ep = if (gem = BundledGems.paths.find { |_, v| ep.start_with? "#{v}/" })
29
+ "@rubygems/#{gem[0]}#{ep.delete_prefix(gem[1])}"
30
+ else
31
+ ep.delete_prefix(Rails.root.to_s)
32
+ end
33
+
34
+ manifest[ep] = "/#{outpath}"
25
35
  end
26
36
  end
27
37
 
@@ -34,7 +44,7 @@ module Proscenium
34
44
  end
35
45
 
36
46
  def [](key)
37
- loaded? ? manifest[key] : "/#{key}"
47
+ loaded? ? manifest[key] : nil
38
48
  end
39
49
  end
40
50
  end
@@ -45,7 +45,7 @@ module Proscenium
45
45
 
46
46
  class_methods do
47
47
  def sideload(options)
48
- Importer.import manager, **options, js: { type: 'module' }
48
+ Importer.import Resolver.resolve(manager.to_s), **options, js: { type: 'module' }
49
49
  end
50
50
  end
51
51
 
@@ -19,11 +19,13 @@ module Proscenium
19
19
  end
20
20
 
21
21
  self.resolved[path] ||= if (gem = BundledGems.paths.find { |_, v| path.start_with? "#{v}/" })
22
- path.sub(/^#{gem.last}/, "/node_modules/@rubygems/#{gem.first}")
22
+ vpath = path.sub(/^#{gem.last}/, "@rubygems/#{gem.first}")
23
+ Proscenium::Manifest[vpath] || "/node_modules/#{vpath}"
23
24
  elsif path.start_with?("#{Rails.root}/")
24
- path.delete_prefix Rails.root.to_s
25
+ vpath = path.delete_prefix(Rails.root.to_s)
26
+ Proscenium::Manifest[vpath] || vpath
25
27
  else
26
- Builder.resolve path
28
+ Proscenium::Manifest[path] || Builder.resolve(path)
27
29
  end
28
30
  end
29
31
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Proscenium
4
- VERSION = '0.22.1'
4
+ VERSION = '0.22.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proscenium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.1
4
+ version: 0.22.2
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Joel Moss
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-11-04 00:00:00.000000000 Z
11
+ date: 2025-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi