ruby-progress 1.1.3 → 1.1.4

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: 6a6dd89f8c45141763e802961dfd15018184109f1630e098a43d69c6bc737fc2
4
- data.tar.gz: 70ec2836d0dd08b8046ccf9fadea8da8fb258509f73f2452df09e391231dc0c1
3
+ metadata.gz: 599c6e45e09421994859e63461afbe8291cc1e0580ea04f5ec6cce11ce24af6c
4
+ data.tar.gz: '08cd819f0e15c121ae19af452a12aa666c68ecf1a63f448c657e8f09499a9b23'
5
5
  SHA512:
6
- metadata.gz: cd6439114190f77d67eecb98d808a6ebcd8a0d2588d7773f3ae05059b7f7aec1404dbeb7422e21bbec5156e51b1f4a0f463fa40855e2e33c5c8b1efe5e779599
7
- data.tar.gz: 7da5d44b58905c3ebec8c63d50a304fd22f77d3cec43ba7491a222bbe8ff72e8bf86665efdc626cefddbb9aa7429135a46be796aebd82073eea86db89bfd304d
6
+ metadata.gz: 934d646d83e178445ca8d4f6c0deac2df5e7a4f3c24c6397f871ee6c2d6af1d01a15d28ddf5fc35b24f9c072a22da05a5133edb6256117647fbd662ad971b75c
7
+ data.tar.gz: b703ffa90548a16e8e71b35ec6f12550937aab9be5f46d3f7a4e1754d64fb7dac75104128bf5db4d95cc911b9285a383d20897d2d313c2a5d77d981e70f0c71b
data/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@ 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.4] - 2025-10-09
9
+
10
+ ### Fixed
11
+
12
+ - **Worm default message behavior**: Removed default "Processing" message from worm subcommand when no `--message` is provided for consistent behavior across all progress indicators
13
+ - **Development environment**: Fixed `bin/prg` to use local library files instead of installed gem versions during development
14
+
8
15
  ## [1.1.3] - 2025-10-09
9
16
 
10
17
  ### Fixed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-progress (1.1.3)
4
+ ruby-progress (1.1.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/bin/prg CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- require 'ruby-progress'
4
+ require_relative '../lib/ruby-progress'
5
5
  require 'fileutils'
6
6
  require 'optparse'
7
7
  require 'json'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyProgress
4
- VERSION = '1.1.3'
4
+ VERSION = '1.1.4'
5
5
  end
@@ -35,7 +35,7 @@ module RubyProgress
35
35
 
36
36
  def initialize(options = {})
37
37
  @length = options[:length] || 3
38
- @message = options[:message] || 'Processing'
38
+ @message = options[:message]
39
39
  @speed = parse_speed(options[:speed] || 'medium')
40
40
  @style = parse_style(options[:style] || 'circles')
41
41
  @command = options[:command]
@@ -206,7 +206,8 @@ module RubyProgress
206
206
  @position ||= 0
207
207
  @direction ||= 1
208
208
 
209
- print "\r#{@message}#{generate_dots(@position, @direction)}"
209
+ message_part = @message && !@message.empty? ? @message : ''
210
+ print "\r#{message_part}#{generate_dots(@position, @direction)}"
210
211
  $stdout.flush
211
212
 
212
213
  sleep @speed
@@ -281,7 +282,8 @@ module RubyProgress
281
282
  direction = 1
282
283
 
283
284
  while @running
284
- print "\r#{@message}#{generate_dots(position, direction)}"
285
+ message_part = @message && !@message.empty? ? @message : ''
286
+ print "\r#{message_part}#{generate_dots(position, direction)}"
285
287
  $stdout.flush
286
288
 
287
289
  sleep @speed
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.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra
@@ -101,7 +101,6 @@ files:
101
101
  - lib/ruby-progress/utils.rb
102
102
  - lib/ruby-progress/version.rb
103
103
  - lib/ruby-progress/worm.rb
104
- - ruby-progress.gemspec
105
104
  - test_worm_flags.rb
106
105
  - worm.rb
107
106
  homepage: https://github.com/ttscoff/ruby-progress
@@ -1,39 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative 'lib/ruby-progress/version'
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = 'ruby-progress'
7
- spec.version = RubyProgress::VERSION
8
- spec.authors = ['Brett Terpstra']
9
- spec.email = ['me@brettterpstra.com']
10
-
11
- spec.summary = 'Animated terminal progress indicators'
12
- spec.description = 'Animated progress indicators for Ruby: Ripple (text ripple effects), Worm (Unicode wave animations), and Twirl (spinner indicators)'
13
- spec.homepage = 'https://github.com/ttscoff/ruby-progress'
14
- spec.license = 'MIT'
15
- spec.required_ruby_version = '>= 2.5.0'
16
-
17
- spec.metadata['homepage_uri'] = spec.homepage
18
- spec.metadata['source_code_uri'] = spec.homepage
19
- spec.metadata['changelog_uri'] = "#{spec.homepage}/blob/main/CHANGELOG.md"
20
-
21
- # Specify which files should be added to the gem when it is released.
22
- spec.files = Dir.chdir(__dir__) do
23
- `git ls-files -z`.split("\x0").reject do |f|
24
- (f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
25
- end
26
- end
27
- spec.bindir = 'bin'
28
- spec.executables = %w[prg ripple worm twirl]
29
- spec.require_paths = ['lib']
30
-
31
- # Runtime dependencies
32
- # None required - uses only standard library
33
-
34
- # Development dependencies
35
- spec.add_development_dependency 'rake', '~> 13.0'
36
- spec.add_development_dependency 'rspec', '~> 3.0'
37
- spec.add_development_dependency 'rubocop', '~> 1.21'
38
- spec.add_development_dependency 'simplecov', '~> 0.21'
39
- end