zerofetcher 0.0.76 → 0.0.77

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3ac0d8bfb230f2b9c61828ad21abd18fd16e2c97
4
- data.tar.gz: c6966507f7e9ccfe521549de52b40042fd1d7e9d
3
+ metadata.gz: 82af1d305b4a7b74550e6a43f7e6d924f631fa7c
4
+ data.tar.gz: b33ccfb6aa4a96b6c7b8216f2513410fe3c477b6
5
5
  SHA512:
6
- metadata.gz: 39cad79051cb213e146d5312ea164808c5075f8af14f3426ccd8c90eba754e86be0a723d0799b5ed01708cc180eb7c05450bb54cf6cea5ede78e4f75e765ccbb
7
- data.tar.gz: 579ed0fce66b266ac2edef44f7a5975c1335605331b452806b4f3f3ca5eb0031c7d40010154cb4c813da697c22ae77a19d885c256e0cd8620efccfd96b9ffb89
6
+ metadata.gz: c85e194768c7ee34274aa816919a4b1cbb41adaac4eb5ae83e252ad635cb2e7361c5a562c71ddccab941eb18fb7684f636400f941d886ecc84b892881502e861
7
+ data.tar.gz: 8519d13ac096fbc93a2d9d21e66f0cde82e0a21c433408a09d158dc98760c089286cd996ca250cfda217db34f93743700bcaa5d9711677e75eabd32fd01e6cd2
data/bin/zerofetcher CHANGED
File without changes
File without changes
File without changes
data/lib/zerofetcher.rb CHANGED
@@ -172,16 +172,21 @@ ErrorDocument 404 /404/index.html'
172
172
  self.log("Writing File /_data/vars.json")
173
173
  end
174
174
 
175
- # Content Blocks
175
+ # Content Blocks v2
176
176
  if data.key?("content_blocks")
177
177
  puts 'Content Blocks - ' + data['content_blocks'].length.to_s
178
178
  self.log('Content Blocks - ' + data['content_blocks'].length.to_s)
179
179
  cb_folder = jekyll_path+'/_includes/content_blocks'
180
180
 
181
- data['content_blocks'].each do |key, content_block|
182
- self.log('writing File /_includes/content_blocks/'+key+'.md')
183
- self.writeFile( cb_folder+'/'+key+'.md' , content_block.to_s );
181
+ # Save original .md files
182
+ data['content_blocks'].each do |content_block|
183
+ self.log('writing File /_includes/content_blocks/'+content_block['key']+'.md')
184
+ self.writeFile( cb_folder+'/'+content_block['key']+'.md' , content_block['content'].to_s );
184
185
  end
186
+
187
+ # Save json data file
188
+ self.writeFile( jekyll_path+'/_data/content-blocks.json', JSON.pretty_generate(data['content_blocks']) )
189
+ self.log('Writing file /_data/galleries.json')
185
190
  end
186
191
 
187
192
  # Content Images
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.76
4
+ version: 0.0.77
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Liccardo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-17 00:00:00.000000000 Z
11
+ date: 2020-02-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Fetches content from zero
14
14
  email: brian@d3corp.com
@@ -41,7 +41,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
41
41
  version: '0'
42
42
  requirements: []
43
43
  rubyforge_project:
44
- rubygems_version: 2.4.5
44
+ rubygems_version: 2.5.2.1
45
45
  signing_key:
46
46
  specification_version: 4
47
47
  summary: Zero Fetcher