- 07 Feb, 2014 3 commits
-
-
Allows a lambda to be passed to decide what format a style should be processed as
Scott Carleton committed -
Marco Otte-Witte committed
-
There are some file types that the file command doesn't understand. Notably, files that have a format, but are ASCII-text based (like ruby, certificates, etc), show up as text/plain. This presents a problem, because the mime-types gem either doesn't report them at all (as for .pem files) or reports them differently (as for .rb files). This change allows a Paperclip.options[:content_type_mapping] hash, which allows for a mapping of { :pem => "text/plain" } which tells the spoof detector that this is an OK matchup and to allow it.
Jon Yurek committed
-
- 31 Jan, 2014 1 commit
-
-
It is now a requirement for attachments to do one of three things: 1. Have a content_type validation (e.g. "image/*") 2. Have a filename validation (e.g. *.png, *.gif) 3. Explicitly *not* have one of those validations The intent is to make the default more secure, and you have to explicitly reject the security of a validation in order to not have one.
Jon Yurek committed
-
- 29 Jan, 2014 10 commits
-
-
Jon Yurek committed
-
Jon Yurek committed
-
Jon Yurek committed
-
Dan Collis-Puro committed
-
Dan Collis-Puro committed
-
Dan Collis-Puro committed
-
Dan Collis-Puro committed
-
Dan Collis-Puro committed
-
Dan Collis-Puro committed
-
Jon Yurek committed
-
- 10 Jan, 2014 1 commit
-
-
Jon Yurek committed
-
- 03 Jan, 2014 3 commits
-
-
AbstractAdapter wasn't delegating `binmode` or `binmode?` to the underlying @tempfile object. `binmode` is useful for cases where the Adapter object gets handed on to another library expecting an `IO` object holding image data. We ran into this with Prawn and people using `prawnto` in conjunction with Paperclip. Prawn wants to ensure the `IO` is in binmode for embedding the image data.
Matt Patterson committed -
Jon Yurek committed
-
Jon Yurek committed
-
- 02 Jan, 2014 3 commits
-
-
Use hexdigest to ensure that tempfile names will be a reasonable length. Remove illegal filename characters check since it is no longer relevant when doing a hexdigest on the filename
Dan Dockery committed -
Jon Yurek committed
-
Jon Yurek committed
-
- 20 Dec, 2013 2 commits
-
-
Jon Yurek committed
-
Scott Carleton committed
-
- 15 Nov, 2013 2 commits
-
-
Jon Yurek committed
-
Scott Carleton committed
-
- 08 Nov, 2013 1 commit
-
-
Sjoerd Andringa committed
-
- 01 Nov, 2013 3 commits
- 25 Oct, 2013 2 commits
- 08 Oct, 2013 1 commit
-
-
pry-debugger doesn't compile on JRuby, and we're really only using that locally.
Prem Sichanugrist committed
-
- 28 Aug, 2013 1 commit
-
-
Base64 encoded data-uris can contain newlines, make sure we handle them correctly.
Dan Collis-Puro committed
-
- 16 Aug, 2013 2 commits
-
-
Jon Yurek committed
-
William Ross committed
-
- 09 Aug, 2013 1 commit
-
-
Content Type errors were incorrectly being set as an array on the base attribute rather than being set individually as strings.
Dan Collis-Puro committed
-
- 31 Jul, 2013 2 commits
-
-
Copying attribute validation failures up to the root object breaks the validate_attachment_presence_matcher when other paperclip validations have failed. This fixes this bug.
Dan Collis-Puro committed -
Jon Yurek committed
-
- 30 Jul, 2013 2 commits