QwopClient
QwopClient is a client for publishing messages to an NSQ instance
Installation
Add this line to your application's Gemfile:
gem 'qwop_client'
And then execute:
$ bundle
Or install it yourself as:
$ gem install qwop_client
After installing you will need to add an initializer that defines QwopClient.nsq_host (default: localhost) and QwopClient.nsq_port (default: 4150). If using rails this file can be generated for you by running:
$ rails generate initializer
Usage
QwopClient::Mailers::Sendgrid.queue("name_of_your_nsq_queue", Mail.new)
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request