tiny_color 1.0.0 → 1.1.0
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
- data/lib/tiny_color.rb +5 -2
- 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: eb12cdf3f1fdc23d1f211194977b8743f38bb4acda953e5f86509d9dc67c4914
|
4
|
+
data.tar.gz: da092dc5141b66e86ca38cac7ac41b18788e54346a97b92ba591d7aefe76b92c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82b177683f33c5292d420d1342a3351186679cecdcc5723cd2d194d545876e45ba2992daffa17f3e27b8ff47c150f920957fc1158fdd1e404ae517549f5a61d7
|
7
|
+
data.tar.gz: 5235f5ab444d167bb2fccfaa44187278a33ac05da835dfae7a0c2544413e45994bd57c4f5c8763c2cd8ab22b10475cf4228de7ed84f50235475a58351c4f681b
|
data/lib/tiny_color.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
#
|
4
4
|
# usage:
|
5
5
|
# puts 'Hi'.green + ' there!'
|
6
|
-
#
|
6
|
+
#
|
7
7
|
# "Hi there!" # where 'Hi' will appear in green,
|
8
8
|
# # and the rest in your # default
|
9
9
|
# # terminal color
|
@@ -16,10 +16,13 @@
|
|
16
16
|
# # rest in your default terminal
|
17
17
|
# # color
|
18
18
|
class String
|
19
|
-
COLORS = {
|
19
|
+
COLORS = {
|
20
20
|
black: 30,
|
21
21
|
light_black: 90,
|
22
22
|
|
23
|
+
grey: 90,
|
24
|
+
gray: 90,
|
25
|
+
|
23
26
|
red: 31,
|
24
27
|
light_red: 91,
|
25
28
|
|