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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d2d60900c3ba2c866fc46ccee659cfd3560e05a542d4fd2a2962a217e29e0e2
4
- data.tar.gz: d00d3d3dbbb1d7b215c109af0419eefc7ef477f1a1e2bf5a65c4de1e4755c4ad
3
+ metadata.gz: a95bd57d4f0a56b089654ba01d8a386665dee8c430d41338a3655d4d0eec4611
4
+ data.tar.gz: f10ee6411aef2de06a70126aa8e12aba60f845bb4b1ef40cebfff186bb0bed39
5
5
  SHA512:
6
- metadata.gz: 5d22cc2f21be18701b64e4909fc4d94f7bfa8faacb3c911269cbf92c0234a9355e8b87ee92a3cbc1d97a944dc6d84add1acafc14fbb7f72fabb8193ba431dd09
7
- data.tar.gz: e59ecc8f6fe8448398d7d902c5ce957e3d3c977ebcac8fdb0830cc6173503f3db6d4d5546b592d20336a94e4170aff158bcb9b8cf375fbce1b5b6feb55b992bd
6
+ metadata.gz: 0fce69d6183f209b623749c8fcd393fe7d272d1c2e087f09263f3f5756d6e0a983e1ba19b020be5ca47cd757184bd5b5b71d5aaddbfd90a2a0171925727ae212
7
+ data.tar.gz: 2c5f340ce43edfdd26ff6fc01d2a49d7a64b62269d8211fc935893985880242374f88722747bd8252da60931e4fc3b98486966cc955d02dd735fcacdc91b5585
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: x86_64-linux
6
6
  authors:
7
7
  - Joel Moss