1. 23 Mar, 2016 6 commits
  2. 26 Jan, 2016 1 commit
  3. 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
  4. 17 Nov, 2015 1 commit
  5. 16 Nov, 2015 1 commit
  6. 15 Nov, 2015 3 commits
  7. 23 Oct, 2015 1 commit
  8. 11 Sep, 2015 1 commit
    • Make specs run faster · 11090027
        $ rspec spec/paperclip/integration_spec.rb --profile 1
        Testing against version 4.1.7
        ..................................
      
        Finished in 15.19 seconds (files took 0.60155 seconds to load)
        34 examples, 0 failures
      
        Top 1 slowest examples (9.54 seconds, 62.8% of total time):
          Paperclip Many models at once does not exceed the open file limit
            9.54 seconds ./spec/paperclip/integration_spec.rb:18
      
      to
      
        $ rspec spec/paperclip/integration_spec.rb --profile 1
        Testing against version 4.1.7
        ..................................
      
        Finished in 10.95 seconds (files took 0.59585 seconds to load)
        34 examples, 0 failures
      
        Top 1 slowest examples (5.33 seconds, 48.7% of total time):
          Paperclip Many models at once does not exceed the open file limit
            5.33 seconds ./spec/paperclip/integration_spec.rb:18
      
      Updates gemfiles to Ruby 2 hash syntax.
      
      [closes #1700]
      soramugi committed
  9. 27 Aug, 2015 3 commits
  10. 20 Aug, 2015 5 commits
  11. 31 Jul, 2015 1 commit
  12. 29 Jul, 2015 1 commit
    • Address spec deprecation warnings and failures · c783b1fc
      * update aruba methods for in_current_dir and check_file_presence
      * switch rspec syntax from should to expect
      * configure raise_in_transactional_callbacks if AR >= 4.2
      * remove paperclip itself from Appraisal
      This also updates Travis to use the default bundler (to enable caching) and to build primary rubies first
      Dave Gynn committed
  13. 26 Jun, 2015 1 commit
  14. 19 Jun, 2015 3 commits
  15. 17 Jun, 2015 1 commit
  16. 05 Jun, 2015 2 commits
    • Fixes failing tests · 2e540f89
      Jon Yurek committed
    • Fix a possible security issue with spoofing · 9aee4112
      Thanks to MORI Shingo of DeNA Co., Ltd. for reporting this.
      
      There is an issue where if an HTML file is uploaded with a .html
      extension, but the content type is listed as being `image/jpeg`, this
      will bypass a validation checking for images. But it will also pass the
      spoof check, because a file named .html and containing actual HTML
      passes the spoof check.
      
      This change makes it so that we also check the supplied content type. So
      even if the file contains HTML and ends with .html, it doesn't match the
      content type of `image/jpeg` and so it fails.
      Jon Yurek committed
  17. 15 May, 2015 2 commits
  18. 30 Apr, 2015 4 commits
  19. 26 Apr, 2015 2 commits