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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b8f7da6691f37b07f85554a9954625e209f16e04d2dd66f90f8aa16bc69ff3ca
4
- data.tar.gz: dc1b1ebd66ca17be4debc8cd5d50419158570f57ab51a8ecbf17301672c55ceb
3
+ metadata.gz: 1165e5e29bc55ec878398773cedf34324cd14c8ec47fdf9914af2e6bfe280a98
4
+ data.tar.gz: d3af8b2b26da53513816524a3d4a9279cccaedc30bda0006c1644a2618629b09
5
5
  SHA512:
6
- metadata.gz: 2063dc60f2627de6bf8e0b0ad7aaa7735ab11ff1a47c264319dd86a8da15b98b752c22df9c5046e28348653d45fc9a2489b036fd76997660578427118034a5ac
7
- data.tar.gz: 60bf0f1aaa0488f5831c24a2da3bed95f186fc202fd4469abd9a1d53ee5f138389a35feb484152e20c408eab7d792bf0601c12ff978e287f4d7e7115e9d53ec5
6
+ metadata.gz: cf723c7b537b53059a018ac96f6b88a58e2a3add88ef818b82ff15e41296b80e070bcb6c7fffabf677e805a2bf78a5ac693130dfe518a56d362311c94c495ecc
7
+ data.tar.gz: acdcf93686139a1a69808315799e9e4c1a2a3a366bfe608d444376b1a84787a424e9531df447dfaae415c7483c136bd58fe097a7ea8d669b37785fed63f72b5d
@@ -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: arm64-darwin
6
6
  authors:
7
7
  - Joel Moss