bergamasco 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/bergamasco.rb +1 -0
- data/lib/bergamasco/markdown.rb +6 -0
- data/lib/bergamasco/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: d366e22815b8d717e90a4939ec552ed49b21f784
|
4
|
+
data.tar.gz: 3336cc66bfdf33a51d7ba3fdebda5932586446cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e538ea066a4542ec91d11a461c3a8b33a621e71b8c499c9eb6eed29e517308c93a0828133b4173ad621e96adbd1256301ef7299722be0f35701353894285a445
|
7
|
+
data.tar.gz: fe7cabeaa4fb34769ff36d1d70743c777de89cc536ac795bf23e72b6d4e42558fafc16141d414bfb4967a1d62835d1281516b4edc6029f31684dcf353326364f
|
data/Gemfile.lock
CHANGED
data/lib/bergamasco.rb
CHANGED
data/lib/bergamasco/markdown.rb
CHANGED
@@ -29,6 +29,12 @@ module Bergamasco
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def self.write_yaml(filepath, content)
|
32
|
+
unless File.exist?(filepath)
|
33
|
+
parentdir = Pathname.new(filepath).parent
|
34
|
+
FileUtils.mkdir_p parentdir
|
35
|
+
FileUtils.touch filepath
|
36
|
+
end
|
37
|
+
|
32
38
|
IO.write(filepath, content.to_yaml)
|
33
39
|
end
|
34
40
|
|
data/lib/bergamasco/version.rb
CHANGED