tiny_color 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tiny_color.rb +1 -8
- 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: 510d8091d98cc59e1361f4eecb7fc25200050fcccbaa5faf2fc16a8c634aa503
|
4
|
+
data.tar.gz: '08141f81b589184c473caa50cfd71979c76d8f71885114b8cf91b1cff4502f88'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13e3e121d88898938aef4adf7b793cfc2941da51d54705fa2f83d78dae6a4feb915e2d28ec5be1241b97d4a0adaf879fe0a91a728aa05e28cd49f78a438deada
|
7
|
+
data.tar.gz: 3dc4101e2adecd423225797c4afcc7b14b0f90d3c3ae60586a22fea2a4a2998e0e734864cc9a5feb5f21b471350bde62346d34fbfc12ddf6d2f8d6b3f8d8a344
|
data/lib/tiny_color.rb
CHANGED
@@ -23,6 +23,7 @@ class String
|
|
23
23
|
purple: 35,
|
24
24
|
cyan: 36,
|
25
25
|
white: 37,
|
26
|
+
default: 39,
|
26
27
|
light_black: 90,
|
27
28
|
light_red: 91,
|
28
29
|
light_green: 92,
|
@@ -65,14 +66,6 @@ class String
|
|
65
66
|
end
|
66
67
|
end
|
67
68
|
|
68
|
-
def default
|
69
|
-
"\033[39m#{self}\033[0m"
|
70
|
-
end
|
71
|
-
|
72
|
-
def on_default
|
73
|
-
"\033[49m#{self}\033[0m"
|
74
|
-
end
|
75
|
-
|
76
69
|
MODES.each do |mode, value|
|
77
70
|
define_method mode do
|
78
71
|
"\033[#{value}m#{self}\033[0m"
|