tiny_color 1.3.0 → 1.3.2

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tiny_color.rb +1 -8
  3. metadata +7 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f2e30d0beb4c0e49eab8227d931f61c809973c68de9aae49ae2cc5fbf237ad58
4
- data.tar.gz: e009c1ae10900793146a1a8a60f22f5e33b07db1b2b7064a222b01bab97ddd90
3
+ metadata.gz: 908d107f088ebaa9a9137a5f289ca786b49814528e4b2cc389960bccf74f6996
4
+ data.tar.gz: 194ed3750f2a3def972c3bdfce7029cb65120be57ce87ced5ea3fe6142b7bf4e
5
5
  SHA512:
6
- metadata.gz: 38e27a2a942c5462f91946680cb68e7b05664b5c996aeab349dc233e0a90d36132c459590c674af0f9949fa26114425f19e23f6b4a9c7f1ad411ce3656bac11b
7
- data.tar.gz: 8501e2106a1617333606074ee5b5a1dddf1911ae7eb99a257f2122a44301c515ba260c146e0dd34c279eea3c5c44d269d09a5a24d39c5d60f844654b98547fad
6
+ metadata.gz: ef70374c102a17abd5fbbf5fb17e62d747f7cb499f33147dec491088bb8dbb1902a7c55c5b0b9de1f42ed415c51e4a20dd2b113440bd1e629111fc89df5ed8da
7
+ data.tar.gz: 13408aee3adb1de7b401bfa8c3892e2187e64f5c199b4c4e9866d5b8c972eb884de5917f8fc3ba720646d633e463de0302449020a760238c79a7fe74f1795559
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"
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiny_color
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Lunt
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-08-27 00:00:00.000000000 Z
10
+ date: 2025-09-05 00:00:00.000000000 Z
12
11
  dependencies: []
13
- description: a tiny library for String colorization
12
+ description: a tiny library for command-line String colorization and formatting (bold,
13
+ underline, etc.)
14
14
  email: jefflunt@gmail.com
15
15
  executables: []
16
16
  extensions: []
@@ -21,7 +21,6 @@ homepage: https://github.com/jefflunt/tiny_color
21
21
  licenses:
22
22
  - MIT
23
23
  metadata: {}
24
- post_install_message:
25
24
  rdoc_options: []
26
25
  require_paths:
27
26
  - lib
@@ -36,9 +35,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
36
35
  - !ruby/object:Gem::Version
37
36
  version: '0'
38
37
  requirements: []
39
- rubygems_version: 3.4.1
40
- signing_key:
38
+ rubygems_version: 3.6.3
41
39
  specification_version: 4
42
- summary: this is a minimalist library for adding color to Strings by extending the
43
- String class
40
+ summary: a tiny library for command-line String colorization and formatting (bold,
41
+ underline, etc.)
44
42
  test_files: []