zerofetcher 0.0.16 → 0.0.17

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/zerofetcher.rb +15 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2ae2666dbbdf0aa09336d1ca3ab86aa27ca1aefb
4
- data.tar.gz: 50d9b425f6be3556055ff3a5668397d3a5b90e85
3
+ metadata.gz: a59aa8376c8985ec522f58682a7164dd8b7f1bca
4
+ data.tar.gz: 97b4f44d7c700582e520435eaed02f32ce69e996
5
5
  SHA512:
6
- metadata.gz: cd05a4a89447276fffd5c4e63d541c136809a6bf531071c07d16b1e532a54e2e4a12668c91f6b5b1f5c9a15410c8721107e78c1cc013c7622ebac7bf28157aee
7
- data.tar.gz: 398b1689a977436c3ec6560280129029a970aac5cda1cbbfe5ffda8098c5bdc01e9520650d360259fcd64a407e3b274cc80af3d0958967cc76e5d253e6a3489e
6
+ metadata.gz: 44dd220329c1546757a4a3d0c558e78f1287d4e4b90a2948a62f21cdc0eb847752eee41a02723c0ab111129b1450f522821e54d5f1792adf698d862137de4dec
7
+ data.tar.gz: a9e836b3ac838047891795611bd72a47bdccccbfc9dcd7e5f72e89b07206086b93630a963e61a2f46e2f6b317e96ab9ddd4da0819734286b2342a256c8bc10bc
data/lib/zerofetcher.rb CHANGED
@@ -270,6 +270,21 @@ class ZeroFetcher
270
270
  end
271
271
  end
272
272
 
273
+ # Downloads
274
+ if data.key?("downloads")
275
+ # Save Json Data
276
+ File.write(jekyll_path+'/_data/downloads.json', JSON.pretty_generate(data['downloads']))
277
+
278
+ # Download Files
279
+ data['downloads'].each do |download|
280
+ download_path = jekyll_path+'/assets/files/downloads'
281
+
282
+ src_file = end_point + '/media/files/downloads/' + site_id + '/' + download['file']
283
+
284
+ self.getAndSaveFile(src_file, download_path + '/' + download['file'])
285
+ end
286
+ end
287
+
273
288
  # Custom Collections
274
289
  if data.key?("collections")
275
290
  data['collections'].each do |collection_type,collection_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.16
4
+ version: 0.0.17
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-03-20 00:00:00.000000000 Z
11
+ date: 2017-03-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Fetches content from zero
14
14
  email: brian@d3corp.com