{"id":21107489,"url":"https://github.com/cjhdev/small_event","last_synced_at":"2025-07-07T07:34:39.057Z","repository":{"id":148216408,"uuid":"202713115","full_name":"cjhdev/small_event","owner":"cjhdev","description":"simple in-memory publish-subscribe","archived":false,"fork":false,"pushed_at":"2019-08-16T11:07:38.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-20T09:45:23.488Z","etag":null,"topics":["no-annoying-mixins","publish-subscribe","ruby","simple"],"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/cjhdev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-16T11:06:10.000Z","updated_at":"2019-08-16T11:08:49.000Z","dependencies_parsed_at":"2023-05-19T11:00:20.139Z","dependency_job_id":null,"html_url":"https://github.com/cjhdev/small_event","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cjhdev/small_event","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjhdev%2Fsmall_event","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjhdev%2Fsmall_event/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjhdev%2Fsmall_event/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjhdev%2Fsmall_event/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cjhdev","download_url":"https://codeload.github.com/cjhdev/small_event/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjhdev%2Fsmall_event/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264034954,"owners_count":23547311,"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":["no-annoying-mixins","publish-subscribe","ruby","simple"],"created_at":"2024-11-20T00:40:16.778Z","updated_at":"2025-07-07T07:34:38.985Z","avatar_url":"https://github.com/cjhdev.png","language":"Ruby","readme":"SmallEvent\n==========\n\nAn in-memory publish/subscribe implementation for small-ish applications.\n\n## Example\n\n~~~ ruby\nrequire 'small_event'\n\nbroker = SmallEvent::Broker.new\n\n# consumer of all topics\nbroker.subscribe do |msg, topic|\n  puts \"all got '#{msg}' from topic '#{topic}'\"\nend\n\n# consumer of specific topic\nbroker.subscribe 'specific' do |msg, topic, sub|\n  puts \"specific got '#{msg}' from topic '#{topic}'\"\nend\n\n# consumer of matching topic\nbroker.subscribe(/event[0-9]+/) do |msg, topic, sub|\n  puts \"matching got '#{msg}' from topic '#{topic}'\"\nend\n\n# publish...\nbroker.publish \"for all\"\nbroker.publish \"for specific\", \"specific\"\nbroker.publish \"for matching\", \"event1\"\nbroker.publish \"for matching\", \"event2\"\nbroker.publish \"not for matching\", \"event\"\n~~~\n\n## License\n\nSmallEvent has an MIT license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjhdev%2Fsmall_event","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcjhdev%2Fsmall_event","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjhdev%2Fsmall_event/lists"}