{"id":13879535,"url":"https://github.com/chaps-io/faire","last_synced_at":"2025-10-28T16:02:20.540Z","repository":{"id":56845422,"uuid":"45054583","full_name":"chaps-io/faire","owner":"chaps-io","description":"Manage application logic with Interactors","archived":false,"fork":false,"pushed_at":"2016-06-02T09:18:07.000Z","size":10,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T12:47:52.596Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chaps-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-27T16:35:36.000Z","updated_at":"2020-06-09T17:09:05.000Z","dependencies_parsed_at":"2022-09-17T11:10:39.277Z","dependency_job_id":null,"html_url":"https://github.com/chaps-io/faire","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaps-io%2Ffaire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaps-io%2Ffaire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaps-io%2Ffaire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaps-io%2Ffaire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chaps-io","download_url":"https://codeload.github.com/chaps-io/faire/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247755588,"owners_count":20990626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-06T08:02:24.237Z","updated_at":"2025-10-28T16:02:20.456Z","avatar_url":"https://github.com/chaps-io.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Faire\n\n### Yet another Interactors for ruby.\n\n## Usage  \n\n### Faire is very unstable at the moment, as it’s on very early development stage. Expect breaking changes, use at own risk.\n\n1. Declare your interactor:\n```ruby\n\nclass YourInteractor\n   include Faire\n   \n   input :required_input\n   input :another_required_input, klass: String #it will be coerced to String\n   input :optional_integer, required: false, klass: Integer\n   input :example_array, klass: Array[Integer], allow_empty: false # will try to coerce all array elements to integer, plus it won’t allow empty array\n   \n   \n   def execute\n     # put your business logic here.\n     # #attributes will hold coerced values\n     User.create(attributes)\n   end\nend\n```\n\n2. Use your interactor:\n\nYou can use either `YourInteractor.run(params)`, which will return Interactor object (which responds to methods like `valid?`, `errors` and `results`, or `YourInteractor.run!(params)` which will either return result, or raise error.\n\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaps-io%2Ffaire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchaps-io%2Ffaire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaps-io%2Ffaire/lists"}