1. 24 May, 2016 1 commit
  2. 10 May, 2016 1 commit
  3. 09 May, 2016 1 commit
  4. 05 May, 2016 1 commit
  5. 30 Apr, 2016 3 commits
  6. 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
  7. 12 Apr, 2016 2 commits
  8. 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
  9. 24 Mar, 2016 5 commits
  10. 23 Mar, 2016 5 commits
  11. 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
  12. 02 Jan, 2016 1 commit
  13. 22 Dec, 2015 1 commit
  14. 02 Dec, 2015 2 commits
  15. 21 Nov, 2015 1 commit
  16. 19 Nov, 2015 1 commit
  17. 15 Nov, 2015 7 commits
  18. 12 Nov, 2015 1 commit
  19. 10 Nov, 2015 1 commit
  20. 23 Oct, 2015 1 commit
  21. 09 Oct, 2015 1 commit
    • Output shorter but still useful error message · 8339e0fc
      Before the error message was sometimes millions of characters long.
      
      > [paperclip] Content Type Spoof: Filename a.csv
      > (application/octet-stream from Headers,
      > [#<MIME::Type::Columnar:0x007f9f90f89fa8
      > @container=#<MIME::Types:0x007f9f90b09d98 ... snip millions of
      > characters of output here ...>], @content_type="text/csv",
      > @raw_media_type="text", @raw_sub_type="csv", @simplified="text/csv",
      > @i18n_key="text.csv", @media_type="text", @sub_type="csv",
      > @extensions=["csv"]>] from Extension), content type discovered from
      > file command: application/zip. See documentation to allow this
      > combination.
      
      Now becomes:
      
      > [paperclip] Content Type Spoof: Filename a.csv
      > (application/octet-stream from Headers,
      > ["text/comma-separated-values", "text/csv"] from Extension), content
      > type discovered from file command: application/zip. See documentation
      > to allow this combination.
      
      [fixes #2017]
      Andy Hartford committed
  22. 10 Sep, 2015 1 commit