json2table 1.0.1 → 1.0.2

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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/json2table.rb +1 -1
  3. metadata +3 -4
  4. data/bin/json2table +0 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c965f0e3e4fa8fa766313af2c4d5a209ad6f540
4
- data.tar.gz: 96a8c156c97461179e60f75137f4fe9c19e90c19
3
+ metadata.gz: 3a9ba0f295a4f058d0ea1a175af6319d65eccd84
4
+ data.tar.gz: 4d48a073e78d72a7a5a2d790a5efc7b668066a55
5
5
  SHA512:
6
- metadata.gz: 27ab2b91dc46b8f1c6682cda4ebd1ed80dc99e7d85ffcc03e661929b79c3c126c1ae29d21c38826d2c6cb4bb06ab1f35691c062251bded92e1e3f75cff6c818e
7
- data.tar.gz: 2c761d0d8e9b3eee006601d12a67010c5bea8c0db76d410a861a33a890e230235446145cb931f0ddf552b3ae67a57fadad34dc85b57352c0b437e596dc6ec207
6
+ metadata.gz: 3eaf6a258563e600dcbfe90987dce197c0402b589dd3d2cf9fabca8db9b58a30289498a0fb59d467633a8b0e0a51a270ba6260c0576d06cdb7a9b55c07fe89f9
7
+ data.tar.gz: 170b888444332facaec717bcd57f29624a50218e34fad24a4630bdd4fc4a7c6885ac4f1ab435ed17de81334811fe354d92fb35da114910abeebbd88912f29591
data/lib/json2table.rb CHANGED
@@ -115,7 +115,7 @@ module Json2table
115
115
  end
116
116
  end
117
117
  else
118
- html += "<td>#{to_human(hash[key])}</td>\n"
118
+ html += "<td>#{hash[key]}</td>\n"
119
119
  end
120
120
  end
121
121
  html += "</tr>\n"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json2table
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code Express
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-11 00:00:00.000000000 Z
11
+ date: 2017-04-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |-
14
14
  This gem provides functionality to convert a JSON object into HTML
@@ -19,7 +19,6 @@ executables: []
19
19
  extensions: []
20
20
  extra_rdoc_files: []
21
21
  files:
22
- - bin/json2table
23
22
  - lib/json2table.rb
24
23
  homepage: https://github.com/codeexpress/json2table
25
24
  licenses:
@@ -41,7 +40,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
41
40
  version: '0'
42
41
  requirements: []
43
42
  rubyforge_project:
44
- rubygems_version: 2.4.6
43
+ rubygems_version: 2.4.2
45
44
  signing_key:
46
45
  specification_version: 4
47
46
  summary: Converts JSON to HTML tables
data/bin/json2table DELETED
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'json2table'
4
-
5
- table_options = {
6
- table_style: "border: 1px solid black; max-width: 600px;",
7
- table_class: "table table-striped table-hover table-condensed table-bordered",
8
- table_attributes: "border=1"
9
- }
10
-
11
- json = STDIN.read
12
- json2table = Json2table::get_html_table(json, table_options)
13
- puts json2table
14
-
15
-