Sha256: 6e1e5683f973f6dac522739cc6678f24e5cc6beab7a60b377716b2d5f07a3c51

Contents?: true

Size: 407 Bytes

Versions: 1

Compression:

Stored size: 407 Bytes

Contents

class Zeppelin
  module Middlware
  end
end

require 'zeppelin/middleware/response_raise_error'

# For backwards compatibility with Faraday < 0.9
if Faraday.respond_to?(:register_middleware)
  Faraday.register_middleware :response, zeppelin_raise_error: Zeppelin::Middleware::ResponseRaiseError
else
  Faraday::Response.register_middleware zeppelin_raise_error: Zeppelin::Middleware::ResponseRaiseError
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zeppelin-0.8.4 lib/zeppelin/middleware.rb