A lightweight message broker written in Ruby.
- Simple and efficient message queueing
- Supports multiple backends
- Easy integration with Ruby applications
Ensure you have Ruby installed.
Install the gem:
gem install message-broker
Or add it to your Gemfile:
gem 'message-broker'
Then run:
bundle install
require 'message_broker'
broker = MessageBroker.new
broker.publish('channel', 'Hello, World!')
message = broker.subscribe('channel')
puts message # => "Hello, World!"
Run the tests using:
rake test
Or with RSpec:
rspec
- Fork the repository
- Create a feature branch (
git checkout -b feature-branch
) - Commit your changes (
git commit -am 'Add new feature'
) - Push to the branch (
git push origin feature-branch
) - Open a Pull Request
This project is licensed under the MIT License.