tty-spinner 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 806a1cadc39a03d6b98e3e365fd1c528cc250ae8
4
- data.tar.gz: 05929fcc41b54e854a141ff8b52a599081acce85
3
+ metadata.gz: 1c26cc2927383414d21521728ed1f422220ba6a6
4
+ data.tar.gz: 3249e7dbba98b16a202ab085bd686994d4abbbde
5
5
  SHA512:
6
- metadata.gz: f64c7e4b3d3acc4a9bc2bc688481d3146210498484931c22a0549494c3d494c198f17dd0457a567ede62fee8838431637e09395804e0735943edb87c32857ebc
7
- data.tar.gz: 107b562da5049da6b968bd1ada2fc58521b949abcd225b4793d2f36a5d434ec4a9873895ebe6f937bdbdea2a5f25cfeb71c2c66c0f5221082479e9bac4056e35
6
+ metadata.gz: 124f9ca4848567f0c79def88f9db19afd25a6844624867292c89013959a96cf31fa710f342b48248aa249e7e5484a8d30da71d919c9277cd162c78adff929e48
7
+ data.tar.gz: 58417c89c98f29482eca0b33cf1b285bab9d45260458284e00f934c57d8153a3be0baca2ad64622e5c730592cd15331ddd6827f26597daeac28d03c5a747ba57
data/lib/tty/spinner.rb CHANGED
@@ -300,6 +300,7 @@ module TTY
300
300
  #
301
301
  # @api public
302
302
  def update(tokens)
303
+ clear_line if spinning?
303
304
  @tokens.merge!(tokens)
304
305
  end
305
306
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module TTY
4
4
  class Spinner
5
- VERSION = "0.4.0"
5
+ VERSION = "0.4.1"
6
6
  end # Spinner
7
7
  end # TTY
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tty-spinner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Murach