No commit activity in last 3 years
No release in over 3 years
RubyGem implementation of beanstalkd
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

GemeraldBeanstalk

Gem Version Build Status Coverage Status Code Climate Dependency Status

GemeraldBeanstalk offers a Ruby implementation of beanstalkd for testing and other uses.

Usage

GemeraldBeanstalk should work as a drop in replacement for beanstalkd. You can start a server via GemeraldBeanstalk::Server.start:

  # Start a GemeraldBeanstalk bound to 0.0.0.0:11300
  GemeraldBeanstalk::Server.start

  # Customize server binding
  GemeraldBeanstalk::Server.start('192.168.1.10', 11301)

GemeraldBeanstalk::Server.start returns an array containing the Thread the server is running in and the server's GemeraldBeanstalk::Beanstalk instance.

The internals of GemeraldBeanstalk are undocumented at this point, with the expectation being that it should be interacted with strictly via the beanstalkd protocol. This will likely change in the future, allowing more programatic access directly to the GemeraldBeanstalk::Beanstalk. If you think better documentation is needed pronto, create an issue and I will add docs.

Installation

Add this line to your application's Gemfile:

gem 'gemerald_beanstalk'

And then execute:

$ bundle

Or install it yourself as:

$ gem install gemerald_beanstalk

Unbugs!

In the process of building GemeraldBeanstalk, a number of bugs and inconsistencies with Beanstalkd protocol were discovered. Patches have been submitted to correct the various bugs and inconsistencies, but they have not yet been merged into beanstalkd.

It would be fairly tedious to reproduce the behavior of some of the bugs, and as such, GemeraldBeanstalk doesn't suffer from them. This can be troubling when you run tests that work against GemeraldBeanstalk, but then fail against an actual beanstalkd server. Below are a list of those protocol issues that exist with Beanstalk, but not with GemeraldBeanstalk.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request