* commit 'technicalpickles/master': Updated manifest. Removed OpenURI::HTTPError since it's part of stdlib. Moved Net::HTTP extensions to lib/fake_web/ext/net_http.rb Try to use more idiomatic and clearer style. Moved SocketDelegator to its own file. Moved responder to its own file. Moved FakeWeb::Response to separate file. Moved FakeWeb::Registry to its own file.
Now you can specify an HTTP method when you're registering/checking responses: FakeWeb.register_uri(:get, "http://example.com", :string => "response") FakeWeb.registered_uri?(:get, "http://example.com") # => true FakeWeb.registered_uri?(:post, "http://example.com") # => false And when you use Net::HTTP, it'll only work for GET requests. Or, use :any to explicitly register the request for any HTTP method (best practice, IMO). Retains ability to use the old method signatures (without the method param) for backwards-compatibility.
…ple, rewrite old "description" section, add TODO re: HTTP methods, update copyright
…simplify the exception message (no HTTP method support yet, and printing the entire list of registered URIs gets pretty unwieldy)