Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sunny/actor-rails
Actor Rails provides Rails support to the Actor service objects
https://github.com/sunny/actor-rails
Last synced: 2 months ago
JSON representation
Actor Rails provides Rails support to the Actor service objects
- Host: GitHub
- URL: https://github.com/sunny/actor-rails
- Owner: sunny
- License: mit
- Created: 2020-03-24T17:22:44.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-07-10T07:38:37.000Z (over 1 year ago)
- Last Synced: 2024-04-23T06:59:06.279Z (8 months ago)
- Language: Ruby
- Size: 11.7 KB
- Stars: 10
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# ServiceActor-Rails
![Tests](https://github.com/sunny/actor-rails/workflows/Tests/badge.svg)
ServiceActor-Rails provides Rails support for the
[ServiceActor](https://github.com/sunny/actor) gem.## Installation
Add these lines to your application's Gemfile:
```ruby
# Composable service objects
gem "service_actor-rails"
```## Usage
You can use the `actor` generator:
```sh
rails generate actor create_order
```Creates `app/actors/create_order.rb`:
```ruby
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](https://rubygems.org).## Contributing
Bug reports and pull requests are welcome
[on GitHub](https://github.com/sunny/actor-rails).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](https://github.com/sunny/actor-rails/blob/master/CODE_OF_CONDUCT.md).## License
The gem is available as open source under the terms of the
[MIT License](https://opensource.org/licenses/MIT).