pipetext 0.1.4 → 0.1.5
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 +14 -6
- data/lib/pipetext/pipetext.rb +838 -0
- data/lib/{substitute_emoji_names.rb → pipetext/substitute_emoji_names.rb} +1 -0
- data/lib/pipetext/version.rb +9 -0
- data/lib/pipetext.rb +10 -831
- metadata +13 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8913bda36e869217758103b0ceb485ec76b5ebac30ae1b126bcad79ed7f4c4cc
|
|
4
|
+
data.tar.gz: 5b1dcc7770082b825b962fa3a7b2ab46dec40105eb61604ff3a27b0987190ee9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0eff6ce751e2fc0a8043db2ce0e31071a17e6b3ccefeaca9e72decad10cada1dcd778f94c1d28d84351ee4870ada2ac46d6dbd0dd0b067b8bd967aaed8b8ff02
|
|
7
|
+
data.tar.gz: d6f716f80d88ed75811ac841398dcb5bbfad125a61aebd13c8a07edf8c8665523157270cae8411163cdb9d91a87b3ab81d144a61bf33fbdde72258e24e04e6f7
|
data/bin/pipetext
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
2
3
|
|
|
3
|
-
#
|
|
4
|
-
require_relative
|
|
4
|
+
# Allow older versions of Ruby to respond to the require_relative method
|
|
5
|
+
if(!Kernel.respond_to?(:require_relative))
|
|
6
|
+
module Kernel
|
|
7
|
+
def require_relative(path)
|
|
8
|
+
require File.join(File.dirname(caller[0]), path.to_str)
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
5
12
|
|
|
6
|
-
|
|
7
|
-
#require 'pipetext'
|
|
13
|
+
require_relative '../lib/pipetext.rb'
|
|
8
14
|
|
|
9
15
|
pipe = Class.new.extend(PipeText)
|
|
10
16
|
|
|
@@ -31,8 +37,9 @@ Add spaces to line end ||; Set line end ||]#
|
|
|
31
37
|
Set current x,y cursor position ||[x,y] Terminal bell ||[bell]
|
|
32
38
|
Move cursor up 1 line ||^ Hide cursor ||h
|
|
33
39
|
Move cursor down 1 line ||v Unhide cursor ||H
|
|
34
|
-
Move cursor forward 1 character ||>
|
|
35
|
-
Move cursor back 1 character ||< Sleep timer in
|
|
40
|
+
Move cursor forward 1 character ||> Sleep timer in seconds ||[#s]
|
|
41
|
+
Move cursor back 1 character ||< Sleep timer in milliseconds ||[#ms]
|
|
42
|
+
|
|
36
43
|
|
|
37
44
|
Emojis: https://unicode.org/emoji/charts/full-emoji-list.html
|
|
38
45
|
||[Abbreviated CLDR Short Name] |[smiling face with heart-eyes] ||[smiling face with heart-eyes] or
|
|
@@ -76,6 +83,7 @@ if(ARGV[0] == nil && STDIN.tty? == true)
|
|
|
76
83
|
puts "pipetext '|10~ &r|----|O> ALL YOUR |kBASE|n |3\\~ARE|3\\~ BELONG TO US. <|----|O&n|\\n~|n'"
|
|
77
84
|
puts
|
|
78
85
|
pipe.paint(pipetext_example)
|
|
86
|
+
pipe.paint("PipeText Version |c#{PipeText::VERSION}|n")
|
|
79
87
|
else
|
|
80
88
|
if(STDIN.tty? == false)
|
|
81
89
|
pipe.paint(STDIN.read)
|