tiny_color 1.2.2 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tiny_color.rb +2 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97c50b04d124c59d58aaa9de2d5edc7a4a78e3ae06b392037f1ef2be107cdd43
4
- data.tar.gz: fa4e5c91b573928d4053d84a732d8c2bbe53729aec3f95d81771639e0ac88008
3
+ metadata.gz: 510d8091d98cc59e1361f4eecb7fc25200050fcccbaa5faf2fc16a8c634aa503
4
+ data.tar.gz: '08141f81b589184c473caa50cfd71979c76d8f71885114b8cf91b1cff4502f88'
5
5
  SHA512:
6
- metadata.gz: a6289e1a77ec0345f5500ddf25f45b85697c86ae84204be543872a208bdd410b7a35f185de7d133e82bf7805c839f1e2de15916c0d2465552a31883bc2fb345a
7
- data.tar.gz: 49231e269ff13d170cdfa263658e0d1f944eaffa0b7d633fbc3a7dc29729cf17295cd5ef8cdc997825f4858a016ab2aeb6e75adcabab3b2d78e1051b2cecfa76
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,
@@ -59,6 +60,7 @@ class String
59
60
  define_method color do
60
61
  "\033[#{value}m#{self}\033[0m"
61
62
  end
63
+
62
64
  define_method "on_#{color}" do
63
65
  "\033[#{value + 10}m#{self}\033[0m"
64
66
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiny_color
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Lunt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-26 00:00:00.000000000 Z
11
+ date: 2023-08-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: a tiny library for String colorization
14
14
  email: jefflunt@gmail.com