smooth_terminal_print 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/smooth_terminal_print.rb +0 -8
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c63032b9a568d07eb25e06fe6502779ef36b4beb
4
- data.tar.gz: 908db19db7489737698329529352810878f08f8e
3
+ metadata.gz: d0f92d15656500328dc31801362f6454559ec62f
4
+ data.tar.gz: 9c718b684e24e78310f80a19a793e9a876291c11
5
5
  SHA512:
6
- metadata.gz: d4723fc0b12f503911de99158f0791d38dd62100d02e59de1867887be737a3a26c08651fa4b28d7f69d54dd3c5c7d7677d04f27fa2a453c02af0aed84498f000
7
- data.tar.gz: 21aee7a3ed3c7bdbd0d005fa4dea158ec8ee3669c97b1755d805c712d06e4ca0c21bcafb0641060345e23a905d5fe12ae50157ef44058e2e7280574347177eec
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.5
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 00:00:00.000000000 Z
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.7
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