Skip to content
Edit this page View source of this page

Compatibility

This page lists the Ruby, Hanami, database, web server, and browser versions that Mankai supports, and the versions that CI tests. "Tested" means that the gem's full test suite runs against that version.

Ruby

All six gems require Ruby 3.3 or later. CI runs every test suite on Ruby 4.0 and 3.4.

Hanami

Mankai supports Hanami 3. CI runs the demo app's specs on Hanami 3.0.

Some features need a later Hanami version. The following table lists them:

Feature Hanami version
Providers, Deps, slices, and the hanami jobs and hanami sockets commands 3.0 or later
Code reloading in hanami jobs start workers 3.1 or later
The development error page that offers to install missing jobs tables 3.1 or later

Mankai doesn't support Hanami 2. The gems don't depend on the hanami gem directly, so Bundler doesn't stop you from installing them on Hanami 2. Check your Hanami version yourself.

Databases

The SQL gems use Sequel through hanami-db. CI runs all three SQL gems' test suites against the following databases:

Database Tested versions Notes
PostgreSQL 16, 17, 18, 19 None
MySQL 9.7, 26.10 Add fractional_seconds=true to the URL.
MariaDB 12.3, 13.1 Add fractional_seconds=true to the URL.
SQLite 3 Add a busy handler. SQLite runs one write at a time, so it suits small apps.

The jobs backend takes jobs with FOR UPDATE SKIP LOCKED, so the minimum versions are PostgreSQL 9.5, MySQL 8.0, and MariaDB 10.6. Versions between those minimums and the tested versions should work, but CI doesn't test them.

Web servers

WebSockets need a Rack 3 server that supports full hijack, which lets the app take over the connection's socket. Puma supports it, and the demo app and these docs use Puma. Jobs and the cache work with any Rack server.

Browsers

The browser client is an ES module with no dependencies. It needs a browser that supports the native WebSocket API and ES modules, which all major browsers do.