{"id":15405584,"url":"https://github.com/krisleech/wisper-message_bus","last_synced_at":"2025-03-24T21:41:22.040Z","repository":{"id":66255588,"uuid":"38125059","full_name":"krisleech/wisper-message_bus","owner":"krisleech","description":"Relay Wisper events as JSON to other processes via MessageBus","archived":false,"fork":false,"pushed_at":"2015-06-26T17:43:09.000Z","size":108,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-17T04:44:47.478Z","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":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-26T17:42:35.000Z","updated_at":"2019-07-20T20:41:47.000Z","dependencies_parsed_at":"2023-02-20T02:45:33.595Z","dependency_job_id":null,"html_url":"https://github.com/krisleech/wisper-message_bus","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/krisleech%2Fwisper-message_bus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisleech%2Fwisper-message_bus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisleech%2Fwisper-message_bus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisleech%2Fwisper-message_bus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krisleech","download_url":"https://codeload.github.com/krisleech/wisper-message_bus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245359248,"owners_count":20602322,"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-10-01T16:17:18.859Z","updated_at":"2025-03-24T21:41:22.004Z","avatar_url":"https://github.com/krisleech.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wisper::MessageBus\n\nRelay [Wisper](https://github.com/krisleech/wisper) events to other processes\nas JSON using [MessageBus](https://github.com/SamSaffron/message_bus).\n\n## Installation\n\n```ruby\ngem 'wisper-message_bus'\n```\n\n## Usage\n\nIn order to see that events are being correctly relayed to MessageBus start up\na MessageBus server listening on the \"/wisper\" channel.\n\n```ruby\nrequire 'message_bus'\nMessageBus.subscribe(\"/wisper\") { |msg| puts JSON.parse(msg.data) }\n```\n\nNow broadcast Wisper events from a publishers to instances of\n`Wisper::MessageBus::Relay` using the regular Wisper broadcasting features.\n\n```ruby\nmy_publisher.subscribe(Wisper::MessageBus::Relay.new)\n```\n\nAny events broadcast by the publisher will be relayed to MessageBus.\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome.\n\nThis project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrisleech%2Fwisper-message_bus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrisleech%2Fwisper-message_bus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrisleech%2Fwisper-message_bus/lists"}