tone 2.6.0 → 3.0.0
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/README.adoc +6 -5
- data/lib/tone/configuration/loader.rb +0 -1
- data/tone.gemspec +3 -3
- data.tar.gz.sig +0 -0
- metadata +5 -5
- metadata.gz.sig +1 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 683d490e2b1abd71a24dde21a0fcf39668cd7e5c16b91ae750a24c33ce34aab7
|
|
4
|
+
data.tar.gz: 0ba0bfacf4191a8a8502cbfaa19a0813cb1db46cfb13038a5ad683febe777457
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 67ff7a5103e2a3a99983a14ffa1bcc9fd5de9783eea9a1edd9dd78630b2bb848c77e74e6e6d8da5deff92eba221623a0bb412b0830400452951a3b12f0ec0010
|
|
7
|
+
data.tar.gz: 8aadfed4e6276084ac970a0de07be6e00215359a86f3f594ef3b5468f618a327891de766bf67e83d13148ea743caa2bbbbc8d9c9f0359e4f869f6e023097bfeb
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/README.adoc
CHANGED
|
@@ -385,22 +385,23 @@ tone.get_alias :bogus
|
|
|
385
385
|
# Invalid alias or default: :bogus. (Tone::Error)
|
|
386
386
|
----
|
|
387
387
|
|
|
388
|
-
===
|
|
388
|
+
=== RSpec
|
|
389
389
|
|
|
390
|
-
|
|
390
|
+
You might find it convenient to use the `have_color` {rspec_link} matcher when writing specs. This matcher is optional and _must be manually required_ for use in your spec helper:
|
|
391
391
|
|
|
392
392
|
[source,ruby]
|
|
393
393
|
----
|
|
394
394
|
# spec_helper.rb
|
|
395
|
+
|
|
395
396
|
require "tone/rspec/matchers/have_color"
|
|
396
397
|
----
|
|
397
398
|
|
|
398
|
-
Once required, you can
|
|
399
|
+
Once required, you can use the matcher as follows:
|
|
399
400
|
|
|
400
401
|
[source,ruby]
|
|
401
402
|
----
|
|
402
403
|
RSpec.describe DemoPresenter do
|
|
403
|
-
subject(:presenter) {
|
|
404
|
+
subject(:presenter) { described_class.new color: }
|
|
404
405
|
|
|
405
406
|
let(:color) { Tone.new }
|
|
406
407
|
|
|
@@ -414,7 +415,7 @@ end
|
|
|
414
415
|
|
|
415
416
|
The first argument _must be an instanced of Tone_ because you might have custom aliases which must be known in order to validate your spec. All subsequent arguments (one to many) that follow after the first argument can be a list of decoded tuples as would normally be answered by `Tone#decode`.
|
|
416
417
|
|
|
417
|
-
In situations where the spec fails, you'll get a formatted error so you can quickly
|
|
418
|
+
In situations where the spec fails, you'll get a formatted error so you can quickly address the issue:
|
|
418
419
|
|
|
419
420
|
....
|
|
420
421
|
expected "\e[37mtest\e[0m\n" to have color decoded as:
|
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 = "
|
|
5
|
+
spec.version = "3.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 = ">=
|
|
26
|
-
spec.add_dependency "refinements", "~>
|
|
25
|
+
spec.required_ruby_version = ">= 4.0"
|
|
26
|
+
spec.add_dependency "refinements", "~> 14.0"
|
|
27
27
|
spec.add_dependency "zeitwerk", "~> 2.7"
|
|
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:
|
|
4
|
+
version: 3.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brooke Kuhlmann
|
|
@@ -41,14 +41,14 @@ dependencies:
|
|
|
41
41
|
requirements:
|
|
42
42
|
- - "~>"
|
|
43
43
|
- !ruby/object:Gem::Version
|
|
44
|
-
version: '
|
|
44
|
+
version: '14.0'
|
|
45
45
|
type: :runtime
|
|
46
46
|
prerelease: false
|
|
47
47
|
version_requirements: !ruby/object:Gem::Requirement
|
|
48
48
|
requirements:
|
|
49
49
|
- - "~>"
|
|
50
50
|
- !ruby/object:Gem::Version
|
|
51
|
-
version: '
|
|
51
|
+
version: '14.0'
|
|
52
52
|
- !ruby/object:Gem::Dependency
|
|
53
53
|
name: zeitwerk
|
|
54
54
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -101,14 +101,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
101
101
|
requirements:
|
|
102
102
|
- - ">="
|
|
103
103
|
- !ruby/object:Gem::Version
|
|
104
|
-
version: '
|
|
104
|
+
version: '4.0'
|
|
105
105
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
106
|
requirements:
|
|
107
107
|
- - ">="
|
|
108
108
|
- !ruby/object:Gem::Version
|
|
109
109
|
version: '0'
|
|
110
110
|
requirements: []
|
|
111
|
-
rubygems_version:
|
|
111
|
+
rubygems_version: 4.0.3
|
|
112
112
|
specification_version: 4
|
|
113
113
|
summary: A customizable ANSI text terminal colorizer.
|
|
114
114
|
test_files: []
|
metadata.gz.sig
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
7���.�9���r�uWf�*�uJ��^����3AX�;��[�2�/Nl;��`�b��4��{���M(���?�g�D��Ws5���l���rW�5�?�0�?0�g/�ʍ>K�e�0PB�
|
|
3
|
-
���=�:��*��:%�k��.y�;.���wm�G���2I[^�jW�/���N̈
|
|
1
|
+
������u��(�q�4�k�$ε�RD��ar��S�Lǔ��8˕D���{���W�X�o�Y�i��S#ȃ�<L��4hj�K��L1�^�tHS���������CU"��p���M�V$�%���V�K+�\�4�#�q��}������a�PI��E�x"�p�X�䵬�����~;�i���OZ^J��?�Βp&`�}�=%xLa�d�� �6;�jY�R��w����B5&�ܦ9��93���.��ɮ��#�O�8�����#���m�*٠���Q�v�'A����U7�Z��pk��F��C�\Gu�b����+�ʰ&<���,�������$�̮a���Z�nD̿�ϧF��b!�j�xE��Ϋ]�d^~
|