tone 0.4.1 → 1.0.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 -2
- data/lib/tone/aliaser.rb +2 -2
- data/lib/tone/encoder.rb +2 -2
- data/lib/tone.rb +3 -1
- data/tone.gemspec +3 -3
- data.tar.gz.sig +0 -0
- metadata +6 -6
- 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: '0780aa2d6e21f9a863eef4861b5cf3cebdf0b55ccb14db78a1206a2ff86dad26'
|
4
|
+
data.tar.gz: ece21dd79dd456a62329ec05e15bb9b4168da8d60e021c7bfa56f888fcddcfb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: debb39fbdd1f538df6f88170eebae00fb4b8a5f17a5d39cd2f4aa2a034fb40fee111bddc0b0cfc6604e8a7aca700d63a37d6b79832689ed3811dafb01b8854ef
|
7
|
+
data.tar.gz: 542f2252891192e99b714e91d0f8b6e4c9a6e1c2f7f067686c120dc6aa679359d8f9bcdc1a4c192c06eaf1b418949267eaefedde5e5d52cbd9d98540699b318d
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.adoc
CHANGED
@@ -475,11 +475,11 @@ You can use the IRB console for direct access to all objects:
|
|
475
475
|
bin/console
|
476
476
|
----
|
477
477
|
|
478
|
-
Lastly, there is a `bin/
|
478
|
+
Lastly, there is a `bin/demo` script which displays the default styles for quick visual reference. This is the same script used to generate the screenshots shown at the top of this document.
|
479
479
|
|
480
480
|
[source,bash]
|
481
481
|
----
|
482
|
-
bin/
|
482
|
+
bin/demo
|
483
483
|
----
|
484
484
|
|
485
485
|
== Tests
|
data/lib/tone/aliaser.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/array"
|
4
4
|
|
5
5
|
module Tone
|
6
6
|
# Allows storage of custom custom which can be referenced when colorizing text.
|
7
7
|
class Aliaser
|
8
|
-
using Refinements::
|
8
|
+
using Refinements::Array
|
9
9
|
|
10
10
|
attr_reader :defaults
|
11
11
|
|
data/lib/tone/encoder.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/
|
3
|
+
require "refinements/array"
|
4
4
|
|
5
5
|
module Tone
|
6
6
|
# Encodes plain text as colorized text.
|
7
7
|
class Encoder
|
8
|
-
using Refinements::
|
8
|
+
using Refinements::Array
|
9
9
|
|
10
10
|
def initialize aliaser: Aliaser.new, enabled: $stdout.tty?
|
11
11
|
@aliaser = aliaser
|
data/lib/tone.rb
CHANGED
@@ -14,7 +14,9 @@ module Tone
|
|
14
14
|
DEFAULTS = Configuration::Loader.new.call
|
15
15
|
CONTAINER = {defaults: DEFAULTS, aliaser: Aliaser, encoder: Encoder, decoder: Decoder}.freeze
|
16
16
|
|
17
|
-
def self.loader
|
17
|
+
def self.loader registry = Zeitwerk::Registry
|
18
|
+
@loader ||= registry.loaders.find { |loader| loader.tag == File.basename(__FILE__, ".rb") }
|
19
|
+
end
|
18
20
|
|
19
21
|
def self.new(...) = Client.new(...)
|
20
22
|
end
|
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 = "0.
|
5
|
+
spec.version = "1.0.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://alchemists.io/projects/tone"
|
@@ -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 = "~> 3.
|
26
|
-
spec.add_dependency "refinements", "~>
|
25
|
+
spec.required_ruby_version = "~> 3.3"
|
26
|
+
spec.add_dependency "refinements", "~> 12.0"
|
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: 0.
|
4
|
+
version: 1.0.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:
|
38
|
+
date: 2024-01-01 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: '
|
46
|
+
version: '12.0'
|
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: '
|
53
|
+
version: '12.0'
|
54
54
|
- !ruby/object:Gem::Dependency
|
55
55
|
name: zeitwerk
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
@@ -105,14 +105,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
105
105
|
requirements:
|
106
106
|
- - "~>"
|
107
107
|
- !ruby/object:Gem::Version
|
108
|
-
version: '3.
|
108
|
+
version: '3.3'
|
109
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
110
|
requirements:
|
111
111
|
- - ">="
|
112
112
|
- !ruby/object:Gem::Version
|
113
113
|
version: '0'
|
114
114
|
requirements: []
|
115
|
-
rubygems_version: 3.
|
115
|
+
rubygems_version: 3.5.3
|
116
116
|
signing_key:
|
117
117
|
specification_version: 4
|
118
118
|
summary: A customizable ANSI text terminal colorizer.
|
metadata.gz.sig
CHANGED
Binary file
|