table_format 0.0.10 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/table_format/core_ext.rb +2 -2
- data/lib/table_format/generator.rb +12 -0
- data/lib/table_format/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d285d1d841ae5700ba051400f09a25ceaa659f19dd18dd66a49d4bc144b70e8b
|
4
|
+
data.tar.gz: 3e053fae7087684f6cca90bca8b473cf50da0e77ee417bf708ec5423cb050268
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcdd03294f59ad8859740d6eeb324d460048ce88d27f63c8bf86930ff65bcfbfab147bf6dfc5fca0a8bcbb10d4589e3aae59f9c854b259eb0fa2d7143a07e4e6
|
7
|
+
data.tar.gz: d9f854cf8c0bdab14b54cb4566ba74ce7583de8ea1593772191ba5ccfb8bfed66cf2aeae43ad3715965c35ab469973cf1e2365cd0aace66b4c52157c5f4e7e1c
|
data/.gitignore
CHANGED
@@ -39,12 +39,12 @@ Object.class_eval do
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
-
Kernel.
|
42
|
+
Kernel.module_eval do
|
43
43
|
private
|
44
44
|
|
45
45
|
def tp(object, options = {})
|
46
46
|
object.tap do
|
47
|
-
table_format(object, options)
|
47
|
+
TableFormat.table_print(table_format(object, options))
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
@@ -1,4 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Workaround of:
|
4
|
+
# uninitialized constant ActiveSupport::XmlMini::IsolatedExecutionState
|
5
|
+
begin
|
6
|
+
require 'active_support/isolated_execution_state'
|
7
|
+
rescue LoadError
|
8
|
+
end
|
9
|
+
|
2
10
|
require 'active_support/core_ext/string' # for blank?
|
3
11
|
require 'active_support/core_ext/class/attribute' # for class_attribute
|
4
12
|
require 'kconv'
|
@@ -19,6 +27,10 @@ module TableFormat
|
|
19
27
|
}
|
20
28
|
end
|
21
29
|
|
30
|
+
def self.table_print(str)
|
31
|
+
print str
|
32
|
+
end
|
33
|
+
|
22
34
|
def self.generate(rows, options = {})
|
23
35
|
Generator.new(rows, options).generate
|
24
36
|
end
|
data/lib/table_format/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: table_format
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- akicho8
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
148
|
- !ruby/object:Gem::Version
|
149
149
|
version: '0'
|
150
150
|
requirements: []
|
151
|
-
rubygems_version: 3.
|
151
|
+
rubygems_version: 3.3.4
|
152
152
|
signing_key:
|
153
153
|
specification_version: 4
|
154
154
|
summary: TableFormat shows text table like emacs org-table for easy reading.
|