1. 03 Aug, 2016 1 commit
    • Support for readbyte in Paperclip attachments; better documentation of custom processors. · 90c80bb9
      I recently implemented a custom processor that used the Exifr gem to
      extract EXIF information from images uploaded to a Paperclip attachment.
      Exifr's processor uses readbyte to parse the EXIF header, so it hit
      errors when Paperclip's File-like object didn't have one. There's also a
      test for this delegation.
      
      I've also tidied up the README documentation for custom processors,
      hopefully to be more clear than before. There was some duplicated
      content between the "Post Processing" section and the "Custom Attachment
      Processing" section, and those sections were separated in the file. I've
      dedicated the "Post Processing" section to Paperclip's built in
      thumbnailing processors, and made "Custom Attachment Processing" section
      solely about writing & using your own custom processors. This should be
      a more understandable progression, as built-in functionality is
      discussed first & separately from extending Paperclip.k
      Alex Pounds committed
  2. 23 Jul, 2016 1 commit
  3. 01 Jul, 2016 1 commit
  4. 16 Jun, 2016 1 commit
  5. 14 Jun, 2016 1 commit
  6. 24 May, 2016 1 commit
  7. 10 May, 2016 1 commit
  8. 09 May, 2016 1 commit
  9. 05 May, 2016 1 commit
  10. 30 Apr, 2016 3 commits
  11. 28 Apr, 2016 1 commit
    • Bugfix for when file is not present on cloud · 511f3bc9
      Currently paperclip fails with `NoMethodError` on `nil` when file is not
      present. Since `nil` is proper response from fog on missing files, and
      this method already returns `false` if any error happen (see line 178),
      returning `false` here would be properly handled on client code.
      
      [closes #2173]
      Mark Guk committed
  12. 12 Apr, 2016 2 commits
  13. 30 Mar, 2016 1 commit
    • Respect dynamic fog directory option · 84a5d41c
      `Paperclip::Storage::Fog#host_name_for_directory` assumes a String-like
      object is set and doesn't check if `@options[:fog_directory]` is
      callable, while `Paperclip::Storage::Fog#directory` does. This extracts
      a new method with the condition and refactors the other two methods to
      call it.
      
      Fixes #2018, #2093.
      Thomas Ingram committed
  14. 24 Mar, 2016 5 commits
  15. 23 Mar, 2016 5 commits
  16. 15 Jan, 2016 1 commit
    • Skip calculating fingerprint when it is not used · 53a386c5
      The MD5 sum of an attachment is only necessary if the model has a corresponding
      _fingerprint column. If this column is absent, there is no need to calculate the
      MD5, which can be an expensive operation for large files.
      
      Accomplish this by deferring the fingerprint calculation using a block. If the
      _fingerprint column is absent, the block is never called, and the calculation
      is avoided.
      Matt Brictson committed
  17. 02 Jan, 2016 1 commit
  18. 22 Dec, 2015 1 commit
  19. 02 Dec, 2015 2 commits
  20. 21 Nov, 2015 1 commit
  21. 19 Nov, 2015 1 commit
  22. 15 Nov, 2015 7 commits