progress 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -97,7 +97,7 @@ class Progress
97
97
 
98
98
  def stop
99
99
  if levels.last
100
- print_message(true) if levels.last.step_if_blank
100
+ print_message(true) if levels.last.step_if_blank || levels.length == 1
101
101
  levels.pop
102
102
  io.puts if levels.empty?
103
103
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{progress}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Boba Fat"]
12
- s.date = %q{2009-12-30}
12
+ s.date = %q{2010-01-16}
13
13
  s.extra_rdoc_files = [
14
14
  "README.rdoc"
15
15
  ]
@@ -174,7 +174,7 @@ describe Progress do
174
174
  end
175
175
  end
176
176
  end
177
- io_pop.should == "\n"
177
+ io_pop.should == "A: ......\n\n"
178
178
  end
179
179
  end
180
180
 
@@ -187,7 +187,7 @@ describe Progress do
187
187
  end
188
188
  io_pop.should == "A: %5.1f%% > B: 100.0%%\n" % [(a + 1) / _a.to_f * 100.0]
189
189
  end
190
- io_pop.should == "A: 100.0%\n\n"
190
+ io_pop.should == "A: 100.0%\nA: 100.0%\n\n"
191
191
  end
192
192
 
193
193
  it "should not overlap outer progress if inner exceeds [#{_a}, #{_b}]" do
@@ -201,7 +201,7 @@ describe Progress do
201
201
  end
202
202
  io_pop.should == "A: %5.1f%% > B: 200.0%%\n" % [(a + 1) / _a.to_f * 100.0]
203
203
  end
204
- io_pop.should == "A: 100.0%\n\n"
204
+ io_pop.should == "A: 100.0%\nA: 100.0%\n\n"
205
205
  end
206
206
 
207
207
  it "should allow step with block to validly count custom progresses [#{_a}, #{_b}]" do
@@ -219,7 +219,7 @@ describe Progress do
219
219
  end
220
220
  Progress.step _a
221
221
  end
222
- io_pop.should == "A: 100.0%\n\n"
222
+ io_pop.should == "A: 100.0%\nA: 100.0%\n\n"
223
223
  end
224
224
  end
225
225
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: progress
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boba Fat
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-30 00:00:00 +03:00
12
+ date: 2010-01-16 00:00:00 +03:00
13
13
  default_executable:
14
14
  dependencies: []
15
15