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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b1e89edcaf30d27f7c24cabb5433aae5aea9fac8
4
- data.tar.gz: 31f40c23fa7113b07bc565b2e209340de0e8ea8f
3
+ metadata.gz: 3603e0dc8aeef9fb670e4783148994caed93efd2
4
+ data.tar.gz: 2e3fa8590404773d6874886fc2413e54d61e9071
5
5
  SHA512:
6
- metadata.gz: d665cad8a4f331e0b6bb28224ca903b991e1e0baf1032ab4289d1f0fd8cbefaa954ee7dcf922f5fec4c0e2458b94398254e35d9bfb645fc3ed5efff27f13aa1a
7
- data.tar.gz: 2f0ead83e68e98d014c37f4cd3d6e53be93dd26d2f6c9b8cf928d0a373fd8c867490137bab86a66e4040a6c71da724297322013ffed37b6e0d5fde5a6b2a0806
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
@@ -1,3 +1,3 @@
1
1
  module Musako
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: musako
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - yo_waka