⚛️ Solid::Process

Write business logic for Ruby/Rails that scales.

Ruby Rails

Supported Ruby and Rails

This library is tested against:

Ruby / Rails 6.0 6.1 7.0 7.1 Edge


solid-process is a Ruby/Rails library designed to encapsulate business logic into manageable processes. It simplifies writing, testing, maintaining, and evolving your code, ensuring it remains clear and approachable as your application scales.

Key Objectives:

  1. Seamless Rails integration: Designed to fully complement the Ruby on Rails framework, this library integrates smoothly without conflicting with existing Rails conventions and capabilities.

  2. Support progressive mastery: Offers an intuitive entry point for novices while providing robust, advanced features that cater to experienced developers.

  3. Promote conceptual integrity and rapid onboarding: By maintaining a consistent design philosophy, solid-process reduces the learning curve for new developers, allowing them to contribute more effectively and quickly.

  4. Minimize technical debt: Facilitate smoother transitions and updates as your application expands and your team size increases.

  5. Enhanced observability: Equipped with sophisticated instrumentation mechanisms, the library enables detailed logging and tracing without compromising clarity, even when processes are nested. This ensures the code is both easy to understand and to observe.


Checkout the solid-rails-app for a full example of how to use solid-process in a Rails application. Or take a look at the examples folder in this repository.


Add this line to your application's Gemfile:

gem 'solid-process'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install solid-process


TODO: Write usage instructions here


After checking out the repo, run bin/setup to install dependencies. Then, run bundle exec rake dev to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.


Bug reports and pull requests are welcome on GitHub at https://github.com/solid-process/solid-process. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.


The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Solid::Process project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.