smooth_terminal_print 1.0.5 → 1.0.6
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/lib/smooth_terminal_print.rb +0 -8
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0f92d15656500328dc31801362f6454559ec62f
|
4
|
+
data.tar.gz: 9c718b684e24e78310f80a19a793e9a876291c11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a63eb566774e6009d148869a24a15695f6167c4cf6ef449dd57349b09064c30800d42ba24a8c29c1a7c0d5238b4592d20ed7de369b132372ccd600caa153cde8
|
7
|
+
data.tar.gz: e6cb9cd6cce48f25e7f2891a574403347a692d8776aa737f47c779d5f1f5e7019d0bf0c70314157fe963bf21ec8dbd49eef12e747e5dc867c7f032672cf0eec2
|
@@ -36,16 +36,8 @@ module SmoothTerminalPrint
|
|
36
36
|
line = ''
|
37
37
|
else
|
38
38
|
line.strip!
|
39
|
-
# If the line includes ANSI escape codes then I'm not sure currently how to
|
40
|
-
# truncate them without creating a mess. So just skip them for now and suffer
|
41
|
-
# the consequences, being that, the screen will not refresh properly if there are ANSI
|
42
|
-
# escape codes in the string, AND the length of said string exceeds the total columns available.
|
43
|
-
if(!line.include?("\e["))
|
44
|
-
line = line[0..@columns]
|
45
|
-
end
|
46
39
|
end
|
47
40
|
|
48
|
-
#line.length.upto(@columns) { line << ' ' }
|
49
41
|
line << "\e[K"
|
50
42
|
puts line
|
51
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smooth_terminal_print
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brett Sykes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Allows the user to smoothly print to the terminal while in a tight loop
|
14
14
|
email: brettcsykes@gmail.com
|
@@ -38,7 +38,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
38
38
|
version: '0'
|
39
39
|
requirements: []
|
40
40
|
rubyforge_project:
|
41
|
-
rubygems_version: 2.6.
|
41
|
+
rubygems_version: 2.6.8
|
42
42
|
signing_key:
|
43
43
|
specification_version: 4
|
44
44
|
summary: Smoothly print to the terminal while in a tight loop
|