{"id":13411994,"url":"https://github.com/krisleech/wisper-activejob","last_synced_at":"2025-04-09T17:25:59.857Z","repository":{"id":21570917,"uuid":"24890792","full_name":"krisleech/wisper-activejob","owner":"krisleech","description":"Provides asynchronous event publishing to Wisper using ActiveJob","archived":false,"fork":false,"pushed_at":"2023-11-01T04:19:13.000Z","size":19,"stargazers_count":36,"open_issues_count":4,"forks_count":27,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T11:49:24.562Z","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/krisleech.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-10-07T13:13:45.000Z","updated_at":"2024-10-16T14:46:55.000Z","dependencies_parsed_at":"2024-06-19T01:52:22.801Z","dependency_job_id":null,"html_url":"https://github.com/krisleech/wisper-activejob","commit_stats":{"total_commits":22,"total_committers":6,"mean_commits":"3.6666666666666665","dds":0.2272727272727273,"last_synced_commit":"30cc85e948147c1d9319bd1b4392426e112b1f51"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisleech%2Fwisper-activejob","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisleech%2Fwisper-activejob/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisleech%2Fwisper-activejob/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisleech%2Fwisper-activejob/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krisleech","download_url":"https://codeload.github.com/krisleech/wisper-activejob/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248076054,"owners_count":21043700,"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-07-30T20:01:19.896Z","updated_at":"2025-04-09T17:25:59.825Z","avatar_url":"https://github.com/krisleech.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Wisper::ActiveJob\n\nProvides [Wisper](https://github.com/krisleech/wisper) with asynchronous event\npublishing using\n[ActiveJob](https://github.com/rails/rails/tree/master/activejob).\n\n[![Gem Version](https://badge.fury.io/rb/wisper-activejob.png)](http://badge.fury.io/rb/wisper-activejob)\n[![Code Climate](https://codeclimate.com/github/krisleech/wisper-activejob.png)](https://codeclimate.com/github/krisleech/wisper-activejob)\n[![Build Status](https://travis-ci.org/krisleech/wisper-activejob.png?branch=master)](https://travis-ci.org/krisleech/wisper-activejob)\n[![Coverage Status](https://coveralls.io/repos/krisleech/wisper-activejob/badge.png?branch=master)](https://coveralls.io/r/krisleech/wisper-activejob?branch=master)\n\n## Installation\n\n```ruby\ngem 'wisper-activejob'\n```\n\n## Usage\n\n```ruby\npublisher.subscribe(MyListener, async: true)\n```\n\nThe listener must be a class (or module), not an object. This is because ActiveJob\ncan not reconstruct the state of an object. Whereas a class has no state.\n\nAdditionally, you should also ensure that your methods used to handle events under `MyListener` are all declared as class methods:\n\n```ruby\nclass MyListener\n  def self.event_name\n  end\nend\n```\n\n\nWhen publishing events the arguments must be simple types as they need to be\nserialized, or the object must include `GlobalID` such as `ActiveRecord` models.\n\n* [ActiveJob guide](http://edgeguides.rubyonrails.org/active_job_basics.html)\n* [GlobalID](https://github.com/rails/globalid)\n\n## Compatibility\n\n1.9.3+ including JRuby and Rubinius.\n\nSee the [build status](https://travis-ci.org/krisleech/wisper-activejob) for details.\n\n## Contributing\n\nPlease send a [Pull Request](https://github.com/krisleech/wisper-activejob/pulls)\nor an [Issue](https://github.com/krisleech/wisper-activejob/issues) to discuss\nyour idea first.\n\n## Releasing\n\n* Bump VERSION\n* Push to master\n* rake build\n* rake release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrisleech%2Fwisper-activejob","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrisleech%2Fwisper-activejob","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrisleech%2Fwisper-activejob/lists"}