Skip to content

Installation

Requirements

  • Ruby >= 3.2.0
  • Bundler (recommended)

Installation Methods

Add SimpleFlow to your Gemfile:

gem 'simple_flow'

Then install:

bundle install

Using RubyGems

Install directly with gem:

gem install simple_flow

Dependencies

  • logger and tsort - no longer default gems as of Ruby 4.0/4.1; installed automatically
  • async (~> 2.0) - optional; add it to your Gemfile for fiber-based parallel execution. Without it, parallel steps run on Ruby threads.

Verifying Installation

After installation, verify SimpleFlow is working:

require 'simple_flow'

pipeline = SimpleFlow::Pipeline.new do
  step ->(result) { result.continue("Hello, SimpleFlow!") }
end

result = pipeline.call(SimpleFlow::Result.new(nil))
puts result.value
# => "Hello, SimpleFlow!"

If this runs without errors, you're ready to go!

Next Steps