tone 1.6.0 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/README.adoc +2 -0
- data/lib/tone/decoder.rb +4 -4
- data/tone.gemspec +4 -4
- data.tar.gz.sig +0 -0
- metadata +10 -7
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48788c9aa501191dca33fcfe73a0796ec20b36231f3aa1ecf931f73e9ba23bfd
|
4
|
+
data.tar.gz: 6684b4726c8998d59ed03e530466606960dea13ad3e2c9be9d6d5a6d6c3dc2dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9368f63103e2bf0992c39d1edc73e5e46e9f417ba3d4bc1dbc7d11b7b9fd03c22c4440ce3dc9e0c7b4a594d81960c5d8c5c56a538322de870e71d152ff7b8d78
|
7
|
+
data.tar.gz: 8877c76af58d219a3c0f23fdbb09ef250b4e8ff4839a6650370c9943250f87928fac4d376f1e8ae65ae34e3aecc14ab06e49c26f1b580187e33219204d1e11e5
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.adoc
CHANGED
@@ -499,6 +499,8 @@ bin/rake
|
|
499
499
|
|
500
500
|
== link:https://alchemists.io/policies/contributions[Contributions]
|
501
501
|
|
502
|
+
== link:https://alchemists.io/policies/developer_certificate_of_origin[Developer Certificate of Origin]
|
503
|
+
|
502
504
|
== link:https://alchemists.io/projects/tone/versions[Versions]
|
503
505
|
|
504
506
|
== link:https://alchemists.io/community[Community]
|
data/lib/tone/decoder.rb
CHANGED
@@ -6,7 +6,7 @@ module Tone
|
|
6
6
|
# Decodes color encoded text into metadata (hash).
|
7
7
|
class Decoder
|
8
8
|
PATTERN = /
|
9
|
-
\e\[ # Start
|
9
|
+
\e\[ # Start.
|
10
10
|
(?<codes>[\d;]+) # Style codes.
|
11
11
|
m # Start suffix.
|
12
12
|
(?<text>.+?) # Lazy text.
|
@@ -20,7 +20,7 @@ module Tone
|
|
20
20
|
@prefix_pattern = /.*#{pattern}/m
|
21
21
|
end
|
22
22
|
|
23
|
-
def call(text) = scan client.new(
|
23
|
+
def call(text) = scan client.new(text.to_s)
|
24
24
|
|
25
25
|
private
|
26
26
|
|
@@ -28,9 +28,9 @@ module Tone
|
|
28
28
|
|
29
29
|
def scan scanner, collection: []
|
30
30
|
until scanner.eos?
|
31
|
-
|
31
|
+
match = scanner.scan_until pattern
|
32
32
|
|
33
|
-
return collection.append [scanner.string[scanner.rest]] unless
|
33
|
+
return collection.append [scanner.string[scanner.rest]] unless match
|
34
34
|
|
35
35
|
normal = scanner.pre_match.sub prefix_pattern, ""
|
36
36
|
|
data/tone.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "tone"
|
5
|
-
spec.version = "1.
|
5
|
+
spec.version = "1.8.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://alchemists.io/projects/tone"
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.metadata = {
|
13
13
|
"bug_tracker_uri" => "https://github.com/bkuhlmann/tone/issues",
|
14
14
|
"changelog_uri" => "https://alchemists.io/projects/tone/versions",
|
15
|
-
"
|
15
|
+
"homepage_uri" => "https://alchemists.io/projects/tone",
|
16
16
|
"funding_uri" => "https://github.com/sponsors/bkuhlmann",
|
17
17
|
"label" => "Tone",
|
18
18
|
"rubygems_mfa_required" => "true",
|
@@ -22,8 +22,8 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.signing_key = Gem.default_key_path
|
23
23
|
spec.cert_chain = [Gem.default_cert_path]
|
24
24
|
|
25
|
-
spec.required_ruby_version = "
|
26
|
-
spec.add_dependency "refinements", "~> 12.
|
25
|
+
spec.required_ruby_version = ">= 3.3", "<= 3.4"
|
26
|
+
spec.add_dependency "refinements", "~> 12.9"
|
27
27
|
spec.add_dependency "zeitwerk", "~> 2.6"
|
28
28
|
|
29
29
|
spec.extra_rdoc_files = Dir["README*", "LICENSE*"]
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
3n5C8/6Zh9DYTkpcwPSuIfAga6wf4nXc9m6JAw8AuMLaiWN/r/2s4zJsUHYERJEu
|
36
36
|
gZGm4JqtuSg8pYjPeIJxS960owq+SfuC+jxqmRA54BisFCv/0VOJi7tiJVY=
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2024-
|
38
|
+
date: 2024-10-07 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: refinements
|
@@ -43,14 +43,14 @@ dependencies:
|
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '12.
|
46
|
+
version: '12.9'
|
47
47
|
type: :runtime
|
48
48
|
prerelease: false
|
49
49
|
version_requirements: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '12.
|
53
|
+
version: '12.9'
|
54
54
|
- !ruby/object:Gem::Dependency
|
55
55
|
name: zeitwerk
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,7 +92,7 @@ licenses:
|
|
92
92
|
metadata:
|
93
93
|
bug_tracker_uri: https://github.com/bkuhlmann/tone/issues
|
94
94
|
changelog_uri: https://alchemists.io/projects/tone/versions
|
95
|
-
|
95
|
+
homepage_uri: https://alchemists.io/projects/tone
|
96
96
|
funding_uri: https://github.com/sponsors/bkuhlmann
|
97
97
|
label: Tone
|
98
98
|
rubygems_mfa_required: 'true'
|
@@ -103,16 +103,19 @@ require_paths:
|
|
103
103
|
- lib
|
104
104
|
required_ruby_version: !ruby/object:Gem::Requirement
|
105
105
|
requirements:
|
106
|
-
- - "
|
106
|
+
- - ">="
|
107
107
|
- !ruby/object:Gem::Version
|
108
108
|
version: '3.3'
|
109
|
+
- - "<="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '3.4'
|
109
112
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
113
|
requirements:
|
111
114
|
- - ">="
|
112
115
|
- !ruby/object:Gem::Version
|
113
116
|
version: '0'
|
114
117
|
requirements: []
|
115
|
-
rubygems_version: 3.5.
|
118
|
+
rubygems_version: 3.5.21
|
116
119
|
signing_key:
|
117
120
|
specification_version: 4
|
118
121
|
summary: A customizable ANSI text terminal colorizer.
|
metadata.gz.sig
CHANGED
Binary file
|