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 +4 -4
- data/lib/proscenium/ext/proscenium +0 -0
- data/lib/proscenium/manifest.rb +13 -3
- data/lib/proscenium/react_componentable.rb +1 -1
- data/lib/proscenium/resolver.rb +5 -3
- data/lib/proscenium/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 80674235b91e1592c6090faa96087a6955c626112dfd9934bb81dad1c87bff8c
|
|
4
|
+
data.tar.gz: c3504f8e728b439447ee52dd352af2607e4f74dee745572b5a2a8865765a0223
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 67242a4b8fd5bf4e942f36547c18dbd5283e76640f61ac3b92fe2f07f500a9cc9ef5a0385728f0fd42087d94a3466af2efd0e7f0363b2c0d475fc04bb02683a7
|
|
7
|
+
data.tar.gz: ac26fdb8b6ecb1af969c3df439d0703b3bdb8b23ebd8af6618f8b3b641b1d007ea614ac615e12018cc54eb656c220a432a9ea26342a560925847a07ef496df38
|
|
Binary file
|
data/lib/proscenium/manifest.rb
CHANGED
|
@@ -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 |
|
|
22
|
+
JSON.parse(Proscenium.config.manifest_path.read)['outputs'].each do |outpath, details|
|
|
22
23
|
next if !details.key?('entryPoint')
|
|
23
24
|
|
|
24
|
-
|
|
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] :
|
|
47
|
+
loaded? ? manifest[key] : nil
|
|
38
48
|
end
|
|
39
49
|
end
|
|
40
50
|
end
|
data/lib/proscenium/resolver.rb
CHANGED
|
@@ -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}/, "
|
|
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
|
|
25
|
+
vpath = path.delete_prefix(Rails.root.to_s)
|
|
26
|
+
Proscenium::Manifest[vpath] || vpath
|
|
25
27
|
else
|
|
26
|
-
Builder.resolve
|
|
28
|
+
Proscenium::Manifest[path] || Builder.resolve(path)
|
|
27
29
|
end
|
|
28
30
|
end
|
|
29
31
|
end
|
data/lib/proscenium/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2025-11-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ffi
|