proscenium 0.19.0.beta1-x86_64-darwin → 0.19.0.beta2-x86_64-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: 3730ebbd79f3382fd1cdc3f91f7e233d6ba5a39df2fb529d84e5915fb2e2ac39
|
4
|
+
data.tar.gz: f7f5d2dd1e465ccf8089ad3e710f01f9594f5bc439a125c636c9fdaa75008784
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7ba6b31bd87400118f601900295c564689ffde99cc4b6f9a5021245ba929fd0d96291d9af6fa912b0cbefa95b8d9cf81f82662c530ee2052bc87a4541c63858
|
7
|
+
data.tar.gz: c5bc78691a8e137b5f98f406b1cb6798e1f14212f6d27dd1c8242e14b083ebecd177a54a7419267325534b8600e2df192108ed31379cdc7754a461bb5a4fd033
|
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