Skip to content

Print a transfer of unknown size on every supported Pharo - #168

Merged
svenvc merged 1 commit into
svenvc:masterfrom
Gabriel-Darbord:fix/progress-size-printer
Nov 11, 2026
Merged

svenvc merged 1 commit into
svenvc:masterfrom
Gabriel-Darbord:fix/progress-size-printer

Conversation

@Gabriel-Darbord

Copy link
Copy Markdown
Contributor

ZnUtils class >> #signalProgress:total: prints the amount with #humanReadableSIByteSize. Pharo 11 renamed it to #humanReadableSISizeString, kept the old name as a deprecated alias through Pharo 12, and Pharo 13 removed it. So signalling progress for a body of unknown size fails on Pharo 13 and 14, and is rewritten as a deprecation on 11 and 12. (#167 said no Pharo from 11 on has it; 11 and 12 do, deprecated.)

ZnUtils class >> #humanReadableSize: sends whichever of the two the image has, as ZnFileSystemUtils does for file streams. Both answer the same strings, in SI units by 1000.

ZnUtilsTest >> #testSignalProgressWithoutTotal covers the branch for an unknown total, which no test reached.

ZnUtils class>>#signalProgress:total: printed the amount with #humanReadableSIByteSize, which Pharo 11 renamed to #humanReadableSISizeString and Pharo 13 removed, so signalling progress for a body of unknown size failed there. ZnUtils class>>#humanReadableSize: uses whichever of the two the image has.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@svenvc
svenvc merged commit e56d7bd into svenvc:master Nov 11, 2026
6 checks passed
@svenvc

svenvc commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Again, thank you, looks good to me

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.

2 participants