zerofetcher 0.0.64 → 0.0.65
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 +22 -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: e6b730da83eac72a56c95b8d6efa50cb10acce32
|
4
|
+
data.tar.gz: b962308ce0c5d57812ded74f9d8ed0f1a94c1f3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad55568ed7034f8dfedceed172581ad4e6631fb1d39bc2c4d26e19bc1340d0d2d9499dc4934d7f55af4a313272a147777d170eefb5094dd2043627e5e1f31f7d
|
7
|
+
data.tar.gz: 37162d9d6fee84a7fa9230012f4ff23371ccbdfe40ae93df15c5774a415cd2cf7a5502551bca8df0f33fe38e3b78b18add9a05435863e139e133b3b497f54294
|
data/lib/zerofetcher.rb
CHANGED
@@ -284,6 +284,17 @@ ErrorDocument 404 /404/index.html'
|
|
284
284
|
puts "Galleries - " + data['galleries'].length.to_s
|
285
285
|
self.log("Galleries - " + data['galleries'].length.to_s)
|
286
286
|
|
287
|
+
# Create files saved array
|
288
|
+
gallery_files_saved = Array.new
|
289
|
+
|
290
|
+
# set collection path
|
291
|
+
gallery_collection_path = jekyll_path+'/_gallery'
|
292
|
+
|
293
|
+
if data['site'].key?('gallery_make_detail_pages') && data['site']['gallery_make_detail_pages'] == "1"
|
294
|
+
FileUtils::mkdir_p gallery_collection_path
|
295
|
+
collection_config[ 'gallery' ] = {'output' => true}
|
296
|
+
end
|
297
|
+
|
287
298
|
# Save Photos
|
288
299
|
data['galleries'].each_with_index do |gallery,idx|
|
289
300
|
FileUtils::mkdir_p jekyll_path+'/assets/images/galleries/' + gallery['id']
|
@@ -294,6 +305,17 @@ ErrorDocument 404 /404/index.html'
|
|
294
305
|
gallery['photos'].each_with_index do |photo,pidx|
|
295
306
|
photo['image'] = self.getAndSaveImages(end_point + '/media/images/'+site_id+'/galleries/photos/' + photo['image'], jekyll_path+'/assets/images/galleries/' + gallery['id'] + '/' + photo['image'])
|
296
307
|
end
|
308
|
+
|
309
|
+
# Detail Pages
|
310
|
+
if data['site'].key?('gallery_make_detail_pages') && data['site']['gallery_make_detail_pages'] == "1"
|
311
|
+
|
312
|
+
self.log('Saving Event File ' + gallery['slug']+'.md')
|
313
|
+
|
314
|
+
jfile = JekyllFile.new(gallery_collection_path, gallery, 'collection', gallery['slug'])
|
315
|
+
jfile.savePageFile
|
316
|
+
|
317
|
+
gallery_files_saved.push( Pathname.new( jfile.getFileName ).basename.to_s )
|
318
|
+
end
|
297
319
|
end
|
298
320
|
|
299
321
|
# Save Json Data
|
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.65
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Liccardo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Fetches content from zero
|
14
14
|
email: brian@d3corp.com
|