{"id":19020577,"url":"https://github.com/restaurant-cheetah/fuli","last_synced_at":"2025-10-06T06:31:38.786Z","repository":{"id":56848129,"uuid":"197383967","full_name":"restaurant-cheetah/fuli","owner":"restaurant-cheetah","description":"Respond to application errors with configurable notifiers","archived":false,"fork":false,"pushed_at":"2020-03-02T17:14:42.000Z","size":19,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-23T05:58:09.175Z","etag":null,"topics":["configurable-notifiers","error-handling","error-notifier","fuli","ruby"],"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/restaurant-cheetah.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-17T12:21:51.000Z","updated_at":"2020-03-02T17:14:36.000Z","dependencies_parsed_at":"2022-09-07T04:51:34.738Z","dependency_job_id":null,"html_url":"https://github.com/restaurant-cheetah/fuli","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/restaurant-cheetah%2Ffuli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/restaurant-cheetah%2Ffuli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/restaurant-cheetah%2Ffuli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/restaurant-cheetah%2Ffuli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/restaurant-cheetah","download_url":"https://codeload.github.com/restaurant-cheetah/fuli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250379787,"owners_count":21420841,"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":["configurable-notifiers","error-handling","error-notifier","fuli","ruby"],"created_at":"2024-11-08T20:17:35.310Z","updated_at":"2025-10-06T06:31:38.697Z","avatar_url":"https://github.com/restaurant-cheetah.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fuli\nRespond to application errors with configurable notifiers\n\n[![Gem Version](https://badge.fury.io/rb/fuli_the_guard.svg)](https://badge.fury.io/rb/fuli_the_guard)\n\n### Install\n\n```ruby\ngem install fuli_the_guard\n```\n\n### Configuration\n\n```ruby\n# Notifier could be any callable object that gets error param\nFuli.configure do |config|\n  config.logger = YourLogger\n  config.warn_notifiers = [\n    -\u003e(error, message){ do_something_with(error, message) }]\n  config.error_notifiers = [\n    proc { |error, message| do_something_with(error, message) }]\nend\n\n# Or using class instead of proc / lambda\nclass SomeNotifier\n  class \u003c\u003c self\n    def call(error, message)\n      # notify some service\n    end\n  end\nend\n\nFuli.configure do |config|\n  config.logger = YourLogger\n  config.warn_notifiers = [SomeNotifier]\nend\n```\n\n### Example\n\n```ruby\nclass Cheetah\n  def hunt_em\n    # do things\n  rescue =\u003e e\n    context_message = { custom: 'context', more: :things }\n    Fuli.notify_error(e, context_message)\n  end\n\n  def follow_em\n    # do more things\n    warn_message = 'May be something gonna brake..'\n    Fuli.notify_warning(warn_message)\n  end\nend\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frestaurant-cheetah%2Ffuli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frestaurant-cheetah%2Ffuli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frestaurant-cheetah%2Ffuli/lists"}