json2table 1.0.5 → 1.0.6
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/json2table.rb +3 -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: 83ae1473b10e024c00c97bdf78550d78c9594df6
|
4
|
+
data.tar.gz: 6b9da577a2650199c5a86226eb704b68abf093c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d4b1a6079d35f5c427748667ff814d58e864f6d3a96facc2426b81e8f502b081ec39d0384c59256d07c5f4a3ce141840262e7b3516d2341091769b6d35fb21c
|
7
|
+
data.tar.gz: c8c2262d59e9345f97ffcb435e802696e661ea08c8874355a25fecb79409a3a9384e2c539ceb851ce56a9ad59b88d9811ccefede7c8afe5b982bb09f68403a97
|
data/lib/json2table.rb
CHANGED
@@ -123,7 +123,9 @@ module Json2table
|
|
123
123
|
if k
|
124
124
|
# if elements of this array are hashes with same keys,
|
125
125
|
# display it as a top-down table
|
126
|
-
html +=
|
126
|
+
html += "<td>\n"
|
127
|
+
html += create_vertical_table_from_array(hash[key], k, options)
|
128
|
+
html += "</td>\n"
|
127
129
|
else
|
128
130
|
# non similar keys, create horizontal table
|
129
131
|
hash[key].each do |h|
|