musako 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/musako/renderers/scss.rb +6 -0
- data/lib/musako/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3603e0dc8aeef9fb670e4783148994caed93efd2
|
4
|
+
data.tar.gz: 2e3fa8590404773d6874886fc2413e54d61e9071
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 785d32b4d4ac4d7b5ae1f22c9322f510c5e165a99540acd4569cc0fb1081fb6157f172e4a344ff49f7982fbdad16b3035b497cd6085f69ad588c444428347094
|
7
|
+
data.tar.gz: 65d5b68b1aed58b0a782052b1d99e69eaf3d7b4a8ed708a2f191b574541113b79664d337e2b46872f62c29e62e322cb26d95b7ba44ff38f9f3b9f62e72479a44
|
@@ -11,6 +11,12 @@ module Musako
|
|
11
11
|
def render
|
12
12
|
compiled = Sass::Engine.new(self.original_file_source, syntax: :scss)
|
13
13
|
.render
|
14
|
+
|
15
|
+
dir = File.dirname(self.output_path)
|
16
|
+
unless File.directory? dir
|
17
|
+
FileUtils.mkdir_p dir
|
18
|
+
end
|
19
|
+
|
14
20
|
File.open(self.output_path, "w") do |file|
|
15
21
|
file.write compiled
|
16
22
|
end
|
data/lib/musako/version.rb
CHANGED