colorize 1.0.2 → 1.0.3

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: 5fd14fe9398abe190f9220d78856881233442eebb449e17ef360d37071b27d02
4
- data.tar.gz: c347bd5839c004ca73e57cc1af16bf9b54923d0f4676a06e89cf56d149fa3bbd
3
+ metadata.gz: 71f8aba9c90cbf391acaabc470d94e628d66be6df312605d382cb52b09a939af
4
+ data.tar.gz: 8efeb99bf7ae768b0d6bc528048238cf0c62f4280e7237ef78163eb1fb026282
5
5
  SHA512:
6
- metadata.gz: 2cd8c7d986dd434080bdf1c9ab14249f8f96f85a4a66ed1f84b241232cf2e4373576b04de434b3ae500d37a110be42320c8f4b1dc74bb273c851d816cb73cb52
7
- data.tar.gz: d35c48011f472e3f214019024c95b9173db56a8928fa182de24167c138000ae08364fdcdf284ccc5dc80e2f450b5d3cf782c24ccc10d6b3ac33b01631776c8a2
6
+ metadata.gz: 2543e6215f9a15e7f8507e4c9c061aec22f3a2d3f4b4d84949c4805b912728fb9a018a6b3f65fa2aefbdbb878bc1ddc99c6a5e29f83cd8229a5df31edea68c1e
7
+ data.tar.gz: 98c4349e508062160e5a80221eb686dc6fe32ef8f2b90e438cd741c4bd5ddb8dd9c288fb8e0d556aec7a2d25e0ffc47eeee4731439430fc907e0e1d099f40430
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.3 / 2023-06-21
4
+ - fix ? ommit
5
+
3
6
  ## 1.0.2 / 2023-06-21
4
7
  - check if color exists when extending class
5
8
 
@@ -118,7 +118,7 @@ module Colorize
118
118
  # Scan for colorized string
119
119
  #
120
120
  def scan_for_colors
121
- scan(/\001?\033\[([0-9;]+)m\002?(.+?)\001?\033\[0m\002?|([^\001?\033]+)/m).map do |match|
121
+ scan(/\001?\033\[([0-9;]+)m\002?(.+?)\001?\033\[0m\002?|([^\001\033]+)/m).map do |match|
122
122
  split_colors(match)
123
123
  end
124
124
  end
@@ -4,5 +4,5 @@
4
4
  # Gem version
5
5
  #
6
6
  module Colorize
7
- VERSION = '1.0.2'
7
+ VERSION = '1.0.3'
8
8
  end
@@ -21,7 +21,7 @@ class TestColorize < Minitest::Test
21
21
  end
22
22
 
23
23
  def test_blue_hash
24
- assert_equal "\001\033[0;34;49m\002This is also blue\001\033[0m\002", 'This is also blue'.colorize(:color => :blue)
24
+ assert_equal "\001\033[0;34;49m\002This is also blue?\001\033[0m\002", 'This is also blue?'.colorize(:color => :blue)
25
25
  end
26
26
 
27
27
  def test_light_blue_symbol
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: colorize
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michał Kalbarczyk