rex-text 0.2.26 → 0.2.27

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: e68cf48ba9e927786a686bf1f3c4bed39d9366d0b936bf9479255d296ed1fbe5
4
- data.tar.gz: a3454d4b4dff3494fb109bd795a97787037319962188a548017be6d461735eed
3
+ metadata.gz: 322c668b2627c7abeb1d4d7cfa032e4db2ee9268cbc968ff99184b41a0dbb5cc
4
+ data.tar.gz: 1aa3470e473545171ae3753f6335e982132a653bff9e5ba31aa7bd12cf2c1e72
5
5
  SHA512:
6
- metadata.gz: 719808aa2e83c92282abcce4b0295b928ba63a958816cc1caef994dc93320f0701bc084d069a6434e43733dc09b19f22f6f1b0bdc1401a02a32fb38e90f76594
7
- data.tar.gz: f7f5238249fa43465b47babcb257285991fdedf87e015146e49a350fb7ae572d533aac99377d7f732e8ca1484fe3e16b37470c8de59c21b4cbcf569725d855b2
6
+ metadata.gz: 2508a7436df9f53708d8da0d65b192e13baf2d5c65e143ade82d14bb4767807470d459ab2a26f7e430e7fe72eff513e5cdfdb1603eecd3670733675763d74b6f
7
+ data.tar.gz: af3211dcadb3312cac7c68ce3d1c5f3d3086f2d1d655fada170d9a408cda91ae54e9a36a1b524d66d95a5be8371135f8822389a04e0740da2763431ab6c42664
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -52,7 +52,7 @@ module Color
52
52
  def substitute_colors(msg, in_prompt = nil)
53
53
  str = msg.dup
54
54
  pre_color = post_color = ''
55
- if (in_prompt)
55
+ if (in_prompt && supports_color?)
56
56
  pre_color = "\x01" # RL_PROMPT_START_IGNORE
57
57
  post_color = "\x02" # RL_PROMPT_END_IGNORE
58
58
  end
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Text
3
- VERSION = "0.2.26"
3
+ VERSION = "0.2.27"
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.26
4
+ version: 0.2.27
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-05-08 00:00:00.000000000 Z
96
+ date: 2020-07-13 00:00:00.000000000 Z
97
97
  dependencies:
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: bundler
metadata.gz.sig CHANGED
Binary file