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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc3f5972bce19ad0b1a5ab050f8c62569c1fa1f3c908e45375931162669f4f01
4
- data.tar.gz: dc3153b93bf21e9e22f22fdbc03b93d2ae463262e3120923c1d4c026b8f86c7b
3
+ metadata.gz: 773453d5051de2afb27648e60806d80e5b8cd5c3cd090726be2c41d647045b97
4
+ data.tar.gz: a42ef28301df43aaeff36747701d34ea2dbaeaab5ea541b64aee69961a1220af
5
5
  SHA512:
6
- metadata.gz: 70f4feea7593986c49b3ddb8a3429173439d6627ee28df467788c50c6ec22322141fcc6bacbdbe4cdfbdf4a2c0dfd19dbe924e5c1f177dda039893fbddc7f18d
7
- data.tar.gz: db3830148bb8f2febbf15e1ea585a5e3e2c7bf236ec4397b9be87ecbd3dfbc458fdd924523e610b7290472dfca4e822f4629fc7d2654bbd1a9d8091eca37d05b
6
+ metadata.gz: 1b90644c5cc4372da2e9a4101a5b68601e81db49f158c61645b1b8572f8e5daad6a5c31592130a60e647a6acc897e97ce6c50f2d21150089bbb1121f5df7cb32
7
+ data.tar.gz: f037bbda67f8ee6ae64a8c9712bb765fbb66531c8e6b5a5e7efcc034d63894d810c18e3d6576a1706b00606c88366e5f2d047bd7fd5a06a92a9a5f29ad58ea82
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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 wrap_tables?
25
- table_options = args[0]
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.wrap_tables?
32
- @@wrapped_tables_enabled ||= false
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:
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Text
3
- VERSION = "0.2.31"
3
+ VERSION = "0.2.32"
4
4
  end
5
5
  end
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.31
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-01-19 00:00:00.000000000 Z
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
- ��Ԃނ�5+kI�z�R�n9��N|`��'��� k��8Z����}<�*%P�$�ȏ�V� 5NZu�])����>���`1�і�q4��vvzJ.���z�����@(�b?$��hb�X�`xߙ�_)'>�s}. bVB�$��B��ǥ�F\��G�.B^b�.,�Ǵ(^�x;TJ�$��N����3ty2�m)9g������T7��16�֫Y~dG��@~.IAx�8�-<��� �m�|V��L�5�=<�
1
+ ��X)dI��mjv(�,s4kN~��ӚF���"�p�+i�!�����7��'�=����3w��F���Ț q��s
2
+ ]c}��΃U�~Q��VɁj����M5(ӣ�Ȅ�r�\
3
+ ��#^ F'I�Б
4
+ �nͻ ����YziC��!j��)3�Ix