zerofetcher 0.0.8 → 0.0.9
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/JekyllPost.rb +5 -0
- data/lib/zerofetcher.rb +1 -3
- 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: 77e770c33abf3303f04e63c9e4f17b2576214634
|
4
|
+
data.tar.gz: 13ae94733a226868d58b81bbeee50708c2919de6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27f5c4a348fccc2ae4fdfbcb63811b3159dd1df7e30a753212fcaf9be5db8ea36d92b6e0488c8a842761b5b4ce044e4947f68c0e4d848336785eba99ab31c0b3
|
7
|
+
data.tar.gz: f211ce8065b814873212e1ecd32b97f0c8aeba9e758e6ed2e7739920467ea2db56fc40b8f7c945e286eb354c408da834339d0b5669ca985255cc54c282f92fab
|
data/lib/code/JekyllPost.rb
CHANGED
@@ -16,9 +16,14 @@ class JekyllPost
|
|
16
16
|
'layout' => 'post',
|
17
17
|
'title' => post['title'],
|
18
18
|
'date' => post['date'],
|
19
|
+
'excerpt' => post['excerpt'],
|
19
20
|
'categories' => post['categories'],
|
20
21
|
}
|
21
22
|
|
23
|
+
if post['image']
|
24
|
+
@yaml_parsed['image'] = 'images/posts/' + post['image']
|
25
|
+
end
|
26
|
+
|
22
27
|
@content_section = post['content']
|
23
28
|
end
|
24
29
|
|
data/lib/zerofetcher.rb
CHANGED
@@ -252,15 +252,13 @@ class ZeroFetcher
|
|
252
252
|
row.each do |key,val|
|
253
253
|
#puts 'Row ['+key+']:['+val.to_s+']'
|
254
254
|
if fld_key == key
|
255
|
-
puts 'Row ['+key+']:['+val.to_s+'] type['+fld_info['type']+']'
|
256
255
|
case fld_info['type']
|
257
256
|
when 'image'
|
258
257
|
# Directory Check
|
259
258
|
image_path = jekyll_path+'/assets/images/'+collection_type
|
260
259
|
FileUtils::mkdir_p image_path
|
260
|
+
|
261
261
|
src_image = end_point + '/media/images/'+collection_type+'/'+site_id+'/' + val
|
262
|
-
|
263
|
-
#puts 'Found Image ['+src_image+'] for collection ['+collection_type+']'
|
264
262
|
|
265
263
|
self.getAndSaveFile(src_image, image_path+'/' + val)
|
266
264
|
when 'file'
|