Crack now supports the VERSION constant so we no longer have to ask if it exists before checking against it.
Additionally, removed the version.rb file as I don't think it was being used.
It's a good idea to encapsulate methods rather than have them hanging around in global scope.
This patch retains the previous behavior of treating all 3xx responses as redirected _except_ 304. It may be sensible to review and remove some status codes from auto-redirect handling such as 300 Multiple Choice.
Handling of not modified responses is currently broken because net/http defines 304 as a subclass of HTTPRedirection. The subclasses of HTTPRedirection should be examined, as it isn't clear that automatic redirection is the right action to take for all cases. At least 304 should _not_ redirect and instead return a response with empty body so that we can use httparty for conditional GETs.
added a debug_output option that gets passed directly to Net::HTTP#set_debug_output