Sha256: 052608f75b0ffdaa5345e0faf0e8b0b230d3cd1be649b6638b5519b4b38c00fd

Contents?: true

Size: 971 Bytes

Versions: 25

Compression:

Stored size: 971 Bytes

Contents

# frozen_string_literal: true

require_relative 'multipart/version'
require_relative 'multipart/file_part'
require_relative 'multipart/param_part'
require_relative 'multipart/middleware'

module Faraday
  # Main Faraday::Multipart module.
  module Multipart
    Faraday::Request.register_middleware(multipart: Faraday::Multipart::Middleware)
  end

  # Aliases for Faraday v1, these are all deprecated and will be removed in v2 of this middleware
  FilePart = Multipart::FilePart
  ParamPart = Multipart::ParamPart
  Parts = Multipart::Parts
  CompositeReadIO = Multipart::CompositeReadIO
  # multipart-post v2.2.0 introduces a new class hierarchy for classes like Parts and UploadIO
  # For backwards compatibility, detect the gem version and use the right class
  UploadIO = if ::Gem::Requirement.new('>= 2.2.0').satisfied_by?(Multipart.multipart_post_version)
               ::Multipart::Post::UploadIO
             else
               ::UploadIO
             end
end

Version data entries

25 entries across 25 versions & 6 rubygems

Version Path
es_cli-0.1.0 vendor/bundle/ruby/3.1.0/gems/faraday-multipart-1.1.0/lib/faraday/multipart.rb
avalara_sdk-24.12.2 vendor/bundle/ruby/2.7.0/gems/faraday-multipart-1.1.0/lib/faraday/multipart.rb
avalara_sdk-24.12.1 vendor/bundle/ruby/2.7.0/gems/faraday-multipart-1.1.0/lib/faraday/multipart.rb
avalara_sdk-24.12.0 vendor/bundle/ruby/2.7.0/gems/faraday-multipart-1.1.0/lib/faraday/multipart.rb
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/faraday-multipart-1.0.4/lib/faraday/multipart.rb
faraday-multipart-1.1.0 lib/faraday/multipart.rb
moneykit-0.1.15 vendor/bundle/ruby/3.2.0/gems/faraday-multipart-1.0.4/lib/faraday/multipart.rb
moneykit-0.1.14 vendor/bundle/ruby/3.2.0/gems/faraday-multipart-1.0.4/lib/faraday/multipart.rb
moneykit-0.1.13 vendor/bundle/ruby/3.2.0/gems/faraday-multipart-1.0.4/lib/faraday/multipart.rb
moneykit-0.1.12 vendor/bundle/ruby/3.2.0/gems/faraday-multipart-1.0.4/lib/faraday/multipart.rb
moneykit-0.1.11 vendor/bundle/ruby/3.2.0/gems/faraday-multipart-1.0.4/lib/faraday/multipart.rb
moneykit-0.1.10 vendor/bundle/ruby/3.2.0/gems/faraday-multipart-1.0.4/lib/faraday/multipart.rb
moneykit-0.1.9 vendor/bundle/ruby/3.2.0/gems/faraday-multipart-1.0.4/lib/faraday/multipart.rb
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/faraday-multipart-1.0.4/lib/faraday/multipart.rb
moneykit-0.1.6 vendor/bundle/ruby/3.2.0/gems/faraday-multipart-1.0.4/lib/faraday/multipart.rb
moneykit-0.1.5 vendor/bundle/ruby/3.2.0/gems/faraday-multipart-1.0.4/lib/faraday/multipart.rb
moneykit-0.1.4 vendor/bundle/ruby/3.2.0/gems/faraday-multipart-1.0.4/lib/faraday/multipart.rb
moneykit-0.1.3 vendor/bundle/ruby/3.2.0/gems/faraday-multipart-1.0.4/lib/faraday/multipart.rb
moneykit-0.1.2 vendor/bundle/ruby/3.2.0/gems/faraday-multipart-1.0.4/lib/faraday/multipart.rb
moneykit-0.1.1 vendor/bundle/ruby/3.2.0/gems/faraday-multipart-1.0.4/lib/faraday/multipart.rb