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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4a6f4ee70f7499a16eaef8a7b3668b069fdfff8d0ba05d3c647f4a78096a810
4
- data.tar.gz: 9bf92f3c252ae8df81903f1691530d7d60fe96291fbee7254f36ff2b7e19c9a6
3
+ metadata.gz: 3730ebbd79f3382fd1cdc3f91f7e233d6ba5a39df2fb529d84e5915fb2e2ac39
4
+ data.tar.gz: f7f5d2dd1e465ccf8089ad3e710f01f9594f5bc439a125c636c9fdaa75008784
5
5
  SHA512:
6
- metadata.gz: dd4d844bceafba250add2e6676f6548a18804ef2915df4f14fa276091710178f7d4c943147e43fcf50d0052091ae458dc2dd0d9b87f2d91c5c1b1e73c2990f98
7
- data.tar.gz: f88576efc18db33ccc76c30edbee92184e19cce80099b0150b41804cff517f5aa7608b704e58f45d220bdb06287111e7fccafacb6ba2742e1a7088c7ba7a8050
6
+ metadata.gz: b7ba6b31bd87400118f601900295c564689ffde99cc4b6f9a5021245ba929fd0d96291d9af6fa912b0cbefa95b8d9cf81f82662c530ee2052bc87a4541c63858
7
+ data.tar.gz: c5bc78691a8e137b5f98f406b1cb6798e1f14212f6d27dd1c8242e14b083ebecd177a54a7419267325534b8600e2df192108ed31379cdc7754a461bb5a4fd033
@@ -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: x86_64-darwin
6
6
  authors:
7
7
  - Joel Moss