table_format 0.0.12 → 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: 67e3673e951370eecf4c5425e90e1e6c05a1226d832589199a51b5133096c891
4
- data.tar.gz: 8a7a48f7a408564571506dd4373d0f7fbc88220179db20ef0358e9e5dc6382db
3
+ metadata.gz: d285d1d841ae5700ba051400f09a25ceaa659f19dd18dd66a49d4bc144b70e8b
4
+ data.tar.gz: 3e053fae7087684f6cca90bca8b473cf50da0e77ee417bf708ec5423cb050268
5
5
  SHA512:
6
- metadata.gz: f3b15c9880d6bce8283278612111113e44df799fff0ad79061d188ca2c13eb51d23892efdedc3eaa22248e4b1dd1ccfb1dbb35b4a465c509d5539bbc7baa649f
7
- data.tar.gz: 1f8601067d240a2afe90df869e1bdb04f340d431874d7686121c8ce886e7cbbbd35a815b747515b260f482518ab4452d302f998a6fe1ec25c64ae77e3312d475
6
+ metadata.gz: dcdd03294f59ad8859740d6eeb324d460048ce88d27f63c8bf86930ff65bcfbfab147bf6dfc5fca0a8bcbb10d4589e3aae59f9c854b259eb0fa2d7143a07e4e6
7
+ data.tar.gz: d9f854cf8c0bdab14b54cb4566ba74ce7583de8ea1593772191ba5ccfb8bfed66cf2aeae43ad3715965c35ab469973cf1e2365cd0aace66b4c52157c5f4e7e1c
@@ -44,7 +44,7 @@ Kernel.module_eval do
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
 
@@ -27,6 +27,10 @@ module TableFormat
27
27
  }
28
28
  end
29
29
 
30
+ def self.table_print(str)
31
+ print str
32
+ end
33
+
30
34
  def self.generate(rows, options = {})
31
35
  Generator.new(rows, options).generate
32
36
  end
@@ -1,3 +1,3 @@
1
1
  module TableFormat
2
- VERSION = '0.0.12'
2
+ VERSION = '0.0.13'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: table_format
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - akicho8