rex-text 0.2.31 → 0.2.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rex/text/table.rb +15 -4
- data/lib/rex/text/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 773453d5051de2afb27648e60806d80e5b8cd5c3cd090726be2c41d647045b97
|
4
|
+
data.tar.gz: a42ef28301df43aaeff36747701d34ea2dbaeaab5ea541b64aee69961a1220af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b90644c5cc4372da2e9a4101a5b68601e81db49f158c61645b1b8572f8e5daad6a5c31592130a60e647a6acc897e97ce6c50f2d21150089bbb1121f5df7cb32
|
7
|
+
data.tar.gz: f037bbda67f8ee6ae64a8c9712bb765fbb66531c8e6b5a5e7efcc034d63894d810c18e3d6576a1706b00606c88366e5f2d047bd7fd5a06a92a9a5f29ad58ea82
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rex/text/table.rb
CHANGED
@@ -21,15 +21,22 @@ class Table
|
|
21
21
|
# To enforce all tables to be wrapped to the terminal's current width, call `Table.wrap_tables!`
|
22
22
|
# before invoking `Table.new` as normal.
|
23
23
|
def self.new(*args, &block)
|
24
|
-
if
|
25
|
-
table_options = args
|
24
|
+
if wrap_table?(args)
|
25
|
+
table_options = args.first
|
26
26
|
return ::Rex::Text::WrappedTable.new(table_options)
|
27
27
|
end
|
28
28
|
return super(*args, &block)
|
29
29
|
end
|
30
30
|
|
31
|
-
def self.
|
32
|
-
|
31
|
+
def self.wrap_table?(args)
|
32
|
+
return false unless wrapped_tables?
|
33
|
+
|
34
|
+
table_options = args.first
|
35
|
+
if table_options&.key?('WordWrap')
|
36
|
+
return table_options['WordWrap']
|
37
|
+
end
|
38
|
+
|
39
|
+
wrapped_tables?
|
33
40
|
end
|
34
41
|
|
35
42
|
def self.wrap_tables!
|
@@ -40,6 +47,10 @@ class Table
|
|
40
47
|
@@wrapped_tables_enabled = false
|
41
48
|
end
|
42
49
|
|
50
|
+
def self.wrapped_tables?
|
51
|
+
@@wrapped_tables_enabled ||= false
|
52
|
+
end
|
53
|
+
|
43
54
|
#
|
44
55
|
# Initializes a text table instance using the supplied properties. The
|
45
56
|
# Table class supports the following hash attributes:
|
data/lib/rex/text/version.rb
CHANGED
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.
|
4
|
+
version: 0.2.32
|
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-
|
96
|
+
date: 2021-02-24 00:00:00.000000000 Z
|
97
97
|
dependencies:
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: rake
|
metadata.gz.sig
CHANGED
@@ -1 +1,4 @@
|
|
1
|
-
|
1
|
+
��X)dI��mjv(�,s4kN~��ӚF���"�p�+i�!�����7��'�=����3�w��F���Ț�q��s
|
2
|
+
]c}��U�~Q��VɁj����M5(ӣ�Ȅ�r�\
|
3
|
+
��#^ F'I�Б
|
4
|
+
�nͻ ����YziC��!j��)3�Ix
|