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.
- checksums.yaml +4 -4
- data/lib/json2table.rb +1 -1
- metadata +3 -4
- data/bin/json2table +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a9ba0f295a4f058d0ea1a175af6319d65eccd84
|
4
|
+
data.tar.gz: 4d48a073e78d72a7a5a2d790a5efc7b668066a55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3eaf6a258563e600dcbfe90987dce197c0402b589dd3d2cf9fabca8db9b58a30289498a0fb59d467633a8b0e0a51a270ba6260c0576d06cdb7a9b55c07fe89f9
|
7
|
+
data.tar.gz: 170b888444332facaec717bcd57f29624a50218e34fad24a4630bdd4fc4a7c6885ac4f1ab435ed17de81334811fe354d92fb35da114910abeebbd88912f29591
|
data/lib/json2table.rb
CHANGED
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.
|
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
|
+
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.
|
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
|
-
|