Skip to content

Internal improvements 3 - #83

Merged
blocknotes merged 4 commits into
mainfrom
internal-improvements-3
Mar 15, 2026
Merged

blocknotes merged 4 commits into
mainfrom
internal-improvements-3

Conversation

@blocknotes

@blocknotes blocknotes commented Mar 15, 2026 •

Copy link
Copy Markdown
Owner
  • feat: Improve upload checksum
  • fix: Correct dead fallback for service name
  • fix: OCTET_LENGTH on old SQLite
  • fix: acceptable_content? type mismatch

Since `respond_to?(:name)` returns always `true`.
Add SQLite-specific branch using `LENGTH(data)` instead of `OCTET_LENGTH(data)`. `OCTET_LENGTH` was only added in SQLite 3.43.0 (Aug 2023); older versions would crash at runtime during streaming downloads.
Compute checksum from in-memory IO data before persisting, instead of writing first and re-reading the entire blob from the DB. Remove the now-dead ensure_integrity_of method.
`request.content_mime_type` (returns `Mime::Type` object) while `request.media_type` (returns plain string).
@blocknotes blocknotes self-assigned this Mar 15, 2026
@blocknotes
blocknotes marked this pull request as ready for review March 15, 2026 16:56
@blocknotes
blocknotes merged commit c1db2ff into main Mar 15, 2026
28 checks passed
@blocknotes
blocknotes deleted the internal-improvements-3 branch March 15, 2026 16:56
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