rex-text 0.2.25 → 0.2.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rex/text/table.rb +6 -1
- data/lib/rex/text/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e68cf48ba9e927786a686bf1f3c4bed39d9366d0b936bf9479255d296ed1fbe5
|
|
4
|
+
data.tar.gz: a3454d4b4dff3494fb109bd795a97787037319962188a548017be6d461735eed
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 719808aa2e83c92282abcce4b0295b928ba63a958816cc1caef994dc93320f0701bc084d069a6434e43733dc09b19f22f6f1b0bdc1401a02a32fb38e90f76594
|
|
7
|
+
data.tar.gz: f7f5238249fa43465b47babcb257285991fdedf87e015146e49a350fb7ae572d533aac99377d7f732e8ca1484fe3e16b37470c8de59c21b4cbcf569725d855b2
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/rex/text/table.rb
CHANGED
|
@@ -423,7 +423,12 @@ protected
|
|
|
423
423
|
__method__.to_s << ': String with unsupported encoding caught!'
|
|
424
424
|
end
|
|
425
425
|
utf8_buf = buf.dup.force_encoding("UTF-8")
|
|
426
|
-
|
|
426
|
+
if !utf8_buf.valid_encoding?
|
|
427
|
+
hans_size = 0
|
|
428
|
+
else
|
|
429
|
+
hans_size = utf8_buf.size - utf8_buf.gsub(/\p{Han}+/u, '').size
|
|
430
|
+
end
|
|
431
|
+
remainder = max - utf8_buf.length - hans_size
|
|
427
432
|
remainder = 0 if remainder < 0
|
|
428
433
|
val = chr * remainder
|
|
429
434
|
|
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.26
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David 'thelightcosine' Maloney
|
|
@@ -93,7 +93,7 @@ cert_chain:
|
|
|
93
93
|
JI/W23RbIRksG2pioMhd4dCXq3FLLlkOV1YfCwWixNB+iIhQPPZVaPNfgPhCn4Dt
|
|
94
94
|
DeGjje/qA4fkLtRmOtb9PUBq3ToRDE4=
|
|
95
95
|
-----END CERTIFICATE-----
|
|
96
|
-
date: 2020-
|
|
96
|
+
date: 2020-05-08 00:00:00.000000000 Z
|
|
97
97
|
dependencies:
|
|
98
98
|
- !ruby/object:Gem::Dependency
|
|
99
99
|
name: bundler
|
metadata.gz.sig
CHANGED
|
Binary file
|