Skip to content

Fix progress logger routing and zero totals - #89

Merged
samuel-williams-shopify merged 2 commits into
mainfrom
fix/progress-routing-and-zero-total
Sep 14, 2026
Merged

samuel-williams-shopify merged 2 commits into
mainfrom
fix/progress-routing-and-zero-total

Conversation

@samuel-williams-shopify

Copy link
Copy Markdown
Contributor

Summary

  • bind progress instances to the Console::Logger that created them
  • preserve global Console output for directly constructed progress instances
  • handle zero totals without division errors
  • clamp terminal progress rendering to the 0–100% range
  • add regression coverage for increment, resize, mark, zero totals, and negative progress

Testing

  • RUBYLIB=lib ~/.gem/ruby/4.0.0/bin/sus test (209 tests, 1,463 assertions)
  • RUBYLIB=lib ~/.gem/ruby/4.0.0/bin/rubocop lib/console/progress.rb lib/console/logger.rb lib/console/terminal/formatter/progress.rb test/progress.rb test/console/terminal/formatter/progress.rb

Assisted-By: devx/c12a2613-056d-4e24-9510-9e202d3e081f
Assisted-By: devx/c12a2613-056d-4e24-9510-9e202d3e081f
@samuel-williams-shopify
samuel-williams-shopify merged commit abdafc4 into main Sep 14, 2026
46 of 53 checks passed
@samuel-williams-shopify
samuel-williams-shopify deleted the fix/progress-routing-and-zero-total branch September 14, 2026 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant