{"id":15405585,"url":"https://github.com/krisleech/wisper-bubble","last_synced_at":"2025-03-24T21:41:25.731Z","repository":{"id":66255582,"uuid":"121404133","full_name":"krisleech/wisper-bubble","owner":"krisleech","description":"Event bubbling for Wisper","archived":false,"fork":false,"pushed_at":"2018-02-13T16:11:07.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T04:44:47.641Z","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":null,"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":null,"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":"2018-02-13T16:10:06.000Z","updated_at":"2019-11-20T23:12:24.000Z","dependencies_parsed_at":"2023-02-20T18:45:14.100Z","dependency_job_id":null,"html_url":"https://github.com/krisleech/wisper-bubble","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"8bb538c25c8b06af46c70ee493bcfc1b3cc9f878"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisleech%2Fwisper-bubble","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisleech%2Fwisper-bubble/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisleech%2Fwisper-bubble/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisleech%2Fwisper-bubble/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krisleech","download_url":"https://codeload.github.com/krisleech/wisper-bubble/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:20.590Z","updated_at":"2025-03-24T21:41:25.701Z","avatar_url":"https://github.com/krisleech.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wisper::Bubble\n\nEvent bubbling for Wisper.\n\n## Installation\n\n```ruby\ngem 'wisper-bubble'\n```\n\n## Usage\n\n```ruby\nclass MyListener\n  def on_it_happened\n    puts \"!!!\"\n  end\nend\n\nclass FirstPublisher\n  include Wisper::Publisher\n  include Wisper::Bubble\n\n  def call\n    broadcast(:it_happened)\n  end\nend\n\nclass SecondPublisher\n  include Wisper::Publisher\n\n  def call\n    first_publisher = FirstPublisher.new\n    first_publisher.bubble(self)\n    first_publisher.call\n  end\nend\n\nsecond_publisher = SecondPublisher.new\n\nsecond_publisher.subscribe(MyListener.new)\n\nsecond_publisher.on(:it_happened) do |event|\n  puts \"Hello there: #{event}\"\nend\n\nsecond_publisher.call\n```\n\nAll the regular Wisper subscription options are supported, for example, to\nbubble only selected events:\n\n```ruby\npublisher.bubble(self, on: :create_something_or_other)\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. 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 on GitHub at https://github.com/krisleech/wisper-bubble.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrisleech%2Fwisper-bubble","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrisleech%2Fwisper-bubble","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrisleech%2Fwisper-bubble/lists"}