infobar 0.9.0 → 0.10.0

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
  SHA256:
3
- metadata.gz: a851b107c04ec6fc0244947964d8677886ee7cbe2516fbcbab69ad0997fc54d8
4
- data.tar.gz: 8919fba2def59ff708b4f2a2d2b307e9a2b1e675a79ae4184f9dcd4aa7c35483
3
+ metadata.gz: 3d11f37d2746f1c64362cba07dd0b47f74ac2a8bd89c0be0f97a443a853bbeeb
4
+ data.tar.gz: 112e07f8a8a353570e21e7a8509c16a971e6edf1adf5a25aa5e30cd8a6f6afe4
5
5
  SHA512:
6
- metadata.gz: f05c0f568bc62c3afa048ea134b9c6567d98e975847d82b93446599501f7aa21b78c51c74e3ba18cae30c52f674c6460cf84ff5d0c93b3d85fc8515b1d41cb5f
7
- data.tar.gz: a4c3ad5cf6f3ed3ea9b8d42f2d753a7a2e7901724ed438339e76aecd70841eda3d51ff320b51ff1d900440582fef283a6a5409c7b2e0350c2cd40626d9c545ea
6
+ metadata.gz: 500ec7026cd64406c980d866379ca07174b06fc5ea948a0cca9530e01274d83231372216e2e15e89917cf79d5bd12afb660466da8bd399a817d0a462e1b63497
7
+ data.tar.gz: 83eacbca63996916f8475f6b1b15d5a08574b5ffed2fb569f3f9c337a10e9c302036f5c7be7b4d6199cb5e88bbf08e8f739728c49e8c017f1e4095fc4bd15f7b
data/CHANGES.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changes
2
2
 
3
+ ## 2025-09-09 v0.10.0
4
+
5
+ ### Changed
6
+ - Updated `gem_hadar` development dependency from `~> 2.2` to `~> 2.3`
7
+ - Removed `.travis.yml` from gem package and updated file inclusion logic
8
+ - Added `.utilsrc`, `.all_images.yml`, `VERSION`, `.rspec`, `.gitignore`, and
9
+ `TODO.md` to package ignore list
10
+
3
11
  ## 2025-01-10 v0.9.0
4
12
 
5
13
  * Removed outdated changelogs for versions prior to **0.6.1** from README.md.
data/Rakefile CHANGED
@@ -13,6 +13,9 @@ GemHadar do
13
13
  test_dir 'spec'
14
14
  ignore '.*.sw[pon]', 'pkg', 'Gemfile.lock', 'coverage', '.rvmrc',
15
15
  '.AppleDouble', 'tags', '.DS_Store', 'errors.lst', '.tool-versions'
16
+ package_ignore '.utilsrc', '.all_images.yml', 'VERSION', '.rspec',
17
+ '.gitignore', 'TODO.md'
18
+
16
19
  readme 'README.md'
17
20
  title "#{name.camelize}"
18
21
 
data/infobar.gemspec CHANGED
@@ -1,28 +1,28 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: infobar 0.9.0 ruby lib
2
+ # stub: infobar 0.10.0 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "infobar".freeze
6
- s.version = "0.9.0".freeze
6
+ s.version = "0.10.0".freeze
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 = "2025-01-10"
11
+ s.date = "1980-01-02"
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]
15
- s.files = [".all_images.yml".freeze, ".gitignore".freeze, ".rspec".freeze, ".travis.yml".freeze, ".utilsrc".freeze, "CHANGES.md".freeze, "COPYING".freeze, "Gemfile".freeze, "README.md".freeze, "Rakefile".freeze, "TODO.md".freeze, "VERSION".freeze, "infobar.gemspec".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, "spec/config/infobar.yml".freeze, "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]
15
+ s.files = ["CHANGES.md".freeze, "COPYING".freeze, "Gemfile".freeze, "README.md".freeze, "Rakefile".freeze, "infobar.gemspec".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, "spec/config/infobar.yml".freeze, "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]
16
16
  s.homepage = "https://github.com/flori/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.6.2".freeze
19
+ s.rubygems_version = "3.6.9".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
  s.specification_version = 4
24
24
 
25
- s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.19".freeze])
25
+ s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 2.3".freeze])
26
26
  s.add_development_dependency(%q<rake>.freeze, [">= 0".freeze])
27
27
  s.add_development_dependency(%q<simplecov>.freeze, [">= 0".freeze])
28
28
  s.add_development_dependency(%q<rspec>.freeze, [">= 0".freeze])
@@ -1,6 +1,6 @@
1
1
  class Infobar
2
2
  # Infobar version
3
- VERSION = '0.9.0'
3
+ VERSION = '0.10.0'
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:
@@ -41,12 +41,10 @@ describe Infobar::InputOutput do
41
41
  end
42
42
 
43
43
  it 'does not puts if not showing' do
44
- begin
45
- expect(infobar.display.output).not_to receive(:puts)
46
- infobar.show = false
47
- infobar.puts 'hello'
48
- rescue
49
- infobar.show = true
50
- end
44
+ expect(infobar.display.output).not_to receive(:puts)
45
+ infobar.show = false
46
+ infobar.puts 'hello'
47
+ ensure
48
+ infobar.show = true
51
49
  end
52
50
  end
data/spec/infobar_spec.rb CHANGED
@@ -28,6 +28,17 @@ describe Infobar do
28
28
  Infobar(total: 10, update: true)
29
29
  end
30
30
 
31
+ it 'has display for Infobar' do
32
+ expect(Infobar.display).to be_a Infobar::Display
33
+ end
34
+
35
+ it 'can convert message hashes into messages' do
36
+ message_hash = { foo: 'bar' }
37
+ message = Infobar.convert_to_message(message_hash)
38
+ expect(message).to be_a Infobar::Message
39
+ expect(message.opts).to eq('foo' => 'bar')
40
+ end
41
+
31
42
  it 'can update display with force' do
32
43
  Infobar(total: 10)
33
44
  expect(infobar.display).to receive(:update).
data/spec/spec_helper.rb CHANGED
@@ -1,12 +1,8 @@
1
- if ENV['START_SIMPLECOV'].to_i == 1
2
- require 'simplecov'
3
- SimpleCov.start do
4
- add_filter "#{File.basename(File.dirname(__FILE__))}/"
5
- end
6
- end
1
+ require 'gem_hadar/simplecov'
2
+ GemHadar::SimpleCov.start
7
3
  require 'rspec'
8
4
  begin
9
- require 'byebug'
5
+ require 'debug'
10
6
  rescue LoadError
11
7
  end
12
8
  require 'infobar'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infobar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-10 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: gem_hadar
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: '1.19'
18
+ version: '2.3'
19
19
  type: :development
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: '1.19'
25
+ version: '2.3'
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rake
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -178,18 +178,11 @@ extra_rdoc_files:
178
178
  - lib/infobar/trend.rb
179
179
  - lib/infobar/version.rb
180
180
  files:
181
- - ".all_images.yml"
182
- - ".gitignore"
183
- - ".rspec"
184
- - ".travis.yml"
185
- - ".utilsrc"
186
181
  - CHANGES.md
187
182
  - COPYING
188
183
  - Gemfile
189
184
  - README.md
190
185
  - Rakefile
191
- - TODO.md
192
- - VERSION
193
186
  - infobar.gemspec
194
187
  - lib/infobar.rb
195
188
  - lib/infobar/counter.rb
@@ -243,7 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
236
  - !ruby/object:Gem::Version
244
237
  version: '0'
245
238
  requirements: []
246
- rubygems_version: 3.6.2
239
+ rubygems_version: 3.6.9
247
240
  specification_version: 4
248
241
  summary: Gem to display information about computations.
249
242
  test_files:
data/.all_images.yml DELETED
@@ -1,19 +0,0 @@
1
- dockerfile: |-
2
- RUN apk add --no-cache build-base git
3
-
4
- script: &script |-
5
- echo -e "\e[1m"
6
- ruby -v
7
- echo -e "\e[0m"
8
- gem install bundler
9
- bundle install --full-index
10
- bundle exec rake spec
11
-
12
- fail_fast: true
13
-
14
- images:
15
- ruby:3.4-alpine: *script
16
- ruby:3.3-alpine: *script
17
- ruby:3.2-alpine: *script
18
- ruby:3.1-alpine: *script
19
- ruby:3.0-alpine: *script
data/.gitignore DELETED
@@ -1,10 +0,0 @@
1
- .*.sw[pon]
2
- .AppleDouble
3
- .DS_Store
4
- .rvmrc
5
- .tool-versions
6
- Gemfile.lock
7
- coverage
8
- errors.lst
9
- pkg
10
- tags
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- -fd
2
- -c
data/.travis.yml DELETED
@@ -1,14 +0,0 @@
1
- rvm:
2
- - 2.3
3
- - 2.4
4
- - 2.5
5
- - 2.6
6
- - 2.7
7
- - 3.0
8
- - ruby-head
9
- - jruby-head
10
- sudo: false
11
- matrix:
12
- allow_failures:
13
- - rvm: ruby-head
14
- - rvm: jruby-head
data/.utilsrc DELETED
@@ -1,25 +0,0 @@
1
- # vim: set ft=ruby:
2
-
3
- search do
4
- prune_dirs /\A(\.svn|\.git|CVS|tmp|tags|coverage|pkg)\z/
5
- skip_files /(\A\.|\.sw[pon]\z|\.(log|fnm|jpg|jpeg|png|pdf|svg)\z|tags|~\z)/i
6
- end
7
-
8
- discover do
9
- prune_dirs /\A(\.svn|\.git|CVS|tmp|tags|coverage|pkg)\z/
10
- skip_files /(\A\.|\.sw[pon]\z|\.log\z|~\z)/
11
- end
12
-
13
- strip_spaces do
14
- prune_dirs /\A(\..*|CVS|pkg)\z/
15
- skip_files /(\A\.|\.sw[pon]\z|\.log\z|~\z)/
16
- end
17
-
18
- probe do
19
- test_framework :rspec
20
- #include_dirs 'features'
21
- end
22
-
23
- ssh_tunnel do
24
- terminal_multiplexer :tmux
25
- end
data/TODO.md DELETED
@@ -1,25 +0,0 @@
1
- # TODO
2
-
3
- - add color gradients?
4
- - cumulative counters to summarize several progress bars
5
- - categorize do progress and display accordingly
6
- - more documentation, lol
7
- - add a pause mode?
8
-
9
- ## DONE
10
-
11
- - add trend arrow to rate
12
- - units
13
- - configuration file?
14
- - add finished directive
15
- - add nicer `Message#to_s` method
16
- - add output methods that clear b4 printing to allow output while progressing
17
- - elapsed time as duration
18
- - ETA as duration
19
- - ETA as datetime
20
- - rate
21
- - better average idea
22
- - Update Frequency
23
- - spinner animation
24
- - newline method
25
- - Easily switch on/off output
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.9.0