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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/json2table.rb +3 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f029ec372c3f1c7ce827f3fd6bbc1be84b878309
4
- data.tar.gz: 7ba26efd088936d8fc55b95afb7d59b1dbb1fb45
3
+ metadata.gz: 83ae1473b10e024c00c97bdf78550d78c9594df6
4
+ data.tar.gz: 6b9da577a2650199c5a86226eb704b68abf093c6
5
5
  SHA512:
6
- metadata.gz: 03e568b01626b1f6f9f18173ab2c6bf668992521bf158a63e3f9415d37a72e15c15c044ba5cdaa6fe8e27f996a102dc715266aa3e9cf60d5b49249098c5878b7
7
- data.tar.gz: a456b9485d58dff6f0d933b3872612b2c9806b81a5e247ef800fffa380ac7efaa9cdfd4177b8bb62c6bb076da771f84bc98ebcc0333d038ca5cd310a361827e7
6
+ metadata.gz: 1d4b1a6079d35f5c427748667ff814d58e864f6d3a96facc2426b81e8f502b081ec39d0384c59256d07c5f4a3ce141840262e7b3516d2341091769b6d35fb21c
7
+ data.tar.gz: c8c2262d59e9345f97ffcb435e802696e661ea08c8874355a25fecb79409a3a9384e2c539ceb851ce56a9ad59b88d9811ccefede7c8afe5b982bb09f68403a97
@@ -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 += create_vertical_table_from_array(value, k, options)
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|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json2table
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code Express