Sha256: 30df4cdc17f2a7fdac92ec87de601e5a2bea4607c7a32e697af306516b551442

Contents?: true

Size: 419 Bytes

Versions: 3

Compression:

Stored size: 419 Bytes

Contents

# frozen_string_literal: true

module Mail
  module Jdec
    module EncodingsPatch
      def value_decode(str)
        if Jdec.enabled?
          Jdec::ValueDecoder.value_decode(str)
        else
          super
        end
      end
    end
  end
end

unless Mail::Encodings.singleton_class.included_modules.include?(Mail::Jdec::EncodingsPatch)
  Mail::Encodings.singleton_class.prepend Mail::Jdec::EncodingsPatch
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mail-jdec-1.1.2 lib/mail/jdec/encodings_patch.rb
mail-jdec-1.1.1 lib/mail/jdec/encodings_patch.rb
mail-jdec-1.1.0 lib/mail/jdec/encodings_patch.rb