proscenium 0.19.0.beta1 → 0.19.0.beta2
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: c0ef99a0b3eea897d899b62e5cd298770db886a8271376eb04c8686a6078fcc9
|
4
|
+
data.tar.gz: 9787122129710ba85c76f6c762804d2e50ff6b7667a7949bc016f044f10cb983
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5a4d81385d795d350681e8150bccccd84fea0aaae377cf6ae060754fd3d1fb05eae207be86fb2390d8d75bac7e5d1351e4c5cbc0f38a4320e7b2616930fbae2
|
7
|
+
data.tar.gz: 58099ab856fa75ddacaee87c185ba228fa49e681525cc0711f0dded22b34535caf49508db53bbe2726b8c147d7e941398dd55079f13a106fd8c24d69ee053e4a
|
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