proscenium 0.13.0-x86_64-linux → 0.14.0-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: 8b06b3f27b0e88ebb7099a1808384cddb0571d3076ad837639da2a35961c1d54
4
- data.tar.gz: 70f56abacaed489a8811632e80cd7e8c35a79299f3a2a92b7f2a37bf317f46dd
3
+ metadata.gz: f281037e1d5e5f6de59ff20fbcd096f95d090dea7dbc6cc3e42eb24422a38ce7
4
+ data.tar.gz: c84fac841c7d589f062e1c88bd644e837404beb2bcfed9383abcc7a39f20f6cb
5
5
  SHA512:
6
- metadata.gz: 8f6752edbf44f243a3b81f852f5d825ea206140fbf2b2d595834ed9af7b8780284370cd4ab643f44f4ed030996a9d0a3afc2ebe71affc70557f3b6e156531f17
7
- data.tar.gz: 46751b69cdbfc67faf5964f360e8b66a1fbb34958368a1fbb48bdc67c93a63b177c8c5daedd86f39101dd2e2f269a878277b3b8a979f1b8e121efe0c5bac9af3
6
+ metadata.gz: 7617352ab1427d0e31f8241c01320de6eebd031508f87e5cc11efdfaae5e4f7109c75f0577e83f565bd034762e15518ea818ac9e34c524373debcaee6c9b8a2c
7
+ data.tar.gz: 9e0f026f6245187b146579d39a2d087dcd8a4662d61187fa6dc630aaae2a5355f0e1abe97ec09371cd65709f7978b4c74461c7a711a3ae06c9a25bf841852340
@@ -69,11 +69,13 @@ module Proscenium
69
69
  resolved_path = Resolver.resolve(path.to_s)
70
70
  digest = Importer.import(resolved_path)
71
71
 
72
+ transformed_path = ''
73
+ transformed_path = "__#{resolved_path[1..].gsub(%r{[/\.]}, '-')}" if Rails.env.development?
72
74
  transformed_name = name.to_s
73
75
  transformed_name = if transformed_name.start_with?('_')
74
- "_#{transformed_name[1..]}-#{digest}"
76
+ "_#{transformed_name[1..]}-#{digest}#{transformed_path}"
75
77
  else
76
- "#{transformed_name}-#{digest}"
78
+ "#{transformed_name}-#{digest}#{transformed_path}"
77
79
  end
78
80
 
79
81
  [transformed_name, resolved_path]
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Proscenium
4
- VERSION = '0.13.0'
4
+ VERSION = '0.14.0'
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.13.0
4
+ version: 0.14.0
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Joel Moss