ex_aequo 0.2.4 → 0.2.5

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: dbaa588eab804e73e215a93ffba36c2ad1b3e9d21bbd4ecbc4c7a7fb09651202
4
- data.tar.gz: 8a00544eeac7b7b84be82c40eb18cf1e20564b0068be5fa7389ad11ecd326c53
3
+ metadata.gz: c6b01e509cb74f6f5082dab85a74484caab9cc5cf7b36c93fce837f262dc947f
4
+ data.tar.gz: 6e24bdda3f88cdb57c82796b300139e33e7a0fa41db8443e7fb1644d8ceef8c7
5
5
  SHA512:
6
- metadata.gz: e12437e0e3eb07b01e3a93e7bfa84fcc58669a106def8b2f3e772b1362d133043020fca238859044a3867d6f735a7e7b887156a653bab54ec08c15f76ec25bc4
7
- data.tar.gz: 053325ff4a709301ade2652c18b9e7fbd1f21c5accc229b294d0fcb343636b160ce993cc1b9c074697829f703abf1cf5d750775835c5d3865686776506d38c6d
6
+ metadata.gz: 75f600153b4b90bc5851259db66741785a388bde1c25975cd73c294c19e4b7fdbcfab2061a10b88a090a83ba2bdf3829ec8a80cc62c3504acf8ea56854eb0b6a
7
+ data.tar.gz: 036fd48fcfbbc5cc18c2749f0024cb76e4a2ff597b384b47269066c723bcfe5b3e20a07699f3e67e68265be88845fc6ebd358e92b0a60ac67b886972bb939466
@@ -3,8 +3,13 @@
3
3
  require_relative '../color'
4
4
  module ExAequo
5
5
  module Color
6
+
6
7
  module Text extend self
7
-
8
+ Specials = {
9
+ reset: ExAequo::Color.reset,
10
+ eol: "\n"
11
+ }
12
+
8
13
  def put_col(*segments, to: $stdout)
9
14
  to.puts(colorized_text(segments))
10
15
  end
@@ -34,11 +39,7 @@ module ExAequo
34
39
  def _colorize(color)
35
40
  case ExAequo::Color::Ansi::AnsiColorEscape[color]
36
41
  when nil
37
- if color == :reset
38
- ExAequo::Color.reset
39
- else
40
- raise ArgumentError, "#{color} not yet implemented"
41
- end
42
+ Special.fetch(color) { raise ArgumentError, "#{color} not yet implemented" }
42
43
  else
43
44
  ExAequo::Color::Ansi.ansi(color)
44
45
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module ExAequo
4
4
  module Version
5
- VERSION = '0.2.4'
5
+ VERSION = '0.2.5'
6
6
  end
7
7
  end
8
8
  # SPDX-License-Identifier: Apache-2.0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ex_aequo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Dober