AutoReload v1.0.0 released

AutoReload 1.0.0 has been released.

Autoreload automatically reloads library files when they have been
updated. It is especially useful when testing stateless services such as
web applications.

This release overhauls the API. The #autoreload method now takes a
block. All libraries required within this block will be autoreloaded.
The old API will raise an error!!! This was done to simplify the overaul
design of the library and consequently make it much more efficient, but
also to fix a rather nasty bug that prevented scripts required by other
scripts that were to be autoreloaded from autoreloading as well.

The new design rely’s solely on $LOADED_FEATURES, rather than looking up
files on the $LOAD_PATH itself. This has an important consequence for
Ruby 1.8 or older. Becuase older version of Ruby do not put the expanded
path in $LOADED_FEATURES, autoreloading occurs regardless of whether the
file has changed or not. On Ruby 1.9+ however, where the full path is
available, the file will only be reloaded if it has changed, it does
this by checking the mtime of the file.

Changes:

  • Overhaul API to use block form.
  • Remove Lookup module (no longer needed).
  • Fix require of require issue.