Adding a to_s and inspect test to worker.
typo.
Merge pull request #948 from sshingler/worker_test

Adding a quick test for the string representations of a worker
Fix worker_test failure under Ruby 1.8.7

* The reason why worker_test failed under 1.8.7 is `Hash#to_s` in 1.8.7
  is different from other versions(1.9/2.0).

  `{:a => 1}.to_s` under 1.8.7 is `a1`, but under 1.9/2.0 is `{:a=>1}`.

  And also, the original way to new a resque worker seems not right,
  we should pass either an array of queues' names or just one name,
  but not a Hash object.
Merge pull request #949 from larrylv/fix-worker-test-failure-under-1.8.7

Fix worker_test failure under Ruby 1.8.7
Use syntax highlighting in the readme file.
Merge pull request #950 from ming13/readme-syntax-highlighting

Use syntax highlighting in the readme file
Remove reconnect logic from worker.

introduces a new class, Client, which will handle Redis stuff from
now on. As such, it needs the reconnect logic.
Add tests around #reconnect for Client
Small refactoring on Client#reconnect

1. We don't need to check if we've already reconnected to reconnect, the redis gem handles that case
2. Let's not increment + test on the same line
3. if/else becomes if for simplicity
The client now takes a reference to logger

We don't want to reference the global singleton logger, so
we'll take it in the constructor.

This also means the default one in Worker#initialize needs
to inject the global logger.
Remove unneeded legacy test around reconnect.

Now that we're testing this behavior in the client,
we don't need this mega-gross, complicated, flaky test.
Throw our own ConnectionError.

Instead of bubbling up the Redis error, we want to throw our own.

Also wrote documentation that is better for the reconnect method.
Rename Client -> Backend
Rename Backend#backend to Backend#store, following I18n's naming
Merge pull request #958 from oliverbarnes/client_refactor

Client refactor
depend on Backend for redis rather than Config
replace instances of redis with backend.store

Now we don't have a global Redis reference any more.
Adding a default queue.

By default, Resque will try to work on the 'default' queue. Seems
simple.

I don't know how to write a good test for this, though.
Revert "Adding a default queue."

This reverts commit eb4f03847a0ef417f435eba72a9bbe20d938dd01.

Causes test failures: https://travis-ci.org/resque/resque/jobs/6459784