infobar 0.0.2 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 259fca2fcc19735ccd0650f9ca07aebd363d2370
4
- data.tar.gz: c92a5e348371aa5a241e8bdac2eb1b886e3abe79
3
+ metadata.gz: 44d1aecb104b7a5f45453165333a97693ff3196c
4
+ data.tar.gz: a08b831cb9dc98aa9b03b5ec7d77bd114fa3ff0f
5
5
  SHA512:
6
- metadata.gz: 9ab2fa237f9279a5b0b99239a0afe64845193317d22588dbda3a5b4fbbcdeb887f2a84b5912cf4425b0e96d0bdfc35d4aa227cf6470a3b670d1a2182e89c0729
7
- data.tar.gz: 2ff8ec4f87a375fcf508182ffd30544305aa6ba6eb1c2f06cbb33af3d790c84e8dc3ad93f7a59e77a9482f80e88d72be59d93a220db4f4588aaa627926aed910
6
+ metadata.gz: 1f8479408dca9b8f469e16dd811abaa8544d70f95b3921ed8bf6612201f6c0804cf4f8b95556bc653f0dfdf6c3f7e9df10c8db892746bca064c8fcd19a86de73
7
+ data.tar.gz: f27a81a467c5d654e6351e59d332bf7e4ed8b2d286bb28f47ef10ec78b5dd7d9be7266f27a17215394112746bcd2ed28dd1f3383186683f6acc3d6aea33d4424
data/README.md CHANGED
@@ -21,6 +21,10 @@ Display progress of computations and additional information to the terminal.
21
21
 
22
22
  ## Changes
23
23
 
24
+ * 2017-03-09 Release 0.0.3
25
+ - Reset frequency after calling clear. This means after calling output methods
26
+ the next update will be forced.
27
+
24
28
  * 2017-02-10 Release 0.0.2
25
29
  - Add trend arrow to rate directive
26
30
 
data/TODO.md CHANGED
@@ -4,6 +4,7 @@
4
4
  - cumulative counters to summarize several progress bars
5
5
  - categorize do progress and display accordingly
6
6
  - more documentation, lol
7
+ - add a pause mode?
7
8
 
8
9
  ## DONE
9
10
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
data/infobar.gemspec CHANGED
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: infobar 0.0.2 ruby lib
2
+ # stub: infobar 0.0.3 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "infobar".freeze
6
- s.version = "0.0.2"
6
+ s.version = "0.0.3"
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-02-10"
11
+ s.date = "2017-03-09"
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]
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.homepage = "http://flori.github.com/infobar".freeze
17
17
  s.rdoc_options = ["--title".freeze, "Infobar".freeze, "--main".freeze, "README.md".freeze]
18
18
  s.required_ruby_version = Gem::Requirement.new(">= 2.3".freeze)
19
- s.rubygems_version = "2.6.8".freeze
19
+ s.rubygems_version = "2.6.10".freeze
20
20
  s.summary = "Gem to display information about computations.".freeze
21
21
  s.test_files = ["spec/infobar/config_spec.rb".freeze, "spec/infobar/counter_spec.rb".freeze, "spec/infobar/display_spec.rb".freeze, "spec/infobar/duration_spec.rb".freeze, "spec/infobar/fifo_spec.rb".freeze, "spec/infobar/frequency_spec.rb".freeze, "spec/infobar/input_output_spec.rb".freeze, "spec/infobar/message_spec.rb".freeze, "spec/infobar/number_spec.rb".freeze, "spec/infobar/rate_spec.rb".freeze, "spec/infobar/spinner_spec.rb".freeze, "spec/infobar/timer_spec.rb".freeze, "spec/infobar/trend_spec.rb".freeze, "spec/infobar_spec.rb".freeze, "spec/spec_helper.rb".freeze]
22
22
 
@@ -97,7 +97,6 @@ class Infobar::Display
97
97
 
98
98
  def reset
99
99
  clear
100
- @frequency.reset
101
100
  self.style = self.class.default_style
102
101
  self
103
102
  end
@@ -106,6 +105,7 @@ class Infobar::Display
106
105
  carriage_return
107
106
  output << ' ' * columns
108
107
  carriage_return
108
+ @frequency.reset
109
109
  self
110
110
  end
111
111
 
@@ -111,7 +111,7 @@ class Infobar::Message
111
111
  end
112
112
  end
113
113
 
114
- # literal percentag character
114
+ # literal percentage character
115
115
  register '%%' do
116
116
  ?%
117
117
  end
@@ -1,6 +1,6 @@
1
1
  class Infobar
2
2
  # Infobar version
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.3'
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:
@@ -32,6 +32,11 @@ describe Infobar::Display do
32
32
  display.reset
33
33
  end
34
34
 
35
+ it 'clear resets the frequency' do
36
+ expect(display.frequency).to receive(:reset).and_call_original
37
+ display.clear
38
+ end
39
+
35
40
  it 'has style' do
36
41
  test_style = {
37
42
  done_fill: ?X,
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.0.2
4
+ version: 0.0.3
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-02-10 00:00:00.000000000 Z
11
+ date: 2017-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  version: '0'
215
215
  requirements: []
216
216
  rubyforge_project:
217
- rubygems_version: 2.6.8
217
+ rubygems_version: 2.6.10
218
218
  signing_key:
219
219
  specification_version: 4
220
220
  summary: Gem to display information about computations.