wst-parser 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/wst/content.rb +2 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c9ed4288bea1dfee895730bdcad3233e67c1ac51
4
- data.tar.gz: 738007620470ea98c29368787e6ec9b16b7548bc
3
+ metadata.gz: 39af25746b9ea2e0532a44e96047958229c95b4b
4
+ data.tar.gz: 942b267ea92fe93b0fa091bd7100dd93878d33f8
5
5
  SHA512:
6
- metadata.gz: 832b82ba1cba82e6225bdb79f47b354df378eb74db9b1b616b7c5b2f2184cd2da6fc6bbd32b5207775beae7dedbf46240b288454d28cc126b09d23ca81d5751e
7
- data.tar.gz: 1eb8e5a3bcf57df76033f4b1121cfe003a74e9036f91b495b2b4a808535391c1d710dde403a2a9f2de06b552afedfb87d7ad07feb58a7ad2c4a9a9df56973945
6
+ metadata.gz: 91b54f0938236768f5da44218698a82b4402809c5f2e42a4e6f90ac8dd1a513342a984bdfbe63c9c0468ca7c30ce364384f81f7272eb705c5be9e42c444fbfd8
7
+ data.tar.gz: e70b11e2d214cb540e5bea9ca70aa1e615c088bf4c7a171f9355551c6f9ec60112fee7df711b1f47586fb11aafbe750f60ae71cdcbb4850bec42396f4323a773
@@ -2,6 +2,7 @@
2
2
  require 'yaml'
3
3
  require 'wst/configuration'
4
4
  require 'digest/md5'
5
+ require 'fileutils'
5
6
 
6
7
  module Wst
7
8
  class Content
@@ -12,6 +13,7 @@ module Wst
12
13
  # param [Hash] datas Header datas
13
14
  # param [String] content Content to write
14
15
  def save! file_path, datas, content
16
+ FileUtils.mkdir_p File.dirname file_path
15
17
  File.open(file_path, "w") do |file|
16
18
  file.write datas.to_yaml
17
19
  file.write "---\n"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wst-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yves Brissaud