console_table 0.3.0 → 0.3.1

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
- SHA1:
3
- metadata.gz: eece772cdfd305053f6dca26fde253546fa4092d
4
- data.tar.gz: e8a66f1aee5c3d1a4e1000288248159d80af6f39
2
+ SHA256:
3
+ metadata.gz: '081cb85b432de9117e06bb17afc4a3c6f0afb71a7fcb257ac302a325e10c7b8e'
4
+ data.tar.gz: 393d21ad15fea24048ef1028009be13ebee75de31b169f84c7324e78b6195315
5
5
  SHA512:
6
- metadata.gz: 5d6c4b4aceee5e0d3ae58585dd49f1df967fcd4e900a76ff18ae6136abadffaee732336765427732a3836361e1d200a06415f5a64ba36ebb2f6fc9aeca7f0c4e
7
- data.tar.gz: ec40df9aa5a5fcbb7c63f272332b4549cb034fc734ac22f4d3ad1c52d4ed31f53dceced6387e183c65d452a59ea077fb4c6dc5bc6ac16a6ce49ddddd5f4d30c6
6
+ metadata.gz: fe3e9f9db0acf800f90388cf70a1408e5b6e2e4a8234894e26479ec651047c258e5cd1df6577a48a569260d7c193fbee83f38a763bccbaa92b392ecbe7fa1678
7
+ data.tar.gz: 0cffbb1101518a5147ba0e14e6a6d29304d7fe033f26b843329b2206cebacde91bbd1e763fc191398207d49e98cb26e939564c71fb34df44e5621f832e3dd8ee
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "console_table"
7
- spec.version = "0.3.0"
7
+ spec.version = "0.3.1"
8
8
  spec.authors = ["Rod Hilton"]
9
9
  spec.email = ["consoletable@rodhilton.com"]
10
10
  spec.summary = %q{Simplifies printing tables of information to commandline consoles}
@@ -17,10 +17,10 @@ Gem::Specification.new do |spec|
17
17
  spec.require_paths = ["lib"]
18
18
 
19
19
  spec.add_development_dependency 'simplecov', '~> 0.9'
20
- spec.add_development_dependency "bundler", "~> 1.5"
20
+ spec.add_development_dependency "bundler", "~> 2.3.7"
21
21
  spec.add_development_dependency 'rake', '~> 0'
22
22
  spec.add_development_dependency 'minitest', '~> 5.5'
23
23
  spec.add_development_dependency 'colorize', '~> 0.7'
24
+ spec.add_development_dependency 'pry'
24
25
 
25
- spec.add_runtime_dependency 'ruby-terminfo', '~> 0.1'
26
26
  end
data/lib/console_table.rb CHANGED
@@ -16,7 +16,7 @@ module ConsoleTable
16
16
  end
17
17
 
18
18
  class ConsoleTableClass
19
- require 'terminfo'
19
+ require 'io/console'
20
20
 
21
21
  # Add strings to the footer array to have them formatted when the table closes
22
22
  attr_reader :footer
@@ -278,7 +278,7 @@ module ConsoleTable
278
278
 
279
279
  total_width = @set_width
280
280
  begin
281
- total_width = TermInfo.screen_columns
281
+ total_width = IO.console.winsize[1]
282
282
  rescue => ex
283
283
  total_width = ENV["COLUMNS"].to_i unless ENV["COLUMNS"].nil?
284
284
  total_width = 79 if total_width.nil?
metadata CHANGED
@@ -1,99 +1,99 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: console_table
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rod Hilton
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-11 00:00:00.000000000 Z
11
+ date: 2023-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simplecov
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.9'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.9'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.5'
33
+ version: 2.3.7
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.5'
40
+ version: 2.3.7
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: minitest
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '5.5'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '5.5'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: colorize
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0.7'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0.7'
83
83
  - !ruby/object:Gem::Dependency
84
- name: ruby-terminfo
84
+ name: pry
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '0.1'
90
- type: :runtime
89
+ version: '0'
90
+ type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '0.1'
96
+ version: '0'
97
97
  description: Allows developers to define tables with specifically-sized columns, which
98
98
  can then have entries printed to them that are automatically formatted, truncated,
99
99
  and padded to fit in the console window.
@@ -103,8 +103,8 @@ executables: []
103
103
  extensions: []
104
104
  extra_rdoc_files: []
105
105
  files:
106
- - .gitignore
107
- - .travis.yml
106
+ - ".gitignore"
107
+ - ".travis.yml"
108
108
  - Gemfile
109
109
  - LICENSE
110
110
  - README.md
@@ -119,24 +119,23 @@ homepage: https://github.com/rodhilton/console_table
119
119
  licenses:
120
120
  - MIT
121
121
  metadata: {}
122
- post_install_message:
122
+ post_install_message:
123
123
  rdoc_options: []
124
124
  require_paths:
125
125
  - lib
126
126
  required_ruby_version: !ruby/object:Gem::Requirement
127
127
  requirements:
128
- - - '>='
128
+ - - ">="
129
129
  - !ruby/object:Gem::Version
130
130
  version: '0'
131
131
  required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  requirements:
133
- - - '>='
133
+ - - ">="
134
134
  - !ruby/object:Gem::Version
135
135
  version: '0'
136
136
  requirements: []
137
- rubyforge_project:
138
- rubygems_version: 2.4.8
139
- signing_key:
137
+ rubygems_version: 3.2.3
138
+ signing_key:
140
139
  specification_version: 4
141
140
  summary: Simplifies printing tables of information to commandline consoles
142
141
  test_files: