proscenium 0.19.0.beta1-x86_64-linux → 0.19.0.beta2-x86_64-linux
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/proscenium/ext/proscenium +0 -0
- 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: a95bd57d4f0a56b089654ba01d8a386665dee8c430d41338a3655d4d0eec4611
|
4
|
+
data.tar.gz: f10ee6411aef2de06a70126aa8e12aba60f845bb4b1ef40cebfff186bb0bed39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fce69d6183f209b623749c8fcd393fe7d272d1c2e087f09263f3f5756d6e0a983e1ba19b020be5ca47cd757184bd5b5b71d5aaddbfd90a2a0171925727ae212
|
7
|
+
data.tar.gz: 2c5f340ce43edfdd26ff6fc01d2a49d7a64b62269d8211fc935893985880242374f88722747bd8252da60931e4fc3b98486966cc955d02dd735fcacdc91b5585
|
Binary file
|
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