Sha256: b7d2d36a9a92f0eb512cc045ffd80ec690ccb09e211da3e70a8fb809d7565937

Contents?: true

Size: 732 Bytes

Versions: 38

Compression:

Stored size: 732 Bytes

Contents

%%{
  machine content_transfer_encoding;

  include rb_actions "rb_actions.rl";
  include common "../../common.rl";

  getkey data_unpacked[p];

  main := content_transfer_encoding;
}%%

module Mail
  module Parsers
    module Ragel
      module ContentTransferEncodingMachine
        %%write data;

        def self.parse(data)
          p = 0
          eof = data.length
          stack = []

          actions = []
          data_unpacked = data.bytes.to_a
          %%write init;
          %%write exec;

          if p == eof && cs >= %%{ write first_final; }%%
            return actions, nil
          else
            return [], "Only able to parse up to #{data[0..p]}"
          end
        end
      end
    end
  end
end

Version data entries

38 entries across 35 versions & 11 rubygems

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