pipetext 0.0.3 → 0.0.4
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 +2 -2
- metadata +14 -18
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
3
|
+
metadata.gz: a433cb2ed3cd89a6076949472f6c8d2a2894031b24b0fd765e82fcdc121dd2d5
|
|
4
4
|
data.tar.gz: a43d6f3095053170b85f7838ec63999c9fff7b1a63fcd7a63b99f142d89f2699
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
6
|
+
metadata.gz: 862a00bea720cc8beb4659365e93aa252b18092dc8bd6d6e2a3023f0df7f9d3a31d758e5cb64812eaa27888153eb89d974f0a689f01fe1679eabfd5a277b31b3
|
|
7
7
|
data.tar.gz: be8bb30d38ee21fa304b2e68e0834df9a93bbf30a0f1f70139e8f2fc652f616d1a47a9b0f17ba96e9cefb8dcaad106de98ec1b42b1021908c4c6bdda3517fbee
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pipetext
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Minaswan Nakamoto
|
|
@@ -15,32 +15,28 @@ description: |2
|
|
|
15
15
|
== Easily add colors, boxes, repetitions and emojis to your terminal output using pipes (|).
|
|
16
16
|
|
|
17
17
|
Install using the Ruby Gem:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
```
|
|
18
|
+
|
|
19
|
+
> gem install pipetext
|
|
21
20
|
|
|
22
21
|
Includes a Ruby library module which can be included in your code:
|
|
23
22
|
|
|
24
|
-
|
|
25
|
-
require 'pipetext'
|
|
23
|
+
require 'pipetext'
|
|
26
24
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
class YellowPrinter
|
|
26
|
+
include PipeText
|
|
27
|
+
def print(string)
|
|
28
|
+
write('|Y' + string + '|n')
|
|
29
|
+
end
|
|
31
30
|
end
|
|
32
|
-
end
|
|
33
31
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
```
|
|
32
|
+
printer = YellowPrinter.new
|
|
33
|
+
printer.print('This is yellow')
|
|
37
34
|
|
|
38
35
|
The gem includes a command line interface too:
|
|
39
|
-
```
|
|
40
|
-
> pipetext
|
|
41
36
|
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
> pipetext
|
|
38
|
+
|
|
39
|
+
> pipetext '|Ccyan|n'
|
|
44
40
|
email: minaswan.nakamoto@onionmail.org
|
|
45
41
|
executables:
|
|
46
42
|
- pipetext
|