texttable 0.5.0
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 +7 -0
- data/LICENSE +21 -0
- data/README.md +32 -0
- metadata +45 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 57ee5dc87b68a396f5249bec38787a27a6eea7ace090e43b0f85163a70ee9acc
|
4
|
+
data.tar.gz: 592653203fb2c5878f684f74abf5b834015cf243108877bff68b57e6977ac946
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 907a88882658b512b6ff097d1ee59bfdd966784dc1baec8d1649c64ba221c4141c90b1ccda468298caae2ded68405d7cb1433380aa0788b21dba1d8e0d3cd81b
|
7
|
+
data.tar.gz: 4381488c113a707317d6523fccb615c74e91c150697ad018451743792d61659bc55c38553f9e6037cdec1bcf6710075eade9dc7e16efda1d0c37de96457a004b
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2019 Steve Shreeve
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# texttable
|
2
|
+
|
3
|
+
`texttable` is a Ruby gem that provides an easy way to print rows and columns as simple tables.
|
4
|
+
|
5
|
+
## Examples
|
6
|
+
|
7
|
+
This code:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
require "texttable"
|
11
|
+
|
12
|
+
info = TextTable.new
|
13
|
+
info.add(name: "Tom" , age: 34, city: "New York")
|
14
|
+
info.add(name: "Dick" , age: 25, city: "Tuscaloosa")
|
15
|
+
info.add(name: "Harry", age: 61, city: "Jackson Hole")
|
16
|
+
info.add(name: "Sally", age: 25, city: "Salt Lake")
|
17
|
+
info.show
|
18
|
+
```
|
19
|
+
|
20
|
+
Will produce:
|
21
|
+
|
22
|
+
```text
|
23
|
+
+-------+-----+--------------+
|
24
|
+
| name | age | city |
|
25
|
+
+-------+-----+--------------+
|
26
|
+
| Tom | 34 | New York |
|
27
|
+
| Dick | 25 | Tuscaloosa |
|
28
|
+
| Harry | 61 | Jackson Hole |
|
29
|
+
| Sally | 25 | Salt Lake |
|
30
|
+
+-------+-----+--------------+
|
31
|
+
4 rows displayed
|
32
|
+
```
|
metadata
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: texttable
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.5.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Steve Shreeve
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-08-21 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: This gem will auto-size based on column widths.
|
14
|
+
email: steve.shreeve@gmail.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- LICENSE
|
20
|
+
- README.md
|
21
|
+
homepage: https://github.com/shreeve/texttable
|
22
|
+
licenses:
|
23
|
+
- MIT
|
24
|
+
metadata: {}
|
25
|
+
post_install_message:
|
26
|
+
rdoc_options: []
|
27
|
+
require_paths:
|
28
|
+
- lib
|
29
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
39
|
+
requirements: []
|
40
|
+
rubyforge_project:
|
41
|
+
rubygems_version: 2.7.7
|
42
|
+
signing_key:
|
43
|
+
specification_version: 4
|
44
|
+
summary: An easy way to print rows and columns as simple tables
|
45
|
+
test_files: []
|