proscenium 0.13.0-x86_64-darwin → 0.14.0-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: 8768355b6b2259292fe9c5e0aa01f4eae55dddc8b0cae9e4b727323094b9a719
4
- data.tar.gz: 68d15afe5298c53d1209eb7ed1e860a681dae9f218784bd22b3861d05fbae3c3
3
+ metadata.gz: 7266323f1f1f5120430ed43f1169343d711e61694986e08033c26bb2c50ca61e
4
+ data.tar.gz: 32974f861da0870f1a38d5b7e5777988592372447c8a6a48b3a4d954a2765983
5
5
  SHA512:
6
- metadata.gz: b1a17269dc8a398e4ad97ca460cc44e34c600c847a0e1a3779ec04e5a3a04db537f42100c79c5f9426e2f0ec299e8804acbbfa0cd1615098f75749c4f4f01710
7
- data.tar.gz: 25ebb73d2589e9d1f46ee4cee2691e12c9ab76385cccc1eb78808e2905c4a9823f4b5acde4df0d85a5190de38a521e18a59122d50fef9c10209a97c5ee8d2f67
6
+ metadata.gz: 6e84a7553307fc8dc133c2afb4b2d3996166159e5c4aee783bb87a45d0ecb09af314f1fde21a356155ad2fa172a10d05f7b47d5581f740dd9466a57497a53ca4
7
+ data.tar.gz: 6d0ceac47b5adf44e3f0072f76b2184697329d5aaa9a95ee2fcb306514f8f009bf0838c9931937209039cb72c9ae4f65fb937e3ab1780bcdbebc5ec57db4a332
@@ -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-darwin
6
6
  authors:
7
7
  - Joel Moss