colsole 1.0.0 → 1.0.1
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/README.md +2 -6
- data/lib/colsole/version.rb +1 -1
- data/lib/colsole.rb +3 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c0eb4d2ccfbad964021e0ca4fbc960c9dad7b94656ad9219df64b466923f20f8
|
|
4
|
+
data.tar.gz: 3f7f6cfeaf1ae7a1a3d32e0d079acbd538406947587e33f7af28e8e9bb0fda27
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d8da75c93b2ec90c5371026a0ab5b592150806e460197b7a61fb2e65f89027238343d55a3bbe1a4be5daff3564f895829cf8377dbbd7edb036bba6f82b3dc267
|
|
7
|
+
data.tar.gz: 8e209b414153ccb313bf10f375dcc95fde7db4d53e8adc57af1f79b1c03a12b415e82e626cb8d37f570b0c731ee372f6a536d14fe0195af3afde248c97ce1222
|
data/README.md
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
# Colsole
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
[](https://github.com/DannyBen/colsole/actions?query=workflow%3ATest)
|
|
5
|
-
[](https://codeclimate.com/github/DannyBen/colsole/maintainability)
|
|
6
|
-
|
|
7
|
-
---
|
|
3
|
+

|
|
8
4
|
|
|
9
5
|
Utility functions for colorful console applications.
|
|
10
6
|
|
|
@@ -13,7 +9,7 @@ Utility functions for colorful console applications.
|
|
|
13
9
|
> - Version 1.0.x is not compatible with older versions
|
|
14
10
|
> - Version 0.8.x is compatible with both the old syntax and new syntax
|
|
15
11
|
>
|
|
16
|
-
> See [
|
|
12
|
+
> See [Upgrading](#upgrading) below.
|
|
17
13
|
|
|
18
14
|
## Install
|
|
19
15
|
|
data/lib/colsole/version.rb
CHANGED
data/lib/colsole.rb
CHANGED
|
@@ -115,7 +115,9 @@ module_function
|
|
|
115
115
|
end
|
|
116
116
|
|
|
117
117
|
def process_color_markers(string)
|
|
118
|
-
|
|
118
|
+
color_codes = Regexp.union(ANSI_COLORS.keys)
|
|
119
|
+
|
|
120
|
+
string.gsub(/(#{color_codes})([ubi]{0,3})`([^`]*)`/) do
|
|
119
121
|
color = ANSI_COLORS[$1]
|
|
120
122
|
styles = $2.chars.map { |a| ANSI_STYLES[a] }.join
|
|
121
123
|
text = $3
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: colsole
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Danny Ben Shitrit
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies: []
|
|
13
12
|
description: Utility functions for making colorful console applications
|
|
14
13
|
email: db@dannyben.com
|
|
@@ -23,8 +22,10 @@ homepage: https://github.com/DannyBen/colsole
|
|
|
23
22
|
licenses:
|
|
24
23
|
- MIT
|
|
25
24
|
metadata:
|
|
25
|
+
bug_tracker_uri: https://github.com/DannyBen/colsole/issues
|
|
26
|
+
changelog_uri: https://github.com/DannyBen/colsole/blob/master/CHANGELOG.md
|
|
27
|
+
source_code_uri: https://github.com/DannyBen/colsole
|
|
26
28
|
rubygems_mfa_required: 'true'
|
|
27
|
-
post_install_message:
|
|
28
29
|
rdoc_options: []
|
|
29
30
|
require_paths:
|
|
30
31
|
- lib
|
|
@@ -32,15 +33,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
32
33
|
requirements:
|
|
33
34
|
- - ">="
|
|
34
35
|
- !ruby/object:Gem::Version
|
|
35
|
-
version: '
|
|
36
|
+
version: '3.1'
|
|
36
37
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
37
38
|
requirements:
|
|
38
39
|
- - ">="
|
|
39
40
|
- !ruby/object:Gem::Version
|
|
40
41
|
version: '0'
|
|
41
42
|
requirements: []
|
|
42
|
-
rubygems_version:
|
|
43
|
-
signing_key:
|
|
43
|
+
rubygems_version: 4.0.3
|
|
44
44
|
specification_version: 4
|
|
45
45
|
summary: Colorful Console Applications
|
|
46
46
|
test_files: []
|