rex-text 0.2.30 → 0.2.31

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: 3300de7f33dc1c4f697e23bd2ed2f0305130d4d75b4a899eb5efca26e103d2ca
4
- data.tar.gz: 86149999c411ed89138283e6b118f626150e0a1f7924ad88abf0e1947ac7afaf
3
+ metadata.gz: bc3f5972bce19ad0b1a5ab050f8c62569c1fa1f3c908e45375931162669f4f01
4
+ data.tar.gz: dc3153b93bf21e9e22f22fdbc03b93d2ae463262e3120923c1d4c026b8f86c7b
5
5
  SHA512:
6
- metadata.gz: 1ba4f2b84c3935aa41747e926d0af442ba1e529a6b798c5c768f65215b2b38d5a8250f21b357e9e7388b7957c767ae101b14bc21d6755a8b2e54b3a4e3e0dadd
7
- data.tar.gz: 5bdea84222090b61bc82425d395a8bc0c753829465ff88f2619d9df9f1c9cdd3a2fe1a1f03f19783c3ded9ecf2cf74f78839ebc053f51f42a30f68754d507573
6
+ metadata.gz: 70f4feea7593986c49b3ddb8a3429173439d6627ee28df467788c50c6ec22322141fcc6bacbdbe4cdfbdf4a2c0dfd19dbe924e5c1f177dda039893fbddc7f18d
7
+ data.tar.gz: db3830148bb8f2febbf15e1ea585a5e3e2c7bf236ec4397b9be87ecbd3dfbc458fdd924523e610b7290472dfca4e822f4629fc7d2654bbd1a9d8091eca37d05b
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Text
3
- VERSION = "0.2.30"
3
+ VERSION = "0.2.31"
4
4
  end
5
5
  end
@@ -1,6 +1,7 @@
1
1
  # -*- coding: binary -*-
2
2
  require 'ipaddr'
3
3
  require 'io/console'
4
+ require 'bigdecimal'
4
5
 
5
6
  module Rex
6
7
  module Text
@@ -70,8 +71,7 @@ class WrappedTable
70
71
  # updated below if we got a "Rows" option
71
72
  self.rows = []
72
73
 
73
- # TODO: Discuss a cleaner way to handle this information
74
- self.width = opts['Width'] || ::IO.console.winsize[1]
74
+ self.width = opts['Width'] || ::IO.console&.winsize&.[](1) || ::BigDecimal::INFINITY
75
75
  self.indent = opts['Indent'] || 0
76
76
  self.cellpad = opts['CellPad'] || 2
77
77
  self.prefix = opts['Prefix'] || ''
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rex-text
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.30
4
+ version: 0.2.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Metasploit Hackers
@@ -93,7 +93,7 @@ cert_chain:
93
93
  EknWpNgVhohbot1lfVAMmIhdtOVaRVcQQixWPwprDj/ydB8ryDMDosIMcw+fkoXU
94
94
  9GJsSaSRRYQ9UUkVL27b64okU8D48m8=
95
95
  -----END CERTIFICATE-----
96
- date: 2021-01-18 00:00:00.000000000 Z
96
+ date: 2021-01-19 00:00:00.000000000 Z
97
97
  dependencies:
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: rake
metadata.gz.sig CHANGED
Binary file