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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 832d466f34ab604a7a9cc7b4e92b94aea79fc4fd52e6383c767bf17483be5d7b
4
- data.tar.gz: ceb677bb2f0b6125e2f80717709bbb65d4c9b43bc9bf00d994f4c337a0317536
3
+ metadata.gz: c0eb4d2ccfbad964021e0ca4fbc960c9dad7b94656ad9219df64b466923f20f8
4
+ data.tar.gz: 3f7f6cfeaf1ae7a1a3d32e0d079acbd538406947587e33f7af28e8e9bb0fda27
5
5
  SHA512:
6
- metadata.gz: 5aa0974a9282c9c3140ae0e16e2b8dfaec4b846cea832a2c46f5d35cd5200ce76d93ebb3bad5f24e785489af1143b3da20acb4f9e8f09e2442b01c90a52fbe54
7
- data.tar.gz: 957dc4bf62fd4fcecc0d11e7a2bee220b03e75d0283bdc6d123026fc117b305c2d36b66a9a83b81fbe5f44547aade7cd0ac6dd5cb45ea4bd221cb02c10a0c446
6
+ metadata.gz: d8da75c93b2ec90c5371026a0ab5b592150806e460197b7a61fb2e65f89027238343d55a3bbe1a4be5daff3564f895829cf8377dbbd7edb036bba6f82b3dc267
7
+ data.tar.gz: 8e209b414153ccb313bf10f375dcc95fde7db4d53e8adc57af1f79b1c03a12b415e82e626cb8d37f570b0c731ee372f6a536d14fe0195af3afde248c97ce1222
data/README.md CHANGED
@@ -1,10 +1,6 @@
1
1
  # Colsole
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/colsole.svg)](https://badge.fury.io/rb/colsole)
4
- [![Build Status](https://github.com/DannyBen/colsole/workflows/Test/badge.svg)](https://github.com/DannyBen/colsole/actions?query=workflow%3ATest)
5
- [![Maintainability](https://api.codeclimate.com/v1/badges/0556015f7cd2080531a1/maintainability)](https://codeclimate.com/github/DannyBen/colsole/maintainability)
6
-
7
- ---
3
+ ![repocard](https://repocard.dannyben.com/svg/colsole.svg)
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 [Uprading](#upgrading) below.
12
+ > See [Upgrading](#upgrading) below.
17
13
 
18
14
  ## Install
19
15
 
@@ -1,3 +1,3 @@
1
1
  module Colsole
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
data/lib/colsole.rb CHANGED
@@ -115,7 +115,9 @@ module_function
115
115
  end
116
116
 
117
117
  def process_color_markers(string)
118
- string.gsub(/([rgybmcn])([ubi]{0,3})`([^`]*)`/) do
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.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: 2023-01-30 00:00:00.000000000 Z
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: '2.7'
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: 3.4.5
43
- signing_key:
43
+ rubygems_version: 4.0.3
44
44
  specification_version: 4
45
45
  summary: Colorful Console Applications
46
46
  test_files: []