zerofetcher 0.0.41 → 0.0.42
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 +12 -1
- 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: bad95cda6942c9dc2d1b1bbe39acc9d1aaf93dbb
|
4
|
+
data.tar.gz: 808dee92943732bcc50ba9a81f0e01ef047223ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcb47e29fb031192f51a5f5e39617ffd2223347833744ded02862be16bbdaf45711b993bf2e47e819ce612b5855348838b65eeb4e377fe7a1fbc3b2a929e86c6
|
7
|
+
data.tar.gz: 842cde1ff95e091b9650f2aefaae80def0af2e8d8c733ad5dbbb978ea8ec41076a2e6b271a48d24f5066f6a90e337ff11174d25e3309632f29716512e03e3f34
|
data/lib/zerofetcher.rb
CHANGED
@@ -180,7 +180,18 @@ ErrorDocument 404 /404/index.html'
|
|
180
180
|
data['taxonomy'].each do |taxonomy_data_type|
|
181
181
|
taxonomy_data_type['taxonomies'].each do |taxonomy|
|
182
182
|
if '1' == taxonomy['enable_images']
|
183
|
-
FileUtils::mkdir_p jekyll_path+'/assets/images/tax-images/' + taxonomy['id']
|
183
|
+
FileUtils::mkdir_p jekyll_path+'/assets/images/tax-images/' + taxonomy['id']
|
184
|
+
|
185
|
+
if taxonomy.key?("terms")
|
186
|
+
taxonomy['terms'].each do |term|
|
187
|
+
if term['image']
|
188
|
+
image_path = jekyll_path+'/assets/images/tax-images/' + term['taxonomy_id']
|
189
|
+
src_image = end_point + '/media/images/taxonomies/' + term['taxonomy_id'] + '/' + term["image"]
|
190
|
+
|
191
|
+
term['image'] = self.getAndSaveImages(src_image, image_path + '/' + term["image"])
|
192
|
+
end
|
193
|
+
end
|
194
|
+
end
|
184
195
|
end
|
185
196
|
end
|
186
197
|
end
|