zerofetcher 0.0.34 → 0.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/code/JekyllFile.rb +7 -2
- 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: 828a0e3313829269724a6695ea932cd9118af88f
|
4
|
+
data.tar.gz: 8a120bd2784d8f9843e28a96d24bff56457ab620
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efbe11c87a46ba2f3faeb9afc71846be3ad7aa18d927e41913ecd32ed84f70d608cbcf37ea080e9be0719f1a117f71fa291ec9c7c391ce28cb494cc61a4cbc9d
|
7
|
+
data.tar.gz: 8fe6412596647b3780e786f7349151fa02c40d3e77e0eb4ab01252c95718e9bf8ed26179a13b8db1c7014957069a4e9984bd061ccba5cf2f24b6c000eab76671
|
data/lib/code/JekyllFile.rb
CHANGED
@@ -71,7 +71,9 @@ class JekyllFile
|
|
71
71
|
# add content
|
72
72
|
@content_keys.each do |key|
|
73
73
|
if @file_data.key?(key)
|
74
|
-
|
74
|
+
if @file_data[key].is_a? String
|
75
|
+
@content_section = @file_data[key]
|
76
|
+
end
|
75
77
|
end
|
76
78
|
end
|
77
79
|
end
|
@@ -146,7 +148,10 @@ class JekyllFile
|
|
146
148
|
#file_contents += YAML.generate(@yaml_parsed)+"\n"
|
147
149
|
file_contents = @yaml_parsed.to_yaml
|
148
150
|
file_contents += '---'+"\n"
|
149
|
-
|
151
|
+
|
152
|
+
if @content_section.is_a? String
|
153
|
+
file_contents += @content_section
|
154
|
+
end
|
150
155
|
File.write(@file_path, file_contents)
|
151
156
|
end
|
152
157
|
end
|