powerbar 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/lib/powerbar.rb +3 -1
- data/lib/powerbar/version.rb +1 -1
- data/powerbar.gemspec +1 -0
- metadata +7 -7
data/README.rdoc
CHANGED
@@ -50,7 +50,7 @@ Then look at the {source-code}[https://github.com/busyloop/powerbar/blob/master/
|
|
50
50
|
|
51
51
|
p = PowerBar.new
|
52
52
|
(0..total).step(step).each do |i|
|
53
|
-
p.show(
|
53
|
+
p.show(:msg => 'DEMO 1 - Ten seconds of progress', :done => i, :total => total)
|
54
54
|
sleep 0.1
|
55
55
|
end
|
56
56
|
p.close
|
data/lib/powerbar.rb
CHANGED
@@ -38,7 +38,9 @@ class PowerBar
|
|
38
38
|
:time_last_update => Time.at(0), # <- unless you know
|
39
39
|
:time_start => nil, # <- what you're doing!
|
40
40
|
:time_now => nil, # <-
|
41
|
-
:msg => 'PowerBar!',
|
41
|
+
:msg => 'PowerBar!',
|
42
|
+
:done => 0,
|
43
|
+
:total => :unknown,
|
42
44
|
:settings => {
|
43
45
|
:rate_sample_max_interval => 10, # See PowerBar::Rate
|
44
46
|
:rate_sample_window => 6, # See PowerBar::Rate
|
data/lib/powerbar/version.rb
CHANGED
data/powerbar.gemspec
CHANGED
@@ -10,6 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.homepage = "https://github.com/busyloop/powerbar"
|
11
11
|
s.summary = %q{The last progressbar-library you'll ever need}
|
12
12
|
s.description = %q{The last progressbar-library you'll ever need}
|
13
|
+
s.required_ruby_version = "~> 1.9.2"
|
13
14
|
|
14
15
|
s.add_dependency "ansi", "~> 1.4.0"
|
15
16
|
s.add_dependency "hashie", "~> 1.1.0"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: powerbar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-12-07 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ansi
|
16
|
-
requirement: &
|
16
|
+
requirement: &15214280 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 1.4.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *15214280
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: hashie
|
27
|
-
requirement: &
|
27
|
+
requirement: &15213600 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: 1.1.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *15213600
|
36
36
|
description: The last progressbar-library you'll ever need
|
37
37
|
email:
|
38
38
|
- moe@busyloop.net
|
@@ -59,9 +59,9 @@ require_paths:
|
|
59
59
|
required_ruby_version: !ruby/object:Gem::Requirement
|
60
60
|
none: false
|
61
61
|
requirements:
|
62
|
-
- -
|
62
|
+
- - ~>
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
version:
|
64
|
+
version: 1.9.2
|
65
65
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
66
|
none: false
|
67
67
|
requirements:
|