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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 69eeca909cd1a1744cd45d441d7003936cbd3ef7759002e67e6c70fb20800779
4
- data.tar.gz: 280790539dd73bb9d35eba90209653f318a71afb263451397014ab0844930fd6
3
+ metadata.gz: '0780aa2d6e21f9a863eef4861b5cf3cebdf0b55ccb14db78a1206a2ff86dad26'
4
+ data.tar.gz: ece21dd79dd456a62329ec05e15bb9b4168da8d60e021c7bfa56f888fcddcfb9
5
5
  SHA512:
6
- metadata.gz: 0acea2632285ec54b656d10f1193ef01a1e16abb5807f60df36c94e85147e845439df228c526b2baaf9bbcebe9d8b438d4e4b68148de825ccdac108c0dccaaa4
7
- data.tar.gz: ea97ca37c24ce2555b7dcc50ba75f92270de70dc903f1d527ef1228f3f8d5d31133512f7c8bdaa53851b35aa0c32b2118abb7d5095b1626d52a5f9f5705de80f
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/show` 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.
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/show
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/arrays"
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::Arrays
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/arrays"
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::Arrays
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(registry = Zeitwerk::Registry) = registry.loader_for __FILE__
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.4.1"
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.2"
26
- spec.add_dependency "refinements", "~> 11.0"
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.1
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: 2023-10-24 00:00:00.000000000 Z
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: '11.0'
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: '11.0'
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.2'
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.4.21
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