Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: tech-angels/resque
head fork: processone/resque
Commits on Oct 24, 2010
Stephen Celis stephencelis Additional Hoptoad configuration support. a488d0b
Kevin Menard nirvdrum Use text/html since it is HTML and this helps with mod_proxy_html. 7055fca
Commits on Nov 03, 2010
Chris Wanstrath defunkt the future bf41357
Commits on Nov 06, 2010
Chris Wanstrath defunkt It's pronounced 'rescue' 52b4a28
Commits on Feb 03, 2011
Scott Gonyea sgonyea Fixed links for deploying rack apps 6a3a283
James Adam lazyatom Log any catastrophic issues when reserving, but still raise the error…
… so that resque dies.
Matt Duncan mrduncan Strip whitespace from queue names 7027d71
Matt Duncan mrduncan Remove trailing whitespace from readme 7ca0bf3
Björn Grossmann cokron be more precise when getting pid's of resque workers to kill: do NOT …
…kill resque-web
Jason Amster jamster updated rake install tasks to allow user to choose an install directo…
…ry by adding INSTALL_DIR=/your/path/here to the command line args
Jason Amster jamster updated desc on rake task f5500f1
Chris Wanstrath defunkt whitespace 223c559
Kevin Menard nirvdrum Deal with a changed in mapped_get semantics in redis-rb.
Previously the method stripped out keys with nil values, now it returns them, so we need to strip out the keys with nil values.
Commits on Feb 04, 2011
Christian Nelson christiannelson Write out worker pid to PIDFILE if specified. 5765fe1
Kris Kemper kemper fixed a defect where exceptions in the failure backend would cause th…
…e chile process to terminate like the parent
Wojciech Wnętrzak morgoth added Worker#pid method c181644
Chris Wanstrath defunkt 1.12.0 e19b83e
Paul Rosania paulrosania Accept namespaces in `resque` command f26934c
Chris Wanstrath defunkt vegas and sinatra 1a1f493
Chris Wanstrath defunkt redis-namespace 0.10 00e04e7
Kyle Neath kneath Suggest sending pull requests instead of issues f687521
Matt Duncan mrduncan Cleanup trailing whitespace 1f09e4c
Chris Wanstrath defunkt time is an illusion 26a14bc
Matt Duncan mrduncan Using thread_safe option when setting redis url 2ee219e
Commits on Feb 07, 2011
Tom Brow fix erroneous pruning of living workers c2cbcc1
Chris Wanstrath defunkt 1.13.0 a8f8fe5
Commits on Feb 16, 2011
Bogdan Gusiev bogdan Resque.validate!(klass) method implementation
Method used to determine is the given klass could be a valid Resque job
Commits on Mar 04, 2011
Wojciech Wnętrzak morgoth fixed actual pid of running worker 67317e7
Chris Wanstrath defunkt int 17a32c5
Commits on Mar 17, 2011
Dzmitry Plashchynski plashchynski Fix monit example. f48da5f
Matt Duncan mrduncan Simplifying by using worker pid dbd04d6
Arto Bendiken bendiken Allowed the poll interval to be specified as a floating point number.
This enables using poll intervals shorter than a second; for example, specifying INTERVAL=0.25 is now possible.
Edvard Majakari EdvardM do not ignore decode errors 3d9daa8
Ryan Glover Adds bundler support d10fdf5
Joshua Peek josh Add link to remove individual failed jobs 7b6f3e9
pete higgins phiggins Fix tests for 1.9.2. c9abf3c
Andrea Campi andreacampi Pass /notice/server-environment/project-root.
According to Hoptoad API documentation this is
optional, but some third-party software using the
same API is more strict and errors out if we don't
provide it (Redmine, I'm looking at you).
James Adam lazyatom Don't crash if unparseable values exist on the failure queue.
We saw some jobs become unloadable on our resque queue, due to issues turning strangely-encoded strings into JSON and back. This meant that resque couldn't parse the jobs, and so we were seeing `nil` elements in the `failures` array.

This is the simplest way of preventing these malformed entries from preventing monitoring of the failures queue entirely.
Bogdan Gusiev bogdan Resque.inline configuration support
In order perform Resque jobs inline introduced
Resque.inline attribute.
Chris Wanstrath defunkt Protect our sleep interval with a Float() 855b2e6
Guillermo Iguaran guilleiguaran Renaming server url method to url_path to avoid conflicting with Sina…
…tra 1.2 url helper
Chris Wanstrath defunkt failing after_enqueue test 22970a2
Aaron Peckham & Michael Sofaer very_verbose works in the afternoon 69d5d40
Chris Wanstrath defunkt Put deps back in gemspec 200ec0f
Chris Wanstrath defunkt Call after_enqueue hook in `Resque.enqueue`. Fixes #169 b8220b2
Chris Wanstrath defunkt Job.validate! => Resque.validate 06b3936
Chris Wanstrath defunkt 1.14.0 c46b3b8
Commits on Mar 18, 2011
James Adam lazyatom The `url` method only exists with Sinatra 1.2 b7d5dd6
Wojciech Wnętrzak morgoth initalize default redis connection by redis gem 39186f6
Chris Wanstrath defunkt Remove .gitignore
If you want to ignore files specific to your IDE,
set a global ignore.

See for more info.
Commits on Mar 19, 2011
Chris Wanstrath defunkt 1.15.0 b569484
Commits on Mar 22, 2011
Chris Hoffman cehoffman Hook individual failure removal into multiple failure backend 246a082
Commits on Mar 23, 2011
Lucas Mundim lucasmundim Fix "Worker doesn't exist" when using poll at /workers/all in resque-web ae2828a
Commits on Mar 25, 2011
Matt Conway wr0ngway fix race condition in resque web 4d0abb0
Commits on Apr 08, 2011
Adman65 Order matters for hoptoad api 5781ca1
Commits on Apr 11, 2011
James Adam lazyatom This button is far, far too powerful to be able to accidentally click. e8ac456
Commits on Apr 12, 2011
Tatsuya Ono ono Add timezone to failed_at/retried_at on resque-web to show relative t…
…ime correctly when a viewer is in a different timezone from a server.
Commits on Apr 14, 2011
Jérémy Lecour jlecour Fix the Monit example
there should be a combo redirection (stdout AND stderr) to the log file
instead of a (useless) process detachment and a simple stdout redirection.
Commits on Apr 19, 2011
Todd Thomas toddthomas Add test for Resque.redis=(<a Redis::Namespace>). be61b0f
Commits on Apr 20, 2011
GitHub Merge Button Merged pull request #267. bf84441
Commits on Apr 25, 2011
Chris Wanstrath defunkt Merged pull request #269 from toddthomas/fix_assigning_redis_namespace.
Add test for Resque.redis=(<a Redis::Namespace>).
Chris Wanstrath defunkt Merged pull request #265 from ono/master.
Show correct relative times to viewers in different timezone
Chris Wanstrath defunkt Merged pull request #266 from jlecour/master.
Typo in the Monit example
Chris Wanstrath defunkt Merged pull request #261 from Adman65/master.
Order matters for Hoptoad API
Commits on May 05, 2011
Will Leinweber will move @paused into a #paused? method 4a13ceb
Commits on May 06, 2011
Ray Krueger raykrueger Fixing/updating the hoptoad backend
The previous version of the hoptoad back end no longer worked. This is due to Hoptoad changing their API somewhere along the way.
I've updated the code here to simply use the hoptoad_notifier gem that folks are likely already using in their apps. This puts the
maintenance and configuration responsibility into that gem rather than here in resque.
Commits on May 11, 2011
Noah Davis Fix relative time display for failed jobs in Safari
Was displaying "NaN days ago" for relative time in Safari.

Safari cannot parse a date in the format '2010-05-10 16:24 -400',
but can parse '05/10/2010 16:24 -400'
Chris Wanstrath defunkt Merge pull request #276 from will/patch-1
move @paused into a #paused? method
Ray Krueger raykrueger Add hoptoad_notifier dependency to the gemspec cd0f191
Ray Krueger raykrueger Use notify_or_ignore for the hoptoad failure backend
Hoptoad can be configured with a set of exceptions to ignore. However, those exceptions are not
ignored when using Hoptoad.notify alone; Hoptoad.notify_or_ignore must be used.
Ray Krueger raykrueger Add a test for the hoptoad failure backend
This class did not have a test previously, it's about time it got one.
Commits on May 16, 2011
Chris Wanstrath defunkt Merge pull request #277 from raykrueger/hoptoad_notifier
Fixing/updating the hoptoad backend by using hoptoad_notifier
Chris Wanstrath defunkt Merge pull request #247 from backupify/fix_resque_web_race_condition
Fix resque web race condition
Chris Wanstrath defunkt Merge pull request #282 from noahd1/fix_safari_relative_time
Fix relative time display for failed jobs in Safari
Chris Wanstrath defunkt redis= wants a string, redis object, or redis::namespace object 24eab54
Seamus Abshere seamusabshere Properly reseed random number generator after forking. 0200c76
nengxu nengxu Move resque/tasks to resque/lib to comply with new Rails convention a…
…nd get rid of the deprecation warning.
Chris Wanstrath defunkt Merge pull request #246 from lucasmundim/master
Fix polling from /workers/all in resque-web
Chris Wanstrath defunkt a word about Resque.push 13fa261
Chris Wanstrath defunkt favicon! thanks @gresrun ff8ffba
Chris Wanstrath defunkt depend on json >= 1.4.6, < 1.6 7539594
Chris Wanstrath defunkt ensure we're using bundler's test env 7b28202
Chris Wanstrath defunkt add leftright to test env for 1.8 only 008f905
Chris Wanstrath defunkt FAQ 8d23a30
Chris Wanstrath defunkt Highlight Ruby in the README f56fa99
Chris Wanstrath defunkt Hoptoad backend has always been optional - don't require hoptoad_noti…
…fier gem
Chris Wanstrath defunkt want newest redis-namespace bb6ba7d
Chris Wanstrath defunkt 1.16.0 f2bdb64
Chris Wanstrath defunkt aaaand Gemfile.lock 2327902
Wojciech Wnętrzak morgoth added Gemfile.lock to gitignore 93f9df2
Wojciech Wnętrzak morgoth fixed loading rake tasks 8e092ed
Commits on May 17, 2011
Chris Wanstrath defunkt Merge pull request #290 from morgoth/remove-gemfile-lock
added Gemfile.lock to gitignore
Chris Wanstrath defunkt Merge pull request #292 from morgoth/fixed-rake-tasks
fixed loading rake tasks
Chris Wanstrath defunkt return of Resque::Failure::Hoptoad.configure 5144168
Chris Wanstrath defunkt v1.16.1 0106734
Commits on May 19, 2011
Noah Davis use a date format that is both browser friendly and international fri…

previous date formats was parsable (by Safari) but not internationally friendly.
Chris Wanstrath defunkt Merge pull request #297 from noahd1/more_international_friendly_date_…

make date format more internationally friendly
Commits on May 26, 2011
Dan Peterson dpiddy Add rake the Gemfile's test group. ada41b8
Dan Peterson dpiddy Change worker exit to use `exit` instead of `exit!`.
`exit!` causes any `at_exit` hooks used by performed code to be ignored.
Brad Cantin fixed a typo in resque/examples/monit/resque.monit 265f03d
Chris Wanstrath defunkt Merge pull request #308 from bcantin/master
Typo in resque.monit
Chris Wanstrath defunkt Hoptoad.configure wants a block. Fixes #304 8e7c205
Chris Wanstrath defunkt Merge pull request #307 from dpiddy/master
Change worker child exit to use `exit` instead of `exit!`
Chris Wanstrath defunkt Fix monit example: needs /bin/sh to be a login shell 72f2792
Chris Wanstrath defunkt Changing preformatted arguments to wrap since it's hard to debug with…
…out wrapping on large arguments
Chris Wanstrath defunkt 1.17.0 ee5784c
Commits on May 27, 2011
Chris Wanstrath defunkt Revert "Change worker exit to use `exit` instead of `exit!`."
This reverts commit f3bbf99.

Every job is failing with a DirtyExit when the bang is removed.
Chris Wanstrath defunkt 1.17.1 e2d5804
Commits on May 28, 2011
Chris Wanstrath defunkt New screenshot in README (with transparent bg) 167e6fd
Chris Wanstrath defunkt Even better screenshot in README 157926e
Commits on Jun 04, 2011
Michael Dungan xxx Update Resque.redis_id so resque-web can handle being used in a distr…
…ibuted ring.
Commits on Jun 05, 2011
Chris Wanstrath defunkt Merge pull request #313 from stipple/distributed
Update Resque.redis_id so resque-web can handle being used in a distributed ring
Commits on Jun 08, 2011
Michael Dungan xxx Update Worker.working to handle being used in a distributed ring.
Update test suite to run either with a single server or distributed (RESQUE_DISTRIBUTED=1 rake test to run distributed)

Make sure all tests pass when running both single server and distributed.
Commits on Jun 25, 2011
Jade Rubick jadeforrest Added w.dir to set the current directory. 0a39370
Matthijs van der Vleuten zr40 Shorten the backtrace logged by Resque::Failure::Redis to only includ…
…e the job by removing Resque and its callers (like Rake) from the backtrace.
Josh Kalderimis joshk instead of using the json gem, or trying to require yajl, lets use mu…
…lti json which takes care of this for us and includes a vendored json implementation if one is not available
Commits on Jul 14, 2011
Chris Wanstrath defunkt bundle install 7f4c79a
Florian Frank flori Fix bug causing working to always return the max
Apparently value isn't (always?) nil, but an empty hash, if the worker
isn't working.
Matt Duncan mrduncan Adding install instructions for Rails 3 1f1ff49
Chris Wanstrath defunkt fix failure introduced by d1cfe4d 7b1ceea
Chris Wanstrath defunkt fix failure introduced by 285fef5 40f8b45
Josh Huckabee jhuckabee Added a before_enqueue hook. aa24424
Chris Wanstrath defunkt Revert "fix failure introduced by 285fef5"
This reverts commit 40f8b45.
Chris Wanstrath defunkt use yajl and json in test group bdf4f5f
Chris Wanstrath defunkt OkJson won't work, raise if it's in use. d85097d
Commits on Jul 18, 2011
Michael Dungan xxx Merge branch 'defunkt' into distributed
Commits on Jul 19, 2011
Steve Randy Tantra steverandy Add Cache-Control header so proxy cache won't cache the pages. a55973a
Jonathan Clarke beilabs Killing resque workers using monit & establishing environments so mon…
…it can work with bundler
John Andrews + Andrew Grieser Fix issue with finding worker pids on jruby
- Old pattern returned empty array of worker pids on jruby
Commits on Jul 21, 2011
Chris Wanstrath defunkt Revert "Fix issue with finding worker pids on jruby"
This reverts commit 9b4b900.
Commits on Jul 26, 2011
Michael Dungan xxx Merge branch 'defunkt' into distributed b8549ed
Commits on Aug 02, 2011
Eugene Zolotarev EugZol fixed typo in docs/ cc135c8
Commits on Aug 11, 2011
humancopy humancopy Format time for workers to fix NaN days in web-ui 4fc8d47
humancopy humancopy Add the timezone to strftime 298a7f5
Commits on Aug 17, 2011
Chris Wanstrath defunkt Merge pull request #348 from humancopy/master
Fix NaN days ago for worker screens in web-ui
Michael Dungan xxx Merge branch 'defunkt' into distributed 65780fc
Commits on Aug 18, 2011
Dan Hawker Add solaris_worker_pids 8c9be28
Chris Wanstrath defunkt Attempt to preload files under app/ when using Rails fedbe17
Chris Wanstrath defunkt v1.18.0 7e4e0ef
Commits on Aug 19, 2011
Chris Wanstrath defunkt Use RAILS_ROOT in preload task cb371b4
Chris Wanstrath defunkt 1.18.1 06bf675
Chris Harper Add travis yaml file 28c9f6a
Chris Harper Add Rubinius support 7efe552
Chris Harper Add Jruby
Include json with rbx
Chris Wanstrath defunkt grep [t]hing means you dont need grep -v grep 2cbc85a
Chris Wanstrath defunkt RAILS_ROOT is deprecated cbb400b
Chris Wanstrath defunkt 1.18.2 f0f1694
Commits on Aug 22, 2011
Michael Dungan xxx Merge branch 'defunkt' into distributed 6caf6b6
Commits on Aug 23, 2011
William Wong Garay willywg Fix: Preload app files on Rails 3.x. See: http://guides.rubyonrails.o… 45f9d16
Chris Wanstrath defunkt 1.18.3 6130fc2
Chris Wanstrath defunkt Revert "Fix: Preload app files on Rails 3.x. See: http://guides.rubyo… 6d03ab5
Chris Wanstrath defunkt preload task now depends on setup task 4c75ef2
Chris Wanstrath defunkt 1.18.4 78273c2
Commits on Aug 24, 2011
Chris Leishman cleishm Daemonizes when BACKGROUND environment var is set 60b157d
Chris Leishman cleishm Added documentation of daemonization 39d51cb
Chris Leishman cleishm Add a notes regarding ruby >= 1.9 requirement for BACKGROUND dcfbe36
Chris Wanstrath defunkt Merge pull request #356 from chrisharper/add_travis_support
Add travis support
Chris Wanstrath defunkt Only preload Rails app/ dir in production e35bbab
Chris Wanstrath defunkt 1.18.5 5328e6c
Commits on Aug 27, 2011
Darren Jeacocke daz Show focus outline in resque server 808c6ef
Commits on Aug 28, 2011
Michael Dungan xxx Merge branch 'defunkt' into distributed 22d1fe1
Commits on Aug 29, 2011
Manuel Meurer manuelmeurer Fixed typo 184b387
Manuel Meurer manuelmeurer Added comment on how to mount the Resque frontend in an existing Rail…
…s 3 app
Commits on Aug 30, 2011
Chris Wanstrath defunkt Use Rails eager loading for resque:preload b6b19f5
Chris Wanstrath defunkt Fix incorrect load path in Resque rake task 5616192
Chris Wanstrath defunkt 1.18.6 e01bece
Commits on Sep 01, 2011
Chris Wanstrath defunkt Merge pull request #373 from daz/patch-1
Show focus outline in resque server
Commits on Sep 02, 2011
Ryan G ersatzryan Adds hoptoad_notifier and airbrake to Gemfile. Airbrake's dependencie…
…s are not defined correctly so we also have to add the i18n to the Gemfile.
Ryan G ersatzryan Adds Airbrake support while continuing backwards compatibility for Ho…
…ptoad. Adds tests for Airbrake.
Matt Haynes matth Add retry all button to failed jobs page in web UI 0c00ad8
Chris Wanstrath defunkt 1.19.0 192d347
Commits on Sep 09, 2011
Ray Krueger raykrueger Make Resque.enqueue return something deterministic
Currently Resque.enqueue returns an empty [] or the results of the
after_enqueue_hooks that may have been run. If the before_enqueue_hook rejected
the operation we get back a nil.

This commit simply changes enqueue to return nil on rejection and true if the
job is actually queued.
Commits on Sep 16, 2011
Josh Huckabee jhuckabee Make worker use global Resque.reserve method to allow for a single po…
…int of override.
Commits on Sep 17, 2011
Ray Krueger raykrueger Notify jobs when they're killed due to DirtyExit
This will lead to being able to cleanup locks in the resque-lock plugin :)
Ray Krueger raykrueger Merge remote-tracking branch 'defunkt/master' into better_failure_hooks 40dcc85
Commits on Sep 20, 2011
humancopy humancopy Add before & after dequeue hooks. 5042244
humancopy humancopy Fix tests. d42e322
Commits on Sep 22, 2011
Michael Dungan xxx Merge branch 'defunkt' into distributed 8996224
Eric Lindvall eric Set the height and width of icon img
This reduces the amount of flicker on polling.
Ray Krueger raykrueger Remove unused job variable 5fee4cd
Ray Krueger raykrueger Add docs to Resque.enque regarding return value ca2e8ac
Ray Krueger raykrueger Added a note about on_failure hooks to doc
The on_failure hook is already documented. I simply added a note that the
Reque::DirtyExit exception is also passed to the hook now.
Chris Wanstrath defunkt Merge remote-tracking branch 'raykrueger/better_failure_hooks' b3cdd32
Chris Wanstrath defunkt Merge remote-tracking branch 'stipple/distributed' 8b15ac3
John Andrews + Andrew Grieser Work around JRuby shell escaping bug, fix finding worker pids on JRuby 5bc1086
Eric Lubow elubow Web UI: Set the default encoding to UTF-8 560450e
dan-g dan-g Added `Resque.enqueue_to`. Allows you to specify the queue and still …
…run hooks.
Jeshua Borges added Resque.enqueue_with_queue spec 57bb576
Chris Wanstrath defunkt tweak 4d530b8
Commits on Sep 23, 2011
Greg Jastrab gjastrab Adds -r flag to resque-web for redis connection
-r or --redis can now be used to specify the
redis connection string.

TODO: A string like redis://:secret@localhost is encountering an
error, even though it works in irb doing:

irb> require 'redis'
irb> r = Redis.connect(:url => "redis://:secret@localhost")
 => #<Redis client v2.2.2 connected to redis://localhost:6379/0 (Redis
Mike Subelsky subelsky Add comment to clarify that resque/server must be required at the top…
… of the Rails routes file. If you don't do this, you get an uninitialized constant error.
Evan Whalen evanwhalen requeue and remove failed jobs by queue name ad8c332
Evan Whalen evanwhalen add docs 05b579b
Chris Wanstrath defunkt Merge remote-tracking branch 'chrisleishman/daemonize' 8d92f03
humancopy humancopy Docs for before & after dequeue hooks. 17ad7f8
Chris Wanstrath defunkt Reading the 'Contributing' wiki page is now required. 461351c
Chris Wanstrath defunkt Merge pull request #398 from humancopy/resque

Before & after hooks for dequeue.

Needed this to resolve deadlocks with resque-lock when dequeuing a job (see: humancopy/resque-lock@740f1ab).

Thanks. ;)
Commits on Oct 10, 2011
Ryan Taylor Long rtlong Fix Resque::Helpers#constantize to work correctly on 1.9.2 aca9e2f
Terence Lee hone fix build for 1.9.2 4499a39
Commits on Oct 21, 2011
Aaron Quint quirkey Assign the job's worker before calling `before_fork`
Useful for inspecting the jobs woker in the hook
Chris Wanstrath defunkt Use Sinatra's public_folder if it exists
Fixes #421. Fixes #420.
Szymon Jeż jeznet Mentioned and explained the INTERVAL option in the README. 50fee9b
Trevor Hart raise takes a string when re-raising as a different exception class. 76ebca1
Niels Johnson Fixed typo in demo README 0dc6974
Jacobkg Jacobkg Wait for child with specific PID to avoid waiting on other zombie pro…
…cesses (e.g. NewRelic RPM) which may have forked earlier.
Marcos Tapajós tapajos Allow `*` to appear anywhere in queue list.
Fixes #405
Fixes #407
Commits on Oct 26, 2011
Federico Romero federomero Add ' to "require resque/server" in README.markdown eb999e5
Commits on Nov 08, 2011
Elise Huard allow trailing slashes at the end of all pages 8031b71
Chris Wanstrath defunkt Merge pull request #449 from elisehuard/master
trailing slashes at the end of resque servers' URLs
Commits on Feb 02, 2012
Terence Lee hone payload class is a string not a ruby constant
Fixes #500
Commits on Feb 07, 2012
Terence Lee hone Merge pull request #437 from federomero/patch-1
Add ' to "require resque/server" in README.markdown
Brian Morearty Add current directory to LOAD_PATH in demo for Ruby 1.9. 91c230a
Commits on Feb 09, 2012
Terence Lee hone fix rbx testing on travis 9b2125a
Terence Lee hone let's test on ruby 1.9.3 eef1125
Terence Lee hone test in both 1.8 and 1.9 mode of jruby 8aad2e1
Commits on Feb 17, 2012
Terence Lee hone add myself to gem author list c76e26a
Terence Lee hone Version 1.20.0 96bb1b2
Commits on Feb 28, 2012
Aaron Patterson tenderlove removing leftright, simplify test task 85167a6
Aaron Patterson tenderlove simplify reader and predicate method 5949eb3
Aaron Patterson tenderlove removing bundler and eliminating some test warnings 9624a63
Terence Lee hone Merge pull request #520 from tenderlove/warnings
removing bundler and eliminating some test warnings
Terence Lee hone Merge pull request #521 from tenderlove/simplify
simplify reader and predicate method
Terence Lee hone Merge pull request #522 from tenderlove/testing
removing leftright, simplify test task
Aaron Patterson tenderlove using attr_writer rather than defining our own writers 25d11d8
Terence Lee hone Merge pull request #523 from tenderlove/writer
using attr_writer rather than defining our own writers
Aaron Patterson tenderlove stop using global variables, eliminate warnings, reset monkey patch s…
…o that test time is correct
Terence Lee hone Merge pull request #524 from tenderlove/mocking
eliminate global vars, warnings, and fix test time