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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e3ef91707cd06f7a091f1648f34606d50e88feac527ba1addf96dfe9b9fd0cd
4
- data.tar.gz: 96f8a2e8b39f34c3552e7ad7f5824c8facbd1af79b29a76fc9254f465d9c8d6a
3
+ metadata.gz: bc15c4c23089f2d6e98ddff53324e32a3d576fc185cd5fd35ddff63a4a866651
4
+ data.tar.gz: 251dff6cefa66914f10fee24be7e18ef4f06831a20c90c7318f1719a21fbfa14
5
5
  SHA512:
6
- metadata.gz: 357756d95d6774075440eba3f1cc7f7c38d1980586a0e0d82cefae36e959b6a3ba18406b77a87617ccc34cb320e0d3e9e3ded369b5f8db1bae62f97b30f2e809
7
- data.tar.gz: e32fe8df4155456455e275601a7f885c8596b9c6700aa73e00169b67b63658fc49f3c8799e6d09a18048c0f4eff61ce17d4a55b37f09e15a102c08d9badccc89
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
- | bg_blue | Sets the string's background colour to blue |
102
- | bg_red | Sets the string's background colour to red |
103
- | bg_green | Sets the string's background colour to green |
104
- | bg_brown | Sets the string's background colour to brown |
105
- | bg_blue | Sets the string's background colour to blue |
106
- | bg_magenta | Sets the string's background colour to magenta |
107
- | bg_cyan | Sets the string's background colour to cyan |
108
- | bg_gray | Sets the string's background colour to gray |
109
- | bold | Sets the string to be bold |
110
- | italic | Sets the string to be italic |
111
- | underline | Sets the string to be underline |
112
- | blink | Sets the string to blink |
113
- | reverse_color | Reverses the colour of the string |
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"
@@ -1,5 +1,5 @@
1
1
  module DVLA
2
2
  module Herodotus
3
- VERSION = '2.0.0'.freeze
3
+ VERSION = '2.1.0'.freeze
4
4
  end
5
5
  end
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.0.0
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-25 00:00:00.000000000 Z
12
+ date: 2024-12-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dvla-lint