infobar 0.6.1 → 0.6.2

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
  SHA256:
3
- metadata.gz: 9d2d29560764c1120e4663b0ee3df655c67acf6184dd9ca81c56079f687d2b13
4
- data.tar.gz: 758e95f1214445e94c24f4c4cf20f930a41b81ebd786901d9d8a79236a66d971
3
+ metadata.gz: 2b602d88378fa5681581c31be06eab1f4b2271e95c410c1d916bccc1a7654bb4
4
+ data.tar.gz: 206c7c77cfc084c69abee58784e01e16a77a74f8e5da3de1020c743ccefd1131
5
5
  SHA512:
6
- metadata.gz: 5b1b2cef210f4fce3a3bbe590ec1010b40695323e739d98bbd7dd31a3da69e8cc0506654ebc79ee71298076c94b69832b0c029e8b5d502319eab3310036ffe86
7
- data.tar.gz: 505a369077eff5ad5e805cbbd623033a83327abe4a9253fed7d14b43d6f80a74eb72f20cd8140d0c4bb2ea6bd8f5f7b92700d3bbe6a3359376cddd721559d33d
6
+ metadata.gz: 1685013e9c1044b663be3ec669b2f616023ca7eba3ce5f3424ff33498bcbcaa014cf93739d40e4da6ae4cad33746c9ffabcd7aa4c7658644fe4c42d9de0a1b5b
7
+ data.tar.gz: b2f15bf03ef23565525660a8978d4ac49b08a2b2093c027ce13db29755e83a9851e218bd145f2b2aae1b9e8109addbcb66c168ad60d43f982a2cd1b189f74e69
@@ -3,6 +3,7 @@ rvm:
3
3
  - 2.4
4
4
  - 2.5
5
5
  - 2.6
6
+ - 2.7
6
7
  - ruby-head
7
8
  - jruby-head
8
9
  sudo: false
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
+ * 2019-04-11 Release 0.6.1
25
+ - Counter string representation shows results now.
26
+
24
27
  * 2019-01-31 Release 0.6.0
25
28
  - Allow progressing with - as false.
26
29
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.6.2
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: infobar 0.6.1 ruby lib
2
+ # stub: infobar 0.6.2 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "infobar".freeze
6
- s.version = "0.6.1"
6
+ s.version = "0.6.2"
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 = "2019-04-11"
11
+ s.date = "2020-05-15"
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,32 +16,23 @@ 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 = "3.0.3".freeze
19
+ s.rubygems_version = "3.1.2".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
 
23
23
  if s.respond_to? :specification_version then
24
24
  s.specification_version = 4
25
+ end
25
26
 
26
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
27
- s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.9.1"])
28
- s.add_development_dependency(%q<rake>.freeze, [">= 0"])
29
- s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
30
- s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
31
- s.add_runtime_dependency(%q<tins>.freeze, ["~> 1.0", ">= 1.15.0"])
32
- s.add_runtime_dependency(%q<term-ansicolor>.freeze, ["~> 1.4"])
33
- s.add_runtime_dependency(%q<complex_config>.freeze, ["~> 0.10"])
34
- s.add_runtime_dependency(%q<more_math>.freeze, [">= 0"])
35
- else
36
- s.add_dependency(%q<gem_hadar>.freeze, ["~> 1.9.1"])
37
- s.add_dependency(%q<rake>.freeze, [">= 0"])
38
- s.add_dependency(%q<simplecov>.freeze, [">= 0"])
39
- s.add_dependency(%q<rspec>.freeze, [">= 0"])
40
- s.add_dependency(%q<tins>.freeze, ["~> 1.0", ">= 1.15.0"])
41
- s.add_dependency(%q<term-ansicolor>.freeze, ["~> 1.4"])
42
- s.add_dependency(%q<complex_config>.freeze, ["~> 0.10"])
43
- s.add_dependency(%q<more_math>.freeze, [">= 0"])
44
- end
27
+ if s.respond_to? :add_runtime_dependency then
28
+ s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.9.1"])
29
+ s.add_development_dependency(%q<rake>.freeze, [">= 0"])
30
+ s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
31
+ s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
32
+ s.add_runtime_dependency(%q<tins>.freeze, ["~> 1.0", ">= 1.15.0"])
33
+ s.add_runtime_dependency(%q<term-ansicolor>.freeze, ["~> 1.4"])
34
+ s.add_runtime_dependency(%q<complex_config>.freeze, ["~> 0.10"])
35
+ s.add_runtime_dependency(%q<more_math>.freeze, [">= 0"])
45
36
  else
46
37
  s.add_dependency(%q<gem_hadar>.freeze, ["~> 1.9.1"])
47
38
  s.add_dependency(%q<rake>.freeze, [">= 0"])
@@ -87,7 +87,7 @@ class Infobar
87
87
  def busy(**opts)
88
88
  block_given? or raise ArgumentError, 'block is required as an argument'
89
89
  duration = opts.delete(:sleep) || 0.1
90
- call(opts | {
90
+ call(**opts | {
91
91
  total: Float::INFINITY,
92
92
  message: { format: ' %l %te %s ', '%s' => { frames: :circle1 } },
93
93
  })
@@ -1,6 +1,5 @@
1
1
  class Infobar::Number
2
2
  def initialize(value, format: nil, unit: nil, prefix: 1000, separate: nil)
3
- duration = Tins::Duration.new(value)
4
3
  case format
5
4
  when /%U/
6
5
  unit ||= 'i/s'
@@ -1,6 +1,6 @@
1
1
  class Infobar
2
2
  # Infobar version
3
- VERSION = '0.6.1'
3
+ VERSION = '0.6.2'
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.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-11 00:00:00.000000000 Z
11
+ date: 2020-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar
@@ -215,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
215
215
  - !ruby/object:Gem::Version
216
216
  version: '0'
217
217
  requirements: []
218
- rubygems_version: 3.0.3
218
+ rubygems_version: 3.1.2
219
219
  signing_key:
220
220
  specification_version: 4
221
221
  summary: Gem to display information about computations.