pipetext 0.1.1 → 0.1.2
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/bin/pipetext +8 -4
- data/lib/pipetext.rb +87 -8
- data/lib/substitute_emoji_names.rb +426 -434
- metadata +36 -35
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.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Minaswan Nakamoto
|
|
@@ -15,40 +15,41 @@ description: "== Easily add colors, boxes, repetitions and emojis to your termin
|
|
|
15
15
|
\ \n require 'pipetext'\n\n class YellowPrinter\n include PipeText\n def
|
|
16
16
|
print(string)\n write('|Y' + string + '|n')\n end\n end\n\n printer =
|
|
17
17
|
YellowPrinter.new\n printer.print('This is yellow')\n \n The gem includes a command
|
|
18
|
-
line interface too:\n \n > pipetext\n\n > pipetext '|Ccyan|n'\n
|
|
19
|
-
\
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
\
|
|
23
|
-
\ |
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
\
|
|
28
|
-
\
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
\
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
\
|
|
35
|
-
\
|
|
36
|
-
|
|
|
37
|
-
|
|
38
|
-
with
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
\
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
\
|
|
45
|
-
\
|
|
46
|
-
\
|
|
47
|
-
\
|
|
48
|
-
\
|
|
49
|
-
|
|
50
|
-
the
|
|
51
|
-
|
|
18
|
+
line interface too:\n \n > pipetext\n\n > pipetext '|Ccyan|n'\n\n Works with
|
|
19
|
+
files:\n\n > pipetext <filename>\n\n Works with pipes too:\n\n > echo '|RRed
|
|
20
|
+
test |u1f49c|n' | pipetext\n\n---\n | pipe || & ampersand && Toggle (&) background
|
|
21
|
+
color mode |&\n smoke |s white |W black text on white background
|
|
22
|
+
\ |k&w\n red |r bright red |R red background &r\n green |g
|
|
23
|
+
\ bright green |G green background &g\n blue |b bright blue |B blue
|
|
24
|
+
background &b\n cyan |c bright cyan |C cyan background &c\n yellow
|
|
25
|
+
\ |y bright yellow |Y yellow background &y\n magenta |m bright magenta |M
|
|
26
|
+
\ magenta background &m\n---\n Hex RGB color codes: Foreground |#RRGGBB Background
|
|
27
|
+
\ &#RRGGBB\n Palette colors (256) using Hex: |p33&pF8 Clear Screen |!\n
|
|
28
|
+
\ black with white background |K&w Blinking |@\n white with
|
|
29
|
+
magenta background |w&m invert |i\n smoke with green background
|
|
30
|
+
\ |s&g Underlined |_\n red with cyan background |r&c
|
|
31
|
+
\ Italics |~\n bright red with blue background |R&b Bold |+\n
|
|
32
|
+
\ green with yellow background |g&y Faint |.\n bright green
|
|
33
|
+
with red background |G&r Crossed out |x\n normal color and background
|
|
34
|
+
\ |n&n Escape Sequence |\\\n---\n Emojis: https://unicode.org/emoji/charts/full-emoji-list.html\n
|
|
35
|
+
\ |[Abbreviated CLDR Short Name] \U0001F60D |[smiling face with heart-eyes]
|
|
36
|
+
or\n ⚙ |[gear] \U0001F4A4 |[zzz] \U0001F468 |[man] \U0001F60D |[sm
|
|
37
|
+
f w he e]\n ✔ |U2714 ❌ |U274c ☮ |u262E \U0001F48E |u1f48e \U0001F49C
|
|
38
|
+
|u1f49c\n---\n Single or double line box mode with |- or |=\n \n ┌──┬──┐
|
|
39
|
+
╔══╦══╗ +--+--+ <-- Draw this with this: |15 |-[--v--] |=[--v--] |o[--v--]\n │
|
|
40
|
+
\ │ │ ║ ║ ║ | | | |15 |-! ! ! |=! ! ! |o! !
|
|
41
|
+
\ !\n 123456789012345├──┴──┤ ╠══╩══╣ +--+--+ |y1234567890|g12345|n|->--^--<
|
|
42
|
+
|=>--^--< |o>--^--< \n 15 Spaces │ │ ║ ║ | | |c15|n
|
|
43
|
+
Spaces|6 |-! ! |=! ! |o! !\n (|15 ) └─────┘ ╚═════╝ +-----+
|
|
44
|
+
\ (||15 )|9 |-{-----} |={-----} |o{-----}\n \n ┌──────────────────┐
|
|
45
|
+
\ ╔════════════════════╗ |-[|18-]|4 |g&m|=[|20-]|n&n|O\n │ │
|
|
46
|
+
\ ║ ║ |-!|18 !|4 |g&m|=!|20 !|n&n|O\n ├──────────────────┤
|
|
47
|
+
\ ╠════════════════════╣ |->|18-<|4 &m|g|=>|20-<|n&n|O\n │ │
|
|
48
|
+
\ ║ ║ |-!|18 !|4 |g&m|=!|20 !|n&n|O\n └──────────────────┘
|
|
49
|
+
\ ╚════════════════════╝ |-{|18-}|4 |g&m|={|20-}|n&n|O\n---\n Repetition
|
|
50
|
+
using | followed by the number of characters to repeat and then the character to
|
|
51
|
+
repeat.\n |15* does the * character 15 times like this: ***************\n---\n==Use
|
|
52
|
+
the ++pipetext++ command to see other options and examples.\n"
|
|
52
53
|
email: minaswan.nakamoto@onionmail.org
|
|
53
54
|
executables:
|
|
54
55
|
- pipetext
|