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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8155545d48fb554da7c2324bf13749019a31d814f0b56b8b90a0c11424b2ad35
4
- data.tar.gz: 8073b769b478b30f3f87e494fad61a6f940f6cecbf6d8b006b23dbaa65626647
3
+ metadata.gz: d285d1d841ae5700ba051400f09a25ceaa659f19dd18dd66a49d4bc144b70e8b
4
+ data.tar.gz: 3e053fae7087684f6cca90bca8b473cf50da0e77ee417bf708ec5423cb050268
5
5
  SHA512:
6
- metadata.gz: 1cbf7246e86137adcf7ce79622ff1c0108a65a72f72abd0ab14f345f74720940a417f01787b09f4f3b459c62dd20a1521b4bc2b2e7d05d5b6fb92f56afd2de06
7
- data.tar.gz: a52c220de33351f05c0d71196293cc83dcda2062e10f13d808d2ef595aa4de22ca7877d851a27cd33bc258e381b2403d2852ccdc0a8d84b30304bc9aacc9f3ed
6
+ metadata.gz: dcdd03294f59ad8859740d6eeb324d460048ce88d27f63c8bf86930ff65bcfbfab147bf6dfc5fca0a8bcbb10d4589e3aae59f9c854b259eb0fa2d7143a07e4e6
7
+ data.tar.gz: d9f854cf8c0bdab14b54cb4566ba74ce7583de8ea1593772191ba5ccfb8bfed66cf2aeae43ad3715965c35ab469973cf1e2365cd0aace66b4c52157c5f4e7e1c
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  /*.gem
2
2
  /*.html
3
3
  /Gemfile.lock
4
+ *.ruby-version
@@ -39,12 +39,12 @@ Object.class_eval do
39
39
  end
40
40
  end
41
41
 
42
- Kernel.class_eval do
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).display
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
@@ -1,3 +1,3 @@
1
1
  module TableFormat
2
- VERSION = '0.0.10'
2
+ VERSION = '0.0.13'
3
3
  end
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.10
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: 2021-11-18 00:00:00.000000000 Z
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.2.31
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.