Your friendly neighborhood activist.
MIT License
= AmazingActivist :ci-url: https://github.com/ixti/amazing-activist/actions/workflows/ci.yml?query=branch%3Amain :ci-img: https://github.com/ixti/amazing-activist/actions/workflows/ci.yml/badge.svg?branch=main :codecov-url: https://codecov.io/gh/ixti/amazing-activist/tree/main :codecov-img: https://codecov.io/gh/ixti/amazing-activist/graph/badge.svg?token=LXaGWwv5xl
ifdef::env-github[] {ci-url}[image:{ci-img}[CI]] {codecov-url}[image:{codecov-img}[codecov]] endif::[]
== Installation
Add this line to your application's Gemfile:
$ bundle add amazing-activist
Or install it yourself as:
$ gem install amazing-activist
== Usage
class ApplicationActivity < AmazingActivist::Base end
class OnboardingActivity < ApplicationActivity def call user = User.new(params)
return failure(:invalid_params, user: user) unless user.save
success(user)
end end
== Compatibility
This library aims to support and is tested against:
If something doesn't work on one of these versions, it's a bug.
This library may inadvertently work (or seem to work) on other Ruby versions, however support will only be provided for the versions listed above.
== Development
bundle install bundle exec rake
== Contributing
bundle exec rake
)