ruby-progress 1.1.2 → 1.1.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
  SHA256:
3
- metadata.gz: 49879f3480e89d03b3f7448dc582514f20e0637fc9e2c0252c9c0782eecbbd05
4
- data.tar.gz: aa099474b01118ef950d1e9c4dd50059f0f0acf8d9bb8a256e72d9e9e257fc37
3
+ metadata.gz: 6a6dd89f8c45141763e802961dfd15018184109f1630e098a43d69c6bc737fc2
4
+ data.tar.gz: 70ec2836d0dd08b8046ccf9fadea8da8fb258509f73f2452df09e391231dc0c1
5
5
  SHA512:
6
- metadata.gz: 3665c5d3f73d04d9fc890d4360165a177c4d26fd5bc01765dc49ab654c60b6a069b3364fbfc87e2226038d2af92c226dc1d89b739a98464dbdaf9d93b5903025
7
- data.tar.gz: f4335241b770d265cd400eb535a6d65be9d0097d391524604ab7d84307ab5fccc49a8a2874acf9f51ac33f074f556fcfaa51a7c11e215045d08e3f873f7d09f1
6
+ metadata.gz: cd6439114190f77d67eecb98d808a6ebcd8a0d2588d7773f3ae05059b7f7aec1404dbeb7422e21bbec5156e51b1f4a0f463fa40855e2e33c5c8b1efe5e779599
7
+ data.tar.gz: 7da5d44b58905c3ebec8c63d50a304fd22f77d3cec43ba7491a222bbe8ff72e8bf86665efdc626cefddbb9aa7429135a46be796aebd82073eea86db89bfd304d
data/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.1.3] - 2025-10-09
9
+
10
+ ### Fixed
11
+
12
+ - **Twirl spinner animation**: Fixed spinner freezing during command execution by ensuring continuous animation loop
13
+ - **Default message behavior**: Removed default "Processing" message when no `--message` is provided - now shows only spinner
14
+ - **Daemon termination output**: Removed verbose "Stop signal sent to process" message for cleaner daemon workflows
15
+
8
16
  ## [1.1.2] - 2025-10-09
9
17
 
10
18
  ### Fixed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-progress (1.1.2)
4
+ ruby-progress (1.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/bin/prg CHANGED
@@ -573,7 +573,7 @@ module TwirlCLI
573
573
  end
574
574
 
575
575
  def self.run_with_command(options)
576
- message = options[:message] || 'Processing'
576
+ message = options[:message]
577
577
  captured_output = nil
578
578
 
579
579
  spinner = TwirlSpinner.new(message, options)
@@ -581,7 +581,7 @@ module TwirlCLI
581
581
 
582
582
  begin
583
583
  RubyProgress::Utils.hide_cursor
584
- spinner_thread = Thread.new { spinner.animate }
584
+ spinner_thread = Thread.new { loop { spinner.animate } }
585
585
 
586
586
  captured_output = `#{options[:command]} 2>&1`
587
587
  success = $CHILD_STATUS.success?
@@ -609,7 +609,7 @@ module TwirlCLI
609
609
  end
610
610
 
611
611
  def self.run_indefinitely(options)
612
- message = options[:message] || 'Processing'
612
+ message = options[:message]
613
613
  spinner = TwirlSpinner.new(message, options)
614
614
 
615
615
  begin
@@ -632,7 +632,7 @@ module TwirlCLI
632
632
  FileUtils.mkdir_p(File.dirname(pid_file))
633
633
  File.write(pid_file, Process.pid.to_s)
634
634
 
635
- message = options[:message] || 'Processing'
635
+ message = options[:message]
636
636
  spinner = TwirlSpinner.new(message, options)
637
637
  stop_requested = false
638
638
 
@@ -806,7 +806,11 @@ class TwirlSpinner
806
806
  end
807
807
 
808
808
  def animate
809
- print "\r#{@message} #{@frames[@index]}"
809
+ if @message && !@message.empty?
810
+ print "\r#{@message} #{@frames[@index]}"
811
+ else
812
+ print "\r#{@frames[@index]}"
813
+ end
810
814
  @index = (@index + 1) % @frames.length
811
815
  sleep @speed
812
816
  end
@@ -44,7 +44,6 @@ module RubyProgress
44
44
 
45
45
  begin
46
46
  Process.kill('USR1', pid)
47
- puts "Stop signal sent to process #{pid}"
48
47
  sleep 0.5
49
48
  File.delete(pid_file) if File.exist?(pid_file)
50
49
  rescue Errno::ESRCH
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyProgress
4
- VERSION = '1.1.2'
4
+ VERSION = '1.1.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-progress
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra