@blazetrails/mini-magick
ImageMagick command lines for Trails, mirroring the mini_magick gem
| Measure | Value |
|---|---|
| Rails counterpart | mini_magick v5.3.1 |
| API methods matched | 100% (125 of 125) |
| Rails tests matched | 100% (146 of 146) |
| Ruby files ported | 8 |
| Ruby files unported | 0 |
| Measured at | fe89b44726 |
Gaps by file
No gaps recorded for this package.
Missing methods
None recorded for this package.
Unported Ruby files
Every compared Ruby file has a TypeScript file.
Deviation receipts
JSDoc receipt tags in the package's source, by the receipt each carries.
| Tag | PERMANENT | CONVERGEABLE | none |
|---|---|---|---|
@noRailsEquivalent | 15 | 0 | 0 |
@missingRailsArgs | 1 | 0 | 0 |
@missingRailsName | 3 | 0 | 0 |
@inventedArm | 1 | 0 | 0 |
@internal | 0 | 0 | 3 |
Permanently skipped tests
None.
Ratified deviations
Each rule below is ratified in the repository's CLAUDE.md files. The first paragraph is quoted; the link opens the full section at this build's commit.
Image#== and #hash compare a warm signature (Image::Info#signature)
Image#== and #hash (vendor/mini_magick/v5.3.1/lib/mini_magick/image.rb:156-163) read signature, which Image::Info#signature memoizes from an identify run in line (image/info.rb:112-114). In trails that run is a child process, so it is awaited: Info#signature answers the memoized String once it has been read, and a Promise before that.
packages/mini-magick/CLAUDE.md →
The constructor's block is awaited by the next run (Image#initialize's combine_options)
Image#initialize ends combine_options(&block) if block (vendor/mini_magick/v5.3.1/lib/mini_magick/image.rb:149-155), a mogrify run in line. In trails that run is an awaited child process and a JS constructor cannot await, so the constructor seats its promise on Info#_pending, and every later operation on the image awaits it first: Info#identify and #data, and Image#identify, #mogrify, #format, #composite (for its other image and mask too), #write, #get_pixels (after its map check), #to_blob and #destroy! (both async for this reason). A read made right after new Image(path, null, block) therefore sees the block's changes, as Ruby's does, and a failed block rejects that read rather than going unhandled.
packages/mini-magick/CLAUDE.md →
method_missing definers in this package
Class-specific rules under root § "Ruby protocol methods with a different JS mechanism"; its cross-table rules and docs/method-missing-definers.md apply too.