hiccdown 1.4.0 → 1.4.1
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/hiccdown.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d04561bd25ef616c71cafb7500943039904cc59269de01b7536b3fefdf68a787
|
4
|
+
data.tar.gz: 51088222ce3a32d48df3fe339a96a0ba98f9051745823ef9ca915a413867d141
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe92789f9e885d48745adfeea619c85e9357c640af4c3675d8869c979a9bcdc813da0c1b6cb1c509f6dc69e8946fc987e2e4b0e75d3989b7b12fcda7fd2b1a2f
|
7
|
+
data.tar.gz: 9d24cb9dcbf33caf43b204ccc7b616070918263d0f3c70078d953ef0cabd4e6b10506aa57ed3ed3864517c49e8bf037b8a0e115c5462542b97d7c096e2ed4377
|
data/lib/hiccdown.rb
CHANGED
@@ -63,6 +63,10 @@ module Hiccdown
|
|
63
63
|
if structure.is_a? Hash
|
64
64
|
self.hash_to_html_attributes(structure, escape)
|
65
65
|
elsif structure.is_a? Array
|
66
|
+
if structure.empty?
|
67
|
+
return nil
|
68
|
+
end
|
69
|
+
|
66
70
|
if structure.first.is_a?(Array)
|
67
71
|
return structure.map { |s| to_html(s, escape) }.join
|
68
72
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hiccdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dennis Hackethal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Generates an HTML string from a Hiccup structure and improves Rails views.
|
14
14
|
email: engineering@dennishackethal.com
|