RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

CMDx 2.0.1 released — fault causes, telemetry, and tighter callback semantics

CMDx 2.0.1 lands a handful of focused improvements to the service-object runtime, mostly around fault handling, callback semantics, and observability.

What’s new:

  • Fault#cause is now linked — raised faults preserve the underlying exception, so error trackers and stack traces point at the real origin instead of dead-ending at the framework.
  • Context lookup perfContext#method_missing resolution order was simplified, trimming allocations on a very hot path.
  • I18n for full_messages — validation error full_messages now attempt translation, with a clean fallback when no key exists.
  • New :task_rolled_back telemetry event — workflows emit a dedicated event on rollback, making it easy to alert/dashboard on compensating actions.
  • Cleaner callback orderingaround_execution now wraps only Task#work (and any #rollback). before_validation runs before the around-block; after_execution runs after it. Previously both were nested inside the around-block, which muddied timing/logging.

Knowledge base:

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in