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 +4 -4
- data/lib/proscenium/css_module/transformer.rb +4 -2
- data/lib/proscenium/ext/proscenium +0 -0
- data/lib/proscenium/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f281037e1d5e5f6de59ff20fbcd096f95d090dea7dbc6cc3e42eb24422a38ce7
|
4
|
+
data.tar.gz: c84fac841c7d589f062e1c88bd644e837404beb2bcfed9383abcc7a39f20f6cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/proscenium/version.rb
CHANGED