1. 15 May, 2015 3 commits
    • HasAttachedFile respects global settings · 2610cc32
      Normally, all of the settings would be set on `Attachment`, and they
      were `deep_merge`d fine. However, if you set the global
      
          config.paperclip_defaults = { :validate_media_type => false }
      
      then the `HasAttachedFile` class wouldn't pick up on it, because it only
      uses things that are defined in the class. This change makes it so that
      the default options are merged in to the ones that `HasAttachedFile`
      uses when it sets up the attachment.
      
      Fixes #1857
      Jon Yurek committed
    • refactor: step-down rule · 30406c61
      Present methods in roughly the same order as they are referenced,
      to make it more graceful to read without jumping back and forth.
      Luke Griffiths committed
    • refactor: rename variable · 03d14b2e
      In other parts of the codebase, "filename" refers to the part after the
      directory path it is contained in. e.g. `original_filename` in
      attachment.rb.
      
      This makes this file easier to read by conveying the range of arguments
      ContentTypeDetector.new accepts.
      Luke Griffiths committed
  2. 12 May, 2015 1 commit
  3. 04 May, 2015 1 commit
  4. 30 Apr, 2015 5 commits
  5. 26 Apr, 2015 2 commits
  6. 24 Apr, 2015 8 commits
  7. 23 Apr, 2015 1 commit
    • Use Updated Version of `aws-sdk` in Docs [ci skip] · c7066936
      The `aws-sdk` development dependency was updated to `~> 1.6` in #1816
      to resolve issues with the creation of 0-byte files on S3 (see #1729).
      However, there is no runtime dependency on `aws-sdk`, and the
      documentation still suggests that users install an earlier version of
      `aws-sdk` that produces the problems in the referenced issue.
      
      This commit updates the docs to recommend the use of `aws-sdk` `~> 1.6`
      with Paperclip.
      Robert Eshleman committed
  8. 17 Apr, 2015 3 commits
  9. 15 Apr, 2015 1 commit
    • Fix for Errno::ENAMETOOLONG in Thumbnails · c81970d9
      * Uses Paperclip's Tempfile instead of Ruby's in Thumbnail
      * Also includes a test for TempfileFactory to be sure it does not revert to similar behavior
      * In the tests, give the OS some wiggle room in the Tempfile name to ensure the error does not occur before we are ready for it. The wiggle room is needed because the randomized part of the name has a variable number of characters.
      Sammy Larbi committed
  10. 29 Mar, 2015 1 commit
  11. 25 Mar, 2015 2 commits
  12. 24 Mar, 2015 2 commits
  13. 21 Mar, 2015 1 commit
  14. 13 Mar, 2015 4 commits
  15. 12 Mar, 2015 1 commit
  16. 13 Feb, 2015 1 commit
    • Use Travis container infrastructure · 97c78efd
      The container infrastructure (beta) has many advantages:
      * More memory
      * More CPU
      * builds start much faster.
      * builds run much faster (usually)
      
      However, `sudo` cannot be used when running in this environment (which
      is enabled with the `sudo: false` configuration.
      Derek Prior committed
  17. 06 Feb, 2015 3 commits