No release in over 3 years
Low commit activity in last 3 years
Rails support for the Service Actor gem, helping you create service objects for your application logic.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

ServiceActor-Rails

Tests

ServiceActor-Rails provides Rails support for the ServiceActor gem.

Installation

Add these lines to your application's Gemfile:

# Composable service objects
gem "service_actor-rails"

Usage

You can use the actor generator:

rails generate actor create_order

Creates app/actors/create_order.rb:

class CreateOrder < Actor
  def call
  end
end

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake to run the tests and linting. You can also run bin/console for an interactive prompt.

To release a new version, update the version number in version.rb, and in the CHANGELOG.md, run rake, and create a commit for this version. You can then run rake release, which will create a git tag for the version, push git commits and tags, and push the gem to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub.

This project is intended to be a safe, welcoming space for collaboration, and everyone interacting in the project’s codebase and issue tracker is expected to adhere to the Contributor Covenant code of conduct.

License

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