zerofetcher 0.0.7 → 0.0.8
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/zerofetcher.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79a152259d3bc19ca03258d371182e8514c401be
|
4
|
+
data.tar.gz: 965cc96615215641b7a2fa37c5675a1973f25c20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64433255276004c05b657f5478a3d2dde4e4ed944351a8d3f8c9089c33e04343c32f4cc424d31ddbbb96aca2292deae92da1286ed5f67e7890bf7c25b35d9b8c
|
7
|
+
data.tar.gz: e5be74c0f2c335c27b701960d4aab58045cd97be799c4958cc7720649b4ea56d47f43eeee4dcf0f8d9701ee5b671515d7b91d857f280a30a4cdfde12061e04b2
|
data/lib/zerofetcher.rb
CHANGED
@@ -26,6 +26,7 @@ class ZeroFetcher
|
|
26
26
|
FileUtils::mkdir_p jekyll_path+'/_posts'
|
27
27
|
FileUtils::mkdir_p jekyll_path+'/assets'
|
28
28
|
FileUtils::mkdir_p jekyll_path+'/assets/images'
|
29
|
+
FileUtils::mkdir_p jekyll_path+'/assets/images/posts'
|
29
30
|
FileUtils::mkdir_p jekyll_path+'/assets/files'
|
30
31
|
FileUtils::mkdir_p jekyll_path+'/_includes'
|
31
32
|
FileUtils::mkdir_p jekyll_path+'/_includes/pages'
|
@@ -145,6 +146,11 @@ class ZeroFetcher
|
|
145
146
|
jpost = JekyllPost.new(jekyll_path+'/_posts', post)
|
146
147
|
jpost.savePageFile
|
147
148
|
self.log('Saving Post File ' + post['date']+'-'+post['slug']+'.md')
|
149
|
+
|
150
|
+
# save image
|
151
|
+
if post['image']
|
152
|
+
self.getAndSaveFile(end_point + '/media/images/posts/'+site_id+'/' + post['image'], jekyll_path+'/assets/images/posts/' + post['image'])
|
153
|
+
end
|
148
154
|
end
|
149
155
|
end
|
150
156
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zerofetcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Liccardo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Fetches content from zero
|
14
14
|
email: brian@d3corp.com
|