Refactor core action to return a parser instance based on the response body

Pretty sure you didn't even read my comments all the way through. 

Sent from my iPhone

> On Sep 12, 2014, at 6:34 AM, Pedro Martinez <notifications@github.com> wrote:
> 
> In lib/conduit/core/response.rb:
> 
> > @@ -0,0 +1,37 @@
> > +#
> > +# This class wraps the low-level response
> > +# from the transport layer to provide a 
> > +# consistent interface for parsers and other
> > +# consumers of an Action#perform method.
> > +#
> > +module Conduit
> > +  module Core
> > +    class Response
> > +      attr_reader :raw_response
> > +
> > +      def initialize(response)
> > +        @raw_response = response
> @codezomb Even if conduit decided to use Excon as a default, it should still wrap it in an object so it can replace out Excon in the future if desired. The fact that conduit-rails rescues from Excon exceptions is part of the underlying problem we're trying to solve here. This exposes the internals of conduit. It can't even be considered a thin wrapper if it doesn't actually wrap.
> 
> —
> Reply to this email directly or view it on GitHub.