pipetext 0.2.7 → 0.2.8
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 → exe}/pipetext +6 -8
- data/lib/pipetext/pipetext/pipetext.rb +2408 -0
- data/lib/pipetext/{substitute_emoji_names.rb → pipetext/substitute_emoji_names.rb} +273 -256
- data/lib/pipetext/pipetext/version.rb +7 -0
- data/lib/pipetext/pipetext.rb +9 -1227
- metadata +10 -10
- data/lib/pipetext/version.rb +0 -8
- data/lib/pipetext.rb +0 -14
metadata
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pipetext
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Minaswan Nakamoto
|
|
8
|
-
bindir:
|
|
8
|
+
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies: []
|
|
@@ -19,7 +19,7 @@ description: "== Easily add colors, boxes, repetitions and emojis to your termin
|
|
|
19
19
|
set your bash prompt colors using pipetext:\n\n > PS1=$(pipetext '|$|g\\u|n@|g\\h|n:|g\\w|n$
|
|
20
20
|
')\n\n Works with files:\n\n > pipetext <filename>\n\n Works with pipes too:\n\n
|
|
21
21
|
\ > echo '|RRed test |u1f49c|n' | pipetext\n\n---\n | pipe || & ampersand &&
|
|
22
|
-
\ Toggle (&) background color mode |&\n
|
|
22
|
+
\ Toggle (&) background color mode |&\n white |w white |W black text
|
|
23
23
|
on white background |k&w\n red |r bright red |R red background &r\n
|
|
24
24
|
\ green |g bright green |G green background &g\n blue |b bright blue
|
|
25
25
|
\ |B blue background &b\n cyan |c bright cyan |C cyan background
|
|
@@ -27,8 +27,8 @@ description: "== Easily add colors, boxes, repetitions and emojis to your termin
|
|
|
27
27
|
magenta |M magenta background &m\n---\n Hex RGB color codes: Foreground |#RRGGBB
|
|
28
28
|
\ Background &#RRGGBB\n Palette colors (256) using Hex: |p33&pF8 Clear
|
|
29
29
|
Screen |!\n black with white background |K&w Blinking |@\n
|
|
30
|
-
\ white with magenta background |w&m invert |i\n
|
|
31
|
-
green background |
|
|
30
|
+
\ white with magenta background |w&m invert |i\n white with
|
|
31
|
+
green background |w&g Underlined |_\n red with cyan background
|
|
32
32
|
\ |r&c Italics |~\n bright red with blue background |R&b
|
|
33
33
|
\ Bold |+\n green with yellow background |g&y Faint |.\n
|
|
34
34
|
\ bright green with red background |G&r Crossed out |x\n normal color
|
|
@@ -47,7 +47,7 @@ description: "== Easily add colors, boxes, repetitions and emojis to your termin
|
|
|
47
47
|
\ https://unicode.org/emoji/charts/full-emoji-list.html\n |[Abbreviated
|
|
48
48
|
CLDR Short Name] \U0001F60D |[smiling face with heart-eyes] or\n ⚙ |[gear]
|
|
49
49
|
\ \U0001F4A4 |[zzz] \U0001F468 |[man] \U0001F60D |[sm f w he e]\n ✔ |U2714
|
|
50
|
-
\ ❌ |U274c
|
|
50
|
+
\ ❌ |U274c ☮ |u262E \U0001F48E |u1f48e \U0001F49C |u1f49c\n---\n\n Single
|
|
51
51
|
or double line box mode with |- or |=\n \n ┌──┬──┐ ╔══╦══╗ +--+--+
|
|
52
52
|
\ <-- Draw this with this: |15 |-[--v--] |=[--v--] |o[--v--]\n │
|
|
53
53
|
\ │ │ ║ ║ ║ | | | |15 |-! ! ! |=! ! ! |o! !
|
|
@@ -69,11 +69,11 @@ executables:
|
|
|
69
69
|
extensions: []
|
|
70
70
|
extra_rdoc_files: []
|
|
71
71
|
files:
|
|
72
|
-
-
|
|
73
|
-
- lib/pipetext.rb
|
|
72
|
+
- exe/pipetext
|
|
74
73
|
- lib/pipetext/pipetext.rb
|
|
75
|
-
- lib/pipetext/
|
|
76
|
-
- lib/pipetext/
|
|
74
|
+
- lib/pipetext/pipetext/pipetext.rb
|
|
75
|
+
- lib/pipetext/pipetext/substitute_emoji_names.rb
|
|
76
|
+
- lib/pipetext/pipetext/version.rb
|
|
77
77
|
homepage: https://github.com/MinaswanNakamoto/pipetext
|
|
78
78
|
licenses:
|
|
79
79
|
- MIT
|
data/lib/pipetext/version.rb
DELETED
data/lib/pipetext.rb
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# Allow older versions of Ruby to respond to the require_relative method
|
|
4
|
-
if(!Kernel.respond_to?(:require_relative))
|
|
5
|
-
module Kernel
|
|
6
|
-
def require_relative(path)
|
|
7
|
-
require File.join(File.dirname(caller[0]), path.to_str)
|
|
8
|
-
end
|
|
9
|
-
end
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
require_relative 'pipetext/version.rb'
|
|
13
|
-
require_relative 'pipetext/pipetext.rb'
|
|
14
|
-
require_relative 'pipetext/substitute_emoji_names.rb'
|