progress-bar 0.3.2 → 0.3.3

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: d84afa26a056994f06ba50439069f59144179337
4
- data.tar.gz: 69d20b0c3bc1c093f494c9697616689925e91734
3
+ metadata.gz: 2b00bafaf18e2c9dd201b5ce9b7be1b6dcdd52bf
4
+ data.tar.gz: cfa8e29d280b06c4085707309b8a396452b475a5
5
5
  SHA512:
6
- metadata.gz: 5ec03604e40ceffc44db6bd57f02391181a5ab6101a8f13861cafcc5c1893be6247e2193c7a84faf7755c705b7b3634d05525e660835bdbed860b891b458bf10
7
- data.tar.gz: 54706f0356cb2101eeaeab2263032cf5dc76243127816870b2faa8ee9b93ee440005dd472ed15df74f92a7cc4780e64119fbcdd24dba19412215f268a8bdb098
6
+ metadata.gz: ec47287c370e5dc281e945207b81da3f34982d4266ad391f57cadd0e527077f541ed3ab6b07010175165caddf24a944019f6f1f11195af357534fb1d5cc13eba
7
+ data.tar.gz: 7740e77422834eb275a20b13e52d5b4e5777e99ebc8ec40384aac768251a4c1a516cdfa0c67ffc0bc673a4ef756e138c1001d3910ab0f10cc25b1fc6060fa715
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.3
data/lib/progress-bar.rb CHANGED
@@ -72,7 +72,7 @@ class ProgressBar::Console < ProgressBar::Base
72
72
  def change_text
73
73
  l = (100.0*i/max).to_i
74
74
  dd, td = done_dur, total_dur
75
- STDOUT.printf "\r\e[J%s / %s [%s>%s] %s", format_time(dd), format_time(td), '='*l, ' '*(100-l), text
75
+ STDOUT.printf "\r\e[J%s / %s [%s>%s] %s", format_time(dd), format_time(td), '='*l, ' '*[100, 100-l].min, text
76
76
  end
77
77
  alias change_progress change_text
78
78
 
data/progress-bar.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "progress-bar"
8
- s.version = "0.3.2"
8
+ s.version = "0.3.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Denis Knauf"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: progress-bar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Knauf