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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 224e1a27bb2395439832350f0f9ae226d70d6dc7
4
- data.tar.gz: 27de3a8fe8fa615dff727dfe647bf23224258093
3
+ metadata.gz: e8c8f993617ff8a2aaaf6772a076586cc6417e4f
4
+ data.tar.gz: 89c8686e3820d1ceffd0f3ea350fdf38c7fc442e
5
5
  SHA512:
6
- metadata.gz: '09038c7c40c1860f68d719eb7cc4e76e5fc701edce4aaeb8ba564e0da5dbf91e34a1b9dff18bf11750fe6314de5ed49f38ce27ab2038aac519ea1576919e675b'
7
- data.tar.gz: 48af752e245e7d9930a972b813b233c6069e48f250a2a3f4e4386b398228beb904ad24cb6750ade8ed3e349d10743cec8750257ba6bbd35cfb38c2e2a5e84650
6
+ metadata.gz: 0d689e48ee7427ae6aab9329a86ae33e86648688e5d950b42265f44594d621ba076f6cf278018204e2c3d6006210f1ec6003ef9a4d4a3f4b4ae7e1a15fa9a5f6
7
+ data.tar.gz: 28e212eb31cefce7158ba8cb200c2785b42bb774f13832b1ad3f64e44a727c02e5e10e1d048e36f45b5181775e5492a02c2923691e7331be335435556331d1fa
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
data/infobar.gemspec CHANGED
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: infobar 0.1.0 ruby lib
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.0"
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-24"
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
 
@@ -1,6 +1,6 @@
1
1
  class Infobar
2
2
  # Infobar version
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  VERSION_ARRAY = VERSION.split('.').map(&:to_i) # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
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.0
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-24 00:00:00.000000000 Z
11
+ date: 2017-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar