Sha256: 63fa91b393476e8e799f7338b2eb7d2f7f49a4e2e1ab9ea88cc7f894acbd9b5e

Contents?: true

Size: 667 Bytes

Versions: 7

Compression:

Stored size: 667 Bytes

Contents

# frozen_string_literal: true

module FaradayMiddlewareSubclasses
  class SubclassNoOptions < Faraday::Middleware
  end

  class SubclassOneOption < Faraday::Middleware
    DEFAULT_OPTIONS = { some_other_option: false }.freeze
  end

  class SubclassTwoOptions < Faraday::Middleware
    DEFAULT_OPTIONS = { some_option: true, some_other_option: false }.freeze
  end
end

Faraday::Response.register_middleware(no_options: FaradayMiddlewareSubclasses::SubclassNoOptions)
Faraday::Response.register_middleware(one_option: FaradayMiddlewareSubclasses::SubclassOneOption)
Faraday::Response.register_middleware(two_options: FaradayMiddlewareSubclasses::SubclassTwoOptions)

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
es_cli-0.1.0 vendor/bundle/ruby/3.1.0/gems/faraday-2.12.2/spec/support/faraday_middleware_subclasses.rb
faraday-2.12.2 spec/support/faraday_middleware_subclasses.rb
faraday-2.12.1 spec/support/faraday_middleware_subclasses.rb
faraday-2.12.0 spec/support/faraday_middleware_subclasses.rb
faraday-2.11.0 spec/support/faraday_middleware_subclasses.rb
faraday-2.10.1 spec/support/faraday_middleware_subclasses.rb
faraday-2.10.0 spec/support/faraday_middleware_subclasses.rb