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 +4 -4
- data/VERSION +1 -1
- data/lib/progress-bar.rb +1 -1
- data/progress-bar.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b00bafaf18e2c9dd201b5ce9b7be1b6dcdd52bf
|
4
|
+
data.tar.gz: cfa8e29d280b06c4085707309b8a396452b475a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec47287c370e5dc281e945207b81da3f34982d4266ad391f57cadd0e527077f541ed3ab6b07010175165caddf24a944019f6f1f11195af357534fb1d5cc13eba
|
7
|
+
data.tar.gz: 7740e77422834eb275a20b13e52d5b4e5777e99ebc8ec40384aac768251a4c1a516cdfa0c67ffc0bc673a4ef756e138c1001d3910ab0f10cc25b1fc6060fa715
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
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, ' '*
|
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