infobar 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/infobar.gemspec +3 -3
- data/lib/infobar.rb +3 -3
- data/lib/infobar/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8c8f993617ff8a2aaaf6772a076586cc6417e4f
|
4
|
+
data.tar.gz: 89c8686e3820d1ceffd0f3ea350fdf38c7fc442e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d689e48ee7427ae6aab9329a86ae33e86648688e5d950b42265f44594d621ba076f6cf278018204e2c3d6006210f1ec6003ef9a4d4a3f4b4ae7e1a15fa9a5f6
|
7
|
+
data.tar.gz: 28e212eb31cefce7158ba8cb200c2785b42bb774f13832b1ad3f64e44a727c02e5e10e1d048e36f45b5181775e5492a02c2923691e7331be335435556331d1fa
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/infobar.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: infobar 0.1.
|
2
|
+
# stub: infobar 0.1.1 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "infobar".freeze
|
6
|
-
s.version = "0.1.
|
6
|
+
s.version = "0.1.1"
|
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]
|
10
10
|
s.authors = ["Florian Frank".freeze]
|
11
|
-
s.date = "2017-04
|
11
|
+
s.date = "2017-05-04"
|
12
12
|
s.description = "This gem displays progress of computations and additional information to the terminal.".freeze
|
13
13
|
s.email = "flori@ping.de".freeze
|
14
14
|
s.extra_rdoc_files = ["README.md".freeze, "lib/infobar.rb".freeze, "lib/infobar/counter.rb".freeze, "lib/infobar/display.rb".freeze, "lib/infobar/duration.rb".freeze, "lib/infobar/fancy_interface.rb".freeze, "lib/infobar/fifo.rb".freeze, "lib/infobar/frequency.rb".freeze, "lib/infobar/input_output.rb".freeze, "lib/infobar/message.rb".freeze, "lib/infobar/number.rb".freeze, "lib/infobar/rate.rb".freeze, "lib/infobar/spinner.rb".freeze, "lib/infobar/timer.rb".freeze, "lib/infobar/trend.rb".freeze, "lib/infobar/version.rb".freeze]
|
data/lib/infobar.rb
CHANGED
@@ -24,7 +24,7 @@ class Infobar
|
|
24
24
|
def initialize
|
25
25
|
@counter = Infobar::Counter.new
|
26
26
|
@display = Infobar::Display.new
|
27
|
-
reset
|
27
|
+
reset display: false
|
28
28
|
end
|
29
29
|
|
30
30
|
def self.display
|
@@ -97,10 +97,10 @@ class Infobar
|
|
97
97
|
r
|
98
98
|
end
|
99
99
|
|
100
|
-
def reset
|
100
|
+
def reset(display: true)
|
101
101
|
@message = convert_to_message('%l %c/%t in %te, ETA %e @%E %s')
|
102
102
|
counter.reset(total: 0, current: 0)
|
103
|
-
display.reset
|
103
|
+
display and self.display.reset
|
104
104
|
self
|
105
105
|
end
|
106
106
|
|
data/lib/infobar/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infobar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Frank
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04
|
11
|
+
date: 2017-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_hadar
|