proscenium 0.19.0.beta1-arm64-darwin → 0.19.0.beta2-arm64-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/proscenium/resolver.rb +6 -2
- data/lib/proscenium/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1165e5e29bc55ec878398773cedf34324cd14c8ec47fdf9914af2e6bfe280a98
|
4
|
+
data.tar.gz: d3af8b2b26da53513816524a3d4a9279cccaedc30bda0006c1644a2618629b09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf723c7b537b53059a018ac96f6b88a58e2a3add88ef818b82ff15e41296b80e070bcb6c7fffabf677e805a2bf78a5ac693130dfe518a56d362311c94c495ecc
|
7
|
+
data.tar.gz: acdcf93686139a1a69808315799e9e4c1a2a3a366bfe608d444376b1a84787a424e9531df447dfaae415c7483c136bd58fe097a7ea8d669b37785fed63f72b5d
|
data/lib/proscenium/resolver.rb
CHANGED
@@ -25,10 +25,14 @@ module Proscenium
|
|
25
25
|
"/#{path}"
|
26
26
|
elsif path.start_with?(Proscenium.ui_path.to_s)
|
27
27
|
path.delete_prefix Proscenium.root.join('lib').to_s
|
28
|
+
elsif (engine = Proscenium.config.engines.find { |e| path.start_with? "#{e.root}/" })
|
29
|
+
if engine.root.to_s.start_with?("#{Rails.root}/")
|
30
|
+
path.delete_prefix Rails.root.to_s
|
31
|
+
else
|
32
|
+
path.sub(/^#{engine.root}/, "/#{engine.engine_name}")
|
33
|
+
end
|
28
34
|
elsif path.start_with?("#{Rails.root}/")
|
29
35
|
path.delete_prefix Rails.root.to_s
|
30
|
-
elsif (engine = Proscenium.config.engines.find { |e| path.start_with? "#{e.root}/" })
|
31
|
-
path.sub(/^#{engine.root}/, "/#{engine.engine_name}")
|
32
36
|
else
|
33
37
|
Builder.resolve path
|
34
38
|
end
|
data/lib/proscenium/version.rb
CHANGED