Skip to content

Instantly share code, notes, and snippets.

@sente
Created October 17, 2014 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sente/ff6561bfef21294e4b3b to your computer and use it in GitHub Desktop.
Save sente/ff6561bfef21294e4b3b to your computer and use it in GitHub Desktop.
HTTPartyDebug.rb
# HTTParty
require 'httparty'
class HTTPartyDebug
@@capture = StringIO.new
include HTTParty
debug_output @@capture
default_timeout 5
def method_missing(m)
self.first.send m
end
def self.capture
@@capture
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment