infobar 0.13.0 → 0.13.1

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: 9134deea634236d968212c1c92b914a8ce3dc7170010f22e24ae1fe8e445e3e8
4
- data.tar.gz: e16c85db3d09ccc2bb94022b5348718e82c17f30e325aa7ddd0ab697294f9ecc
3
+ metadata.gz: ce90bf89a05aa85dd2dafe44ce71c68719984a4553195f7c5ee3ea85a557e544
4
+ data.tar.gz: 2843fc691f0d520c3b1af317ec4faa6605cb40062abe384623f7c9fcc2ccf77e
5
5
  SHA512:
6
- metadata.gz: bffbbbd174032af68747b4d6bdf620fbccf6cc17ed387911bead86cc759dc21bd3c9810ee890dc6ef2a2c741a776b459b7f2320decd7dfcd20ca06e744459b8c
7
- data.tar.gz: 9652876ba5b8c89cd693106f6134a9b2365db61b1586a1256f9e04c0c4f19e13df5b2455c380463347c4cb80eacd9698ca44d44259644b18af29a6d438d8fe43
6
+ metadata.gz: b46cf5616ff55923b82a17d116729121b893be14446549878e911693986e9cff250dfeccfde5f0fd980d8775ec9b4c096d4117fe78c63556ad6560b8452c3ee4
7
+ data.tar.gz: a473c4788dd8cb8f09801537b18b8732fec231a62138a7a5b2bd75623d5d58186a7e7cafe27a59713ec5b272c8b13fbeea66d8768ddb31b20b8da178e06f757f
data/CHANGES.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-01-29 v0.13.1
4
+
5
+ - Added `newline` method call in `ensure` block of `Infobar` class to ensure
6
+ proper display cleanup
7
+ - Updated `infobar_spec.rb` to verify that `newline` is called during busy
8
+ block execution
9
+ - This ensures consistent infobar behavior and proper terminal output handling
10
+
3
11
  ## 2026-01-29 v0.13.0
4
12
 
5
13
  - Fixed `.busy` cleanup by ensuring `ib&.kill` is called safely to prevent race
data/infobar.gemspec CHANGED
@@ -1,9 +1,9 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: infobar 0.13.0 ruby lib
2
+ # stub: infobar 0.13.1 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "infobar".freeze
6
- s.version = "0.13.0".freeze
6
+ s.version = "0.13.1".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]
@@ -1,6 +1,6 @@
1
1
  class Infobar
2
2
  # Infobar version
3
- VERSION = '0.13.0'
3
+ VERSION = '0.13.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:
data/lib/infobar.rb CHANGED
@@ -113,8 +113,9 @@ class Infobar
113
113
  t.join
114
114
  r
115
115
  ensure
116
- finish
117
116
  ib&.kill
117
+ finish
118
+ newline
118
119
  end
119
120
 
120
121
  def reset(display: true)
data/spec/infobar_spec.rb CHANGED
@@ -20,6 +20,7 @@ describe Infobar do
20
20
  it 'can be used to signal being busy with a block' do
21
21
  expect(infobar.display).to receive(:update).at_least(1).and_call_original
22
22
  expect(infobar).to receive(:finish).at_least(1).and_call_original
23
+ expect(infobar).to receive(:newline).at_least(1).and_call_original
23
24
  Infobar.busy { sleep 0.2 }
24
25
  end
25
26
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infobar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank