dvla-herodotus 2.0.0 → 2.1.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/README.md +32 -23
- data/lib/dvla/herodotus/string.rb +18 -0
- data/lib/dvla/herodotus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc15c4c23089f2d6e98ddff53324e32a3d576fc185cd5fd35ddff63a4a866651
|
4
|
+
data.tar.gz: 251dff6cefa66914f10fee24be7e18ef4f06831a20c90c7318f1719a21fbfa14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd63ffcf36a5b217ba467b0b3bdec19da6a40a2e0c6e2072ecc5bb5d3be3aaf65f6894903d3329ce516fed6eec3bc3a5980b1870d2ac9a068234422285a860ba
|
7
|
+
data.tar.gz: eff9d40bd3676ae15eaeb15ed8173bbebcf4f437b67c99598ec4d551720705bd350df0cea15bceda2e44be238df528d6d2b8d8aaf0fbf8f503ae7716085e7ae1
|
data/README.md
CHANGED
@@ -88,29 +88,38 @@ Also included is a series of additional methods on `String` that allow you to mo
|
|
88
88
|
example_string = 'Multicoloured String'.blue.bg_red.bold
|
89
89
|
```
|
90
90
|
|
91
|
-
| Method | Function
|
92
|
-
|
93
|
-
| blue | Sets the string's colour to blue
|
94
|
-
| red | Sets the string's colour to red
|
95
|
-
| green | Sets the string's colour to green
|
96
|
-
| brown | Sets the string's colour to brown
|
97
|
-
| blue | Sets the string's colour to blue
|
98
|
-
| magenta | Sets the string's colour to magenta
|
99
|
-
| cyan | Sets the string's colour to cyan
|
100
|
-
| gray | Sets the string's colour to gray
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
91
|
+
| Method | Function |
|
92
|
+
|---------------|--------------------------------------------------|
|
93
|
+
| blue | Sets the string's colour to blue |
|
94
|
+
| red | Sets the string's colour to red |
|
95
|
+
| green | Sets the string's colour to green |
|
96
|
+
| brown | Sets the string's colour to brown |
|
97
|
+
| blue | Sets the string's colour to blue |
|
98
|
+
| magenta | Sets the string's colour to magenta |
|
99
|
+
| cyan | Sets the string's colour to cyan |
|
100
|
+
| gray | Sets the string's colour to gray |
|
101
|
+
| grey | Sets the string's colour to grey (alias of gray) |
|
102
|
+
| bright_blue | Sets the string's colour to bright blue |
|
103
|
+
| bright_red | Sets the string's colour to bright red |
|
104
|
+
| bright_green | Sets the string's colour to bright green |
|
105
|
+
| bright_yellow | Sets the string's colour to bright yellow |
|
106
|
+
| bright_blue | Sets the string's colour to bright blue |
|
107
|
+
| bright_magenta| Sets the string's colour to bright magenta |
|
108
|
+
| bright_cyan | Sets the string's colour to bright cyan |
|
109
|
+
| white | Sets the string's colour to white |
|
110
|
+
| bg_blue | Sets the string's background colour to blue |
|
111
|
+
| bg_red | Sets the string's background colour to red |
|
112
|
+
| bg_green | Sets the string's background colour to green |
|
113
|
+
| bg_brown | Sets the string's background colour to brown |
|
114
|
+
| bg_blue | Sets the string's background colour to blue |
|
115
|
+
| bg_magenta | Sets the string's background colour to magenta |
|
116
|
+
| bg_cyan | Sets the string's background colour to cyan |
|
117
|
+
| bg_gray | Sets the string's background colour to gray |
|
118
|
+
| bold | Sets the string to be bold |
|
119
|
+
| italic | Sets the string to be italic |
|
120
|
+
| underline | Sets the string to be underline |
|
121
|
+
| blink | Sets the string to blink |
|
122
|
+
| reverse_color | Reverses the colour of the string |
|
114
123
|
|
115
124
|
## Development
|
116
125
|
|
@@ -15,6 +15,24 @@ class String
|
|
15
15
|
|
16
16
|
def gray = "\e[37m#{self}\e[0m"
|
17
17
|
|
18
|
+
alias grey gray
|
19
|
+
|
20
|
+
def bright_black = "\e[90m#{self}\e[0m"
|
21
|
+
|
22
|
+
def bright_red = "\e[91m#{self}\e[0m"
|
23
|
+
|
24
|
+
def bright_green = "\e[92m#{self}\e[0m"
|
25
|
+
|
26
|
+
def bright_yellow = "\e[93m#{self}\e[0m"
|
27
|
+
|
28
|
+
def bright_blue = "\e[94m#{self}\e[0m"
|
29
|
+
|
30
|
+
def bright_magenta = "\e[95m#{self}\e[0m"
|
31
|
+
|
32
|
+
def bright_cyan = "\e[96m#{self}\e[0m"
|
33
|
+
|
34
|
+
def white = "\e[97m#{self}\e[0m"
|
35
|
+
|
18
36
|
def bg_black = "\e[40m#{self}\e[0m"
|
19
37
|
|
20
38
|
def bg_red = "\e[41m#{self}\e[0m"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dvla-herodotus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Driver and Vehicle Licensing Agency (DVLA)
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-04
|
12
|
+
date: 2024-12-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dvla-lint
|