progress 0.2.0 → 0.2.1
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.
- data/VERSION +1 -1
- data/lib/progress.rb +1 -1
- data/progress.gemspec +2 -2
- data/spec/progress_spec.rb +4 -4
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/lib/progress.rb
CHANGED
data/progress.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{progress}
|
8
|
-
s.version = "0.2.
|
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{
|
12
|
+
s.date = %q{2010-01-16}
|
13
13
|
s.extra_rdoc_files = [
|
14
14
|
"README.rdoc"
|
15
15
|
]
|
data/spec/progress_spec.rb
CHANGED
@@ -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.
|
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:
|
12
|
+
date: 2010-01-16 00:00:00 +03:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|