Sha256: e044b7e43dc90f4f46a381abe9bb02b4d2353189b2105a3b5a3c80194f6a29ed

Contents?: true

Size: 327 Bytes

Versions: 23

Compression:

Stored size: 327 Bytes

Contents

# frozen_string_literal: true
module Mail
  module Encodings
    module UnixToUnix
      NAME = "x-uuencode"

      def self.decode(str)
        str.sub(/\Abegin \d+ [^\n]*\n/, '').unpack('u').first
      end

      def self.encode(str)
        [str].pack("u")
      end

      Encodings.register(NAME, self)
    end
  end
end

Version data entries

23 entries across 21 versions & 6 rubygems

Version Path
tdiary-5.0.6 vendor/bundle/gems/mail-2.6.6/lib/mail/encodings/unix_to_unix.rb
tdiary-5.0.5 vendor/bundle/gems/mail-2.6.4/lib/mail/encodings/unix_to_unix.rb
tdiary-5.0.5 vendor/bundle/gems/mail-2.6.6/lib/mail/encodings/unix_to_unix.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/mail-2.6.4/lib/mail/encodings/unix_to_unix.rb
mail-2.6.6 lib/mail/encodings/unix_to_unix.rb
mail-2.7.0.rc1 lib/mail/encodings/unix_to_unix.rb
mail-2.6.6.rc1 lib/mail/encodings/unix_to_unix.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/mail-2.6.5/lib/mail/encodings/unix_to_unix.rb
mail-2.6.5 lib/mail/encodings/unix_to_unix.rb
mail-2.6.5.rc1 lib/mail/encodings/unix_to_unix.rb
tdiary-5.0.4 vendor/bundle/gems/mail-2.6.4/lib/mail/encodings/unix_to_unix.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/mail-2.6.4/lib/mail/encodings/unix_to_unix.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/mail-2.6.4/lib/mail/encodings/unix_to_unix.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/mail-2.6.4/lib/mail/encodings/unix_to_unix.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/mail-2.6.4/lib/mail/encodings/unix_to_unix.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/mail-2.6.4/lib/mail/encodings/unix_to_unix.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/mail-2.6.4/lib/mail/encodings/unix_to_unix.rb
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/mail-2.6.4/lib/mail/encodings/unix_to_unix.rb
abaci-0.3.0 vendor/bundle/gems/mail-2.6.4/lib/mail/encodings/unix_to_unix.rb
tdiary-5.0.2 vendor/bundle/gems/mail-2.6.4/lib/mail/encodings/unix_to_unix.rb