- 15 Nov, 2015 7 commits
-
-
Dave Gynn committed
-
the name string is used multiple times in interpolation so storing it reduces object creation
Dave Gynn committed -
Dave Gynn committed
-
this commit primarily uses frozen strings to reduce object creation during interpolation. the :basename method now uses File.basename(file, ".*") rather than a Regexp. basename may be called multiple times.
Dave Gynn committed -
by using the attachment name (symbol) and Class as keys we reduce the number of Strings created before hitting the cache
Dave Gynn committed -
Dave Gynn committed
-
Dave Gynn committed
-
- 12 Nov, 2015 1 commit
-
-
Alex Gusev committed
-
- 10 Nov, 2015 1 commit
-
-
Andy Stewart committed
-
- 23 Oct, 2015 1 commit
-
-
* Regression fix * Add specs for intermediate_files var in Paperclip::Attachment [fixes #1908]
Tieg Zaharia committed
-
- 09 Oct, 2015 1 commit
-
-
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
-
- 10 Sep, 2015 2 commits
-
-
Removes note for running paperclip in EOL'd version of Rails (2.3).
Tute Costa committed -
Removes `column_type` and `column_options` so that it works well in both versions. Backcported from master, to release a patch version with this bugfix. [closes #1947]
Andrew Hubbs committed
-
- 09 Sep, 2015 3 commits
-
-
Mehmet Cetin committed
-
Mehmet Cetin committed
-
[fixes #1977]
Anshul Sharma committed
-
- 01 Sep, 2015 4 commits
-
-
Isaac Betesh committed
-
Isaac Betesh committed
-
Isaac Betesh committed
-
Isaac Betesh committed
-
- 27 Aug, 2015 4 commits
-
-
Arjun Anand committed
-
Arjun Anand committed
-
Stefano B committed
-
Stefano B committed
-
- 24 Aug, 2015 1 commit
-
-
Removes `column_type` and `column_options` so that it works well in both versions. [closes #1947]
Andrew Hubbs committed
-
- 21 Aug, 2015 1 commit
-
- 20 Aug, 2015 5 commits
-
-
Jon Yurek committed
-
David Chen committed
-
Both v1 and v2 of the AWS Ruby SDK accept the string literal AES256, no need to differentiate. (thank you, @trevorrowe)
Isaac Betesh committed -
Further changes to Paperclip::Storage::S3 for choosing aws-sdk-v2 before aws-sdk-v1; use object.upload_file rather than object.put; implement v2 expiring_url method
David Chen committed -
Isaac Betesh committed
-
- 31 Jul, 2015 1 commit
-
-
According to the ImageMagick documentation the '@' flag is a special case that can be used in conjunction with '>' to prevent IM from scaling an image up. The '<' flag is ignored when using '@'. http://www.imagemagick.org/Usage/resize/#pixel This fixes the issue I reported in #1851
Adam Lassek committed
-
- 26 Jun, 2015 1 commit
-
-
It should never be the case that `url` returns `nil`. If there is no url that can be reasonable achieved, as is the case when the record the attachment is attached to is unpersisted, then `url` should return the default url.
Jon Yurek committed
-
- 19 Jun, 2015 1 commit
-
-
sam committed
-
- 18 Jun, 2015 1 commit
-
-
[ci skip]
Tute Costa committed
-
- 17 Jun, 2015 2 commits
-
-
Isaac Betesh committed
-
[ci skip]
Tute Costa committed
-
- 05 Jun, 2015 3 commits
-
-
For the full details of what is included in this release, check out NEWS. [fixes #1875]
maclover7 committed -
Tute Costa committed
-
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
-