colorize 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/colorize/instance_methods.rb +1 -1
- data/lib/colorize/version.rb +1 -1
- data/test/test_colorize.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71f8aba9c90cbf391acaabc470d94e628d66be6df312605d382cb52b09a939af
|
4
|
+
data.tar.gz: 8efeb99bf7ae768b0d6bc528048238cf0c62f4280e7237ef78163eb1fb026282
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2543e6215f9a15e7f8507e4c9c061aec22f3a2d3f4b4d84949c4805b912728fb9a018a6b3f65fa2aefbdbb878bc1ddc99c6a5e29f83cd8229a5df31edea68c1e
|
7
|
+
data.tar.gz: 98c4349e508062160e5a80221eb686dc6fe32ef8f2b90e438cd741c4bd5ddb8dd9c288fb8e0d556aec7a2d25e0ffc47eeee4731439430fc907e0e1d099f40430
|
data/CHANGELOG.md
CHANGED
@@ -118,7 +118,7 @@ module Colorize
|
|
118
118
|
# Scan for colorized string
|
119
119
|
#
|
120
120
|
def scan_for_colors
|
121
|
-
scan(/\001?\033\[([0-9;]+)m\002?(.+?)\001?\033\[0m\002?|([^\001
|
121
|
+
scan(/\001?\033\[([0-9;]+)m\002?(.+?)\001?\033\[0m\002?|([^\001\033]+)/m).map do |match|
|
122
122
|
split_colors(match)
|
123
123
|
end
|
124
124
|
end
|
data/lib/colorize/version.rb
CHANGED
data/test/test_colorize.rb
CHANGED
@@ -21,7 +21,7 @@ class TestColorize < Minitest::Test
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def test_blue_hash
|
24
|
-
assert_equal "\001\033[0;34;49m\002This is also blue
|
24
|
+
assert_equal "\001\033[0;34;49m\002This is also blue?\001\033[0m\002", 'This is also blue?'.colorize(:color => :blue)
|
25
25
|
end
|
26
26
|
|
27
27
|
def test_light_blue_symbol
|