tapsoob 0.1.32 → 0.1.33
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/tapsoob/progress_bar.rb +4 -4
- data/lib/tapsoob/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3f8b83364a590f7ed0f5ec403c757179e6799298
|
|
4
|
+
data.tar.gz: 82b35547a029e9e656a37ce8552fccecd825556b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 52f55d109ce55d97b2c147b7f1f853bbe989f74538a6f312e3493503fda2dea4baee6e1804b7fd28e9c84a0c13b766dfc461e289f0f195ecfa63d4c9afbc2f46
|
|
7
|
+
data.tar.gz: 0b257d75fb06a83ea0bbd5fc736d04529cd0a828cbcbcfcb75671c0e34e9f5d9b0f2bba7e9823dee2637c49433aeac6393259a4510dbdd0180c61fa746b99e81
|
data/lib/tapsoob/progress_bar.rb
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
class ProgressBar
|
|
14
14
|
VERSION = "0.9"
|
|
15
15
|
|
|
16
|
-
def initialize (title, total, out =
|
|
16
|
+
def initialize (title, total, out = STDOUT)
|
|
17
17
|
@title = title
|
|
18
18
|
@total = total
|
|
19
19
|
@out = out
|
|
@@ -138,14 +138,14 @@ class ProgressBar
|
|
|
138
138
|
end
|
|
139
139
|
|
|
140
140
|
def show
|
|
141
|
-
arguments = @format_arguments.map {|method|
|
|
141
|
+
arguments = @format_arguments.map {|method|
|
|
142
142
|
method = sprintf("fmt_%s", method)
|
|
143
143
|
send(method)
|
|
144
144
|
}
|
|
145
145
|
line = sprintf(@format, *arguments)
|
|
146
146
|
|
|
147
147
|
width = get_width
|
|
148
|
-
if line.length == width - 1
|
|
148
|
+
if line.length == width - 1
|
|
149
149
|
@out.print(line + eol)
|
|
150
150
|
@out.flush
|
|
151
151
|
elsif line.length >= width
|
|
@@ -168,7 +168,7 @@ class ProgressBar
|
|
|
168
168
|
end
|
|
169
169
|
|
|
170
170
|
# Use "!=" instead of ">" to support negative changes
|
|
171
|
-
if cur_percentage != prev_percentage ||
|
|
171
|
+
if cur_percentage != prev_percentage ||
|
|
172
172
|
Time.now - @previous_time >= 1 || @finished_p
|
|
173
173
|
show
|
|
174
174
|
end
|
data/lib/tapsoob/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tapsoob
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.33
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Félix Bellanger
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2016-
|
|
12
|
+
date: 2016-02-16 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: sequel
|