Refactor @cant_fork and $TESTING. We need separate control in the next commit to prevent invocation of before_hook when in fact we don't fork.
Don't run the :before_fork hook if we're not actually going to fork.
Don't run the :after_fork hook if the worker hasn't actually forked.
Added dump to .gitignore
Fix test suite.

JRuby needs the new exception, but we don't always have JSON loaded.
Merge pull request #672 from kjwierenga/feature/conditional_fork_hooks

Don't invoke :before_fork and :after_fork hooks when not forking - fixes fd leak when used with NewRelic
Remove extra assertion.

This is really testing the library. And it breaks the build
on 1.8.7.
Only call after_fork if will_fork? is true

This change provides consistent forking semantics across JRuby running
in both 1.8 and 1.9 mode and resolves the current test failure.
Merge pull request #697 from tarcieri/consistent_jruby_behavior

Only call after_fork if will_fork? is true
Pass exceptions raised by the worker into the Failure backend
Worker tries to reconnect to Redis up to 3 times with increasing delay before giving up

Conflicts:

	test/worker_test.rb
Use the capture_io method from minitest
Merge pull request #693 from 37signals/1-x-stable

Backported fixes from 37s changes in master
update changelog
@tarcieri is awesome <3 <3 :heart: :heart:
update version to 1.23.0
Fixes bug when removing all jobs of a class. Should always return number of jobs removed.
Unexplained superflulous space is disturbing my feng shui
Resque.logger accessor
Initial Resque::Logger module

This module can be selectively included in classes which wish to take
advantage of the centralized logging facilities, enabling a set of 5
methods for each severity level (debug, info, warn, error, fatal)