mperham/sidekiq — pull request #146 by Cloven (2012-04-19 20:07:49+00:00)
Title: Redis rb v3 compatibility

redis-rb 3.0.0.xx (currently rc1) changed the api for determining the client's attached redis instance, causing sidekiq to fail when sidekiq starts and tries to print out which redis it's using. This remediates that issue.

redis-rb 3.0.0.xx (currently rc1) uses a hash of options as the 2nd argument to blpop instead of a timeout value, causing sidekiq to fail on fetch. This remediates that issue.

In case people are still using 2.2.2 (which they probably will for a while), the code detects the redis version number and gracefully does the right thing.

Additionally, multi_json 1.2.0 complained bitterly and extensively about encode/decode being deprecated, and then its advice (use load/dump instead) causes private method errors on certain adapters. Suboptimal! So I updated the gem requirement to the latest and greatest multi_json 1.3.2 which appears not to be so broken, and fixed all the encode/decodes to be dumps/loads.