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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9850f8eb215652d969fec15c6353767eafa1d2893811ff9e82ef1b1e806d907f
4
- data.tar.gz: 1d6627df0bc7ddaf4be4a31a0c1497011df3435c0ad13a189459fcf5db9b5eaa
3
+ metadata.gz: c0ef99a0b3eea897d899b62e5cd298770db886a8271376eb04c8686a6078fcc9
4
+ data.tar.gz: 9787122129710ba85c76f6c762804d2e50ff6b7667a7949bc016f044f10cb983
5
5
  SHA512:
6
- metadata.gz: 23e4e58d9755d14a4a7e59231f92a2a1547b9f59d374a7e30814c69a026f768237a84940430df05201f3211dd80b561959fe940e3e885d812b72797f10e861ec
7
- data.tar.gz: c4acce3c41b023178549fc38209c66beaecd14396fa5fe3b7cf744eb8c8d6ec2a11acc5898e3f46601d63770e140b36510d6690f7fcc2518f8436de05a50fbd0
6
+ metadata.gz: e5a4d81385d795d350681e8150bccccd84fea0aaae377cf6ae060754fd3d1fb05eae207be86fb2390d8d75bac7e5d1351e4c5cbc0f38a4320e7b2616930fbae2
7
+ data.tar.gz: 58099ab856fa75ddacaee87c185ba228fa49e681525cc0711f0dded22b34535caf49508db53bbe2726b8c147d7e941398dd55079f13a106fd8c24d69ee053e4a
Binary file
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Proscenium
4
- VERSION = '0.19.0.beta1'
4
+ VERSION = '0.19.0.beta2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proscenium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0.beta1
4
+ version: 0.19.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Moss