json2table 1.0.0 → 1.0.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/json2table +15 -0
  3. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b464bb1c19b0ea7af318814d3da874d0842f44b7
4
- data.tar.gz: a0c98c51aee2a3f6ae14964ec157831755215ab2
3
+ metadata.gz: 4c965f0e3e4fa8fa766313af2c4d5a209ad6f540
4
+ data.tar.gz: 96a8c156c97461179e60f75137f4fe9c19e90c19
5
5
  SHA512:
6
- metadata.gz: b95ef24549e6644f59b4348afe5a7c83ac03233c2cfb0f2b90710af88c9d3696087261a980bdcf369a208ea740d866d4517d9165ecc59f30f04faf50d0dc7c1b
7
- data.tar.gz: 5eec3646905acafbe2464eb216e1843397aecbe827227737cc577bf9b7aa0d93f5217f9ea1af6ae052d52d7feccd403bd97adb6147ec332da55b79ebb6177083
6
+ metadata.gz: 27ab2b91dc46b8f1c6682cda4ebd1ed80dc99e7d85ffcc03e661929b79c3c126c1ae29d21c38826d2c6cb4bb06ab1f35691c062251bded92e1e3f75cff6c818e
7
+ data.tar.gz: 2c761d0d8e9b3eee006601d12a67010c5bea8c0db76d410a861a33a890e230235446145cb931f0ddf552b3ae67a57fadad34dc85b57352c0b437e596dc6ec207
data/bin/json2table ADDED
@@ -0,0 +1,15 @@
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
+
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.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code Express
@@ -19,6 +19,7 @@ executables: []
19
19
  extensions: []
20
20
  extra_rdoc_files: []
21
21
  files:
22
+ - bin/json2table
22
23
  - lib/json2table.rb
23
24
  homepage: https://github.com/codeexpress/json2table
24
25
  licenses: