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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cfad7dad6429bacb6722294a48e47bfcd359ce74
4
- data.tar.gz: 942f713ada3846ae429156b5b2fe5c897327fe62
3
+ metadata.gz: 3f8b83364a590f7ed0f5ec403c757179e6799298
4
+ data.tar.gz: 82b35547a029e9e656a37ce8552fccecd825556b
5
5
  SHA512:
6
- metadata.gz: 44c4bdb61d933f85cdedad547bb1997a430a5da19ba9a9fc4da00fa842582143a0745b2db47a8f43b5039f82abc546f19fea0e09279856ffcb702ec8b865e8d9
7
- data.tar.gz: c4547babbf596f431c5ee5eeb8457b839b14e8d7ab5715c537ca64415519cb238b2b31edc29c25b9740bca3d51d55397ba36c7cd4b7c1b81790dec57b5fe1472
6
+ metadata.gz: 52f55d109ce55d97b2c147b7f1f853bbe989f74538a6f312e3493503fda2dea4baee6e1804b7fd28e9c84a0c13b766dfc461e289f0f195ecfa63d4c9afbc2f46
7
+ data.tar.gz: 0b257d75fb06a83ea0bbd5fc736d04529cd0a828cbcbcfcb75671c0e34e9f5d9b0f2bba7e9823dee2637c49433aeac6393259a4510dbdd0180c61fa746b99e81
@@ -13,7 +13,7 @@
13
13
  class ProgressBar
14
14
  VERSION = "0.9"
15
15
 
16
- def initialize (title, total, out = STDERR)
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
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Tapsoob
3
- VERSION = "0.1.32".freeze
3
+ VERSION = "0.1.33".freeze
4
4
  end
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.32
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-01-20 00:00:00.000000000 Z
12
+ date: 2016-02-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sequel