Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Apr 15, 2015
  1. @jeremy

    Merge pull request #866 from jeremy/pick-encoding-for-message-body-too

    jeremy authored
    Support decoding message bodies with non-Ruby-standard charsets
  2. @jeremy

    Support decoding message bodies with non-Ruby-standard charsets

    jeremy authored
    We already have support for these additional charsets in message headers
    but didn't use the same code path for message bodies themselves.
    
    Adds support for GB2312, ks_c_5601-1987, ISO-2022-JP-KDDI, ISO-8859-8-I
    and more.
  3. @jeremy

    Merge pull request #868 from kjg/decode_body_using_charset_encoder

    jeremy authored
    Use the Ruby19.charset_encoder when decoding message bodies
Commits on Apr 13, 2015
  1. @kjg

    Use the Ruby19.charset_encoder when decoding message bodies

    kjg authored
    To maintain consistency with param decoding
  2. @jeremy

    Merge pull request #865 from kjg/invalid_body_encoding_should_round_trip

    jeremy authored
    An invalid body encoding should still round trip
Commits on Mar 31, 2015
  1. @kjg

    An invalid body encoding should still round trip

    kjg authored
    I don't think the `if transfer_encoding == encoding` was adding anything
    because the following logic would always error if dec was nil
Commits on Mar 24, 2015
  1. @jeremy
  2. @jeremy
  3. @jeremy
Commits on Mar 19, 2015
  1. @bf4

    Merge pull request #838 from joshk/patch-1

    bf4 authored
    Use the new build env on Travis
  2. @jeremy

    Merge pull request #839 from jeremyevans/add_file

    jeremy authored
    Allow more options when using Message#add_file
  3. @bf4

    Merge pull request #849 from kjg/handle_invalid_content_disposition

    bf4 authored
    Handle parts with an un-parsable content-disposition
Commits on Feb 26, 2015
  1. @jeremy

    Merge pull request #782 from robin850/composition-parts-list

    jeremy authored
    Use composition over inheritance for `PartsList`
  2. @robin850

    Make YAML serialization backward-compatible

    robin850 authored
    Previously, the object would have been serialized as an Array even
    though YAML wouldn't be able to round-trip. Let's keep this behavior for
    now to make upgrade smoother to this new "layer".
  3. @robin850
  4. @robin850

    Use the "composition over inheritance" technique

    robin850 authored
    Instead of inheriting from `Array`, let's create an attribute that is an
    array. The current object doesn't fit with the Liskov substitution
    principle as, for instance, #sort is broken on Rubinius.
    
    This makes the `PartsList` class compatible with Rubinius as `undef map`
    will remove the map method but some other Enumerable methods (e.g. sort)
    rely on it.
    
    Also add  fallback for Array's methods for the sake of backward
    compatibility, we need to provide a fallback for missing method that may
    be used in the existing libraries.
    
    To avoid all the necessary boilerplate to provide such fallback, let's
    rely on the standard library's delegate gem and its DelegateClass
    method.
Commits on Feb 19, 2015
  1. @bf4

    Merge pull request #855 from voxik/patch-1

    bf4 authored
    Relax RSpec dependency
Commits on Feb 18, 2015
  1. @voxik

    Relax RSpec dependency

    voxik authored
    The test suite is passing just fine with RSpec 3.2.
Commits on Jan 27, 2015
  1. @kjg
Commits on Dec 2, 2014
  1. @bf4

    Merge pull request #836 from planio-gmbh/808-pass_respond_to

    bf4 authored
    fix: Mail::Field correctly responds_to? the methods of its instantiated field
Commits on Nov 30, 2014
  1. Add alternative paths for pre- and post-1.9.2 rubies

    Felix Schäfer authored
Commits on Nov 25, 2014
  1. @jeremyevans

    Allow more options when using Message#add_file

    jeremyevans authored
    Previously, Message#add_file would ignore options other than
    :filename and :content.  This breaks the principal of least
    surprise.  The documentation for #add_file says "see also
    attachments", and attachments shows other possible options,
    but those are not supported.
    
    This changes the code to pass an options hash given to add_file
    through to attachments[]=, allowing you to use options such as
    :mime_type or :content_disposition.  Currently, you have to do
    the following:
    
      add_file :filename=>"cal.ics", :content=>c.to_ical
      attachments.last.content_type 'text/calendar'
    
    You would think you could work around this using:
    
      attachments["cal.ics"] = {:content=>c.to_ical,
                                :mime_type=>'text/calendar'}
    
    However, that doesn't work because unlike add_file,
    attachments[]= doesn't automatically convert the message to
    multipart, which results in the removal of the existing body.
    With this change, you can now do:
    
      add_file :filename=>"cal.ics", :content=>c.to_ical,
               :mime_type=>'text/calendar'
  2. @joshk

    Use the new build env on Travis

    joshk authored
    more ram and cpu, improved networking and vm boot times
    
    http://docs.travis-ci.com/user/workers/container-based-infrastructure/
    
    more docs coming soon
Commits on Nov 23, 2014
Commits on Nov 17, 2014
  1. @bf4

    Merge pull request #831 from zendesk/grosser/nil-encoding

    bf4 authored
    Bug: support nil charset, fallback to binary
  2. @grosser

    support nil charset

    grosser authored
Commits on Nov 15, 2014
  1. @bf4

    Merge pull request #772 from zendesk/grosser/more-encodings

    bf4 authored
    Recognize more encodings and their equivalents
Commits on Nov 14, 2014
  1. @grosser

    normalize encoding matchers

    grosser authored
  2. @grosser
  3. @bf4

    Merge pull request #775 from zendesk/grosser/failed-encoding

    bf4 authored
    Bug: Avoid failed encodings / bad charsets
Commits on Nov 13, 2014
  1. @grosser
  2. @bf4

    Merge pull request #789 from zendesk/grosser/jp-join

    bf4 authored
    Bug:  Fix encoding collapsing not dealing with multiple encodings in 1 line
  3. @grosser
Commits on Nov 3, 2014
  1. Change version to edge build

    authored
Something went wrong with that request. Please try again.