defunkt/resque — pull request #612 by mrzor (2012-06-06 21:13:47+00:00)
Title: 1.x : no array wrap while running failure hooks

When ActiveSupport isn't loaded, Array.wrap is undefined. This breaks failure_hooks, and the tests are blind to this issue because hoptoad/airbrake depend on ActiveSupport.

I could highlight this by failing tests after running "git clone ...; rvm use resquegemset; gem install bundler; bundle; gem uninstall activesupport". This yielded 5 errors on "NoMethodError: undefined method `wrap' for Array:Class" and a couple of likely related errors.

There was only a single occurrence of Array.wrap in the whole project. I tuned this by forwarding job args in the same fashion that resque code generally displays.

The tests all pass again, even without activesupport !