infobar 0.0.4 → 0.0.5
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/README.md +3 -0
- data/VERSION +1 -1
- data/infobar.gemspec +2 -2
- data/lib/infobar/message.rb +1 -1
- data/lib/infobar/rate.rb +1 -0
- data/lib/infobar/version.rb +1 -1
- data/spec/infobar/message_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ec671d94461ee9698441c4d24f67957ebcd5c9a
|
4
|
+
data.tar.gz: 862abaf7cb6c9c56707c5cafbc97cca03643e172
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41de04b72a0c254c67796c0a437dce3c7dd0a57d42f3305ae7125a664b0c5ea288aa2919b37baa8ca55ea641cd25cce94142bee562f7f414cb4ec7b720e90a0e
|
7
|
+
data.tar.gz: fb93a67f2e710dcac96bf4926c322a35f9e3e2531b761c7265ccafe5e8718df4da743ca02e74059b2d5642a2804b82660a8918ef5ee661c80da7d3254e31840c
|
data/README.md
CHANGED
@@ -21,6 +21,9 @@ Display progress of computations and additional information to the terminal.
|
|
21
21
|
|
22
22
|
## Changes
|
23
23
|
|
24
|
+
* 2017-03-10 Release 0.0.4
|
25
|
+
- Always provide a default unit for rate display, 'i/s' for "items per second".
|
26
|
+
|
24
27
|
* 2017-03-10 Release 0.0.4
|
25
28
|
- Fix problem b/c at the beginning there might not be a valid rate.
|
26
29
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
data/infobar.gemspec
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: infobar 0.0.
|
2
|
+
# stub: infobar 0.0.5 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "infobar".freeze
|
6
|
-
s.version = "0.0.
|
6
|
+
s.version = "0.0.5"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib".freeze]
|
data/lib/infobar/message.rb
CHANGED
@@ -89,7 +89,7 @@ class Infobar::Message
|
|
89
89
|
end
|
90
90
|
|
91
91
|
# rate with or without units
|
92
|
-
register('%r', unit:
|
92
|
+
register('%r', unit: 'i/s', prefix: 1000, format: '%.3f%U%t') do |directive, opts|
|
93
93
|
Infobar::Rate.new(Infobar.counter.rate, Infobar.counter.fifo_rate, **opts)
|
94
94
|
end
|
95
95
|
|
data/lib/infobar/rate.rb
CHANGED
data/lib/infobar/version.rb
CHANGED
@@ -33,7 +33,7 @@ describe Infobar::Message do
|
|
33
33
|
it 'can be interpolated' do
|
34
34
|
Time.dummy(now) do
|
35
35
|
expect(message.to_str).to eq(
|
36
|
-
"23 42 19 Test 0.55 0.452 54.76 45.24 00:00:02 00:00:21 00:00:19 11:11:30 1.
|
36
|
+
"23 42 19 Test 0.55 0.452 54.76 45.24 00:00:02 00:00:21 00:00:19 11:11:30 1.000i/s→ 00:01.000000 – %"
|
37
37
|
)
|
38
38
|
end
|
39
39
|
end
|