reinbow 1.0.0 → 1.2.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/LICENSE +0 -0
- data/README.md +4 -0
- data/lib/reinbow/color/effects.rb +7 -3
- data/lib/reinbow.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 788578e745790cce86b8e2d496c4809baf4c508f7e452e6ff3f608a9407dd0ec
|
|
4
|
+
data.tar.gz: 1f615a46291e41deebf69a723821de28f12e0d273a9370a4ddccbfe562afb4d2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f91cb673738431199604b2ebbb15fa3ef48b2228f1a69618faad107a9c2ed9a0a573144b72af5fcb100c0e79e3afe466d5b321732c7dc9a768ecb2f6888bad8
|
|
7
|
+
data.tar.gz: 4009631c8d4d26798dbffa0fb0714cab42753d4e040e516e9993c47c1c09342a5795a1cc47c2dba1ceded2e8219ddb9edd2993b4b85a2efad318158601eefdde
|
data/LICENSE
CHANGED
|
File without changes
|
data/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Reinbow
|
|
2
2
|
|
|
3
|
+

|
|
4
|
+
|
|
3
5
|
Reinbow is a Ruby gem for colorizing printed text on terminal.
|
|
4
6
|
|
|
5
7
|
It was original a fork of the great gem [ku1ik/rainbow](https://github.com/ku1ik/rainbow), but the old codebase took way too much efforts to overhaul, so instead this project was built from ground up.
|
|
@@ -76,6 +78,8 @@ Full list of methods for applying terminal effects:
|
|
|
76
78
|
* `#invert`
|
|
77
79
|
* `#hide`
|
|
78
80
|
* `#strike`
|
|
81
|
+
* `#double_underline`
|
|
82
|
+
* `#overline`
|
|
79
83
|
|
|
80
84
|
Demo:
|
|
81
85
|
|
|
@@ -33,12 +33,16 @@ module Reinbow
|
|
|
33
33
|
invert: 7,
|
|
34
34
|
|
|
35
35
|
# Conceal or hide
|
|
36
|
-
# (Windows Terminal do support this effect,
|
|
37
|
-
# a bit suprised)
|
|
38
36
|
hide: 8,
|
|
39
37
|
|
|
40
38
|
# Crossed-out, or strike
|
|
41
39
|
strike: 9,
|
|
42
|
-
|
|
40
|
+
|
|
41
|
+
# Doubly underlined
|
|
42
|
+
double_underline: 21,
|
|
43
|
+
|
|
44
|
+
# Overlined
|
|
45
|
+
overline: 53,
|
|
46
|
+
}.transform_values { Effect.new( _1 ) }.freeze
|
|
43
47
|
|
|
44
48
|
end
|
data/lib/reinbow.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: reinbow
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- MidAutumnMoon
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-09-
|
|
11
|
+
date: 2024-09-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Ruby gem for colorizing text in terminal
|
|
14
14
|
email:
|
|
@@ -29,6 +29,8 @@ licenses:
|
|
|
29
29
|
- BSD-3-Clause
|
|
30
30
|
metadata:
|
|
31
31
|
rubygems_mfa_required: 'true'
|
|
32
|
+
homepage_uri: https://github.com/MidAutumnMoon/Reinbow
|
|
33
|
+
source_code_uri: https://github.com/MidAutumnMoon/Reinbow
|
|
32
34
|
post_install_message:
|
|
33
35
|
rdoc_options: []
|
|
34
36
|
require_paths:
|