dvla-herodotus 2.1.0 → 2.2.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
- data/lib/dvla/herodotus/string.rb +39 -57
- data/lib/dvla/herodotus/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2eb770ebff3f1d698f1498ae9d09f6ce70735fe4a0b4e8fb48047db6fffa9497
|
4
|
+
data.tar.gz: 3b32cbac5261b3f04831b455f0bdc1e12d7579ba3006b32fedf7a0214b6c1219
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e79ed58e9d0b3bbce41cc04c61ba6ffac86faee95ef257bc1be5f38c14cd9c2606c3452b13fb4f2aae5411137827aa29e70e4a2b038b8f8bf18f74dcc4f95793
|
7
|
+
data.tar.gz: 9fceaf98cfc77253cf2f772367698486a250ca3659d4b5d0399ab7d18b4b95274951c1e7cda5820e3f8019e8941f34f1554208bbc5d0fdda85bd3a5ffa085547
|
@@ -1,61 +1,43 @@
|
|
1
1
|
class String
|
2
|
-
def
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
def
|
9
|
-
|
10
|
-
def
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
def
|
15
|
-
|
16
|
-
def gray =
|
17
|
-
|
2
|
+
def colourise(code, reset_code = 39)
|
3
|
+
"\e[#{code}m#{self}\e[#{reset_code}m"
|
4
|
+
end
|
5
|
+
alias colorize colourise
|
6
|
+
|
7
|
+
def black = colourise(30)
|
8
|
+
def red = colourise(31)
|
9
|
+
def green = colourise(32)
|
10
|
+
def brown = colourise(33)
|
11
|
+
alias yellow brown
|
12
|
+
|
13
|
+
def blue = colourise(34)
|
14
|
+
def magenta = colourise(35)
|
15
|
+
def cyan = colourise(36)
|
16
|
+
def gray = colourise(37)
|
18
17
|
alias grey gray
|
19
18
|
|
20
|
-
def bright_black =
|
21
|
-
|
22
|
-
def
|
23
|
-
|
24
|
-
def
|
25
|
-
|
26
|
-
def
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
def
|
31
|
-
|
32
|
-
def
|
33
|
-
|
34
|
-
def
|
35
|
-
|
36
|
-
def
|
37
|
-
|
38
|
-
def
|
39
|
-
|
40
|
-
def
|
41
|
-
|
42
|
-
def
|
43
|
-
|
44
|
-
def bg_blue = "\e[44m#{self}\e[0m"
|
45
|
-
|
46
|
-
def bg_magenta = "\e[45m#{self}\e[0m"
|
47
|
-
|
48
|
-
def bg_cyan = "\e[46m#{self}\e[0m"
|
49
|
-
|
50
|
-
def bg_gray = "\e[47m#{self}\e[0m"
|
51
|
-
|
52
|
-
def bold = "\e[1m#{self}\e[22m"
|
53
|
-
|
54
|
-
def italic = "\e[3m#{self}\e[23m"
|
55
|
-
|
56
|
-
def underline = "\e[4m#{self}\e[24m"
|
57
|
-
|
58
|
-
def blink = "\e[5m#{self}\e[25m"
|
59
|
-
|
60
|
-
def reverse_color = "\e[7m#{self}\e[27m"
|
19
|
+
def bright_black = colourise(90)
|
20
|
+
def bright_red = colourise(91)
|
21
|
+
def bright_green = colourise(92)
|
22
|
+
def bright_yellow = colourise(93)
|
23
|
+
def bright_blue = colourise(94)
|
24
|
+
def bright_magenta = colourise(95)
|
25
|
+
def bright_cyan = colourise(96)
|
26
|
+
def white = colourise(97)
|
27
|
+
|
28
|
+
def bg_black = colourise(40, 49)
|
29
|
+
def bg_red = colourise(41, 49)
|
30
|
+
def bg_green = colourise(42, 49)
|
31
|
+
def bg_brown = colourise(43, 49)
|
32
|
+
def bg_blue = colourise(44, 49)
|
33
|
+
def bg_magenta = colourise(45, 49)
|
34
|
+
def bg_cyan = colourise(46, 49)
|
35
|
+
def bg_gray = colourise(47, 49)
|
36
|
+
|
37
|
+
def bold = colourise(1, 22)
|
38
|
+
def italic = colourise(3, 23)
|
39
|
+
def underline = colourise(4, 24)
|
40
|
+
def blink = colourise(5, 25)
|
41
|
+
def reverse_color = colourise(7, 27)
|
42
|
+
alias reverse_colour reverse_color
|
61
43
|
end
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dvla-herodotus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Driver and Vehicle Licensing Agency (DVLA)
|
8
8
|
- George Bell
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2025-09-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dvla-lint
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '3.8'
|
42
|
-
description:
|
42
|
+
description:
|
43
43
|
email:
|
44
44
|
- george.bell.contractor@dvla.gov.uk
|
45
45
|
executables: []
|
@@ -67,7 +67,7 @@ homepage: https://github.com/dvla/herodotus
|
|
67
67
|
licenses:
|
68
68
|
- MIT
|
69
69
|
metadata: {}
|
70
|
-
post_install_message:
|
70
|
+
post_install_message:
|
71
71
|
rdoc_options: []
|
72
72
|
require_paths:
|
73
73
|
- lib
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
version: '0'
|
84
84
|
requirements: []
|
85
85
|
rubygems_version: 3.5.3
|
86
|
-
signing_key:
|
86
|
+
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: Provides a lightweight logger with a common format
|
89
89
|
test_files: []
|