Name |
Last commit
|
Last Update |
---|---|---|
cucumber | ||
features | ||
gemfiles | ||
lib | ||
shoulda_macros | ||
test | ||
.gitignore | ||
.travis.yml | ||
Appraisals | ||
CONTRIBUTING.md | ||
Gemfile | ||
LICENSE | ||
NEWS | ||
README.md | ||
RUNNING_TESTS.md | ||
Rakefile | ||
UPGRADING | ||
paperclip.gemspec |
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.
Name |
Last commit
|
Last Update |
---|---|---|
cucumber | Loading commit data... | |
features | Loading commit data... | |
gemfiles | Loading commit data... | |
lib | Loading commit data... | |
shoulda_macros | Loading commit data... | |
test | Loading commit data... | |
.gitignore | Loading commit data... | |
.travis.yml | Loading commit data... | |
Appraisals | Loading commit data... | |
CONTRIBUTING.md | Loading commit data... | |
Gemfile | Loading commit data... | |
LICENSE | Loading commit data... | |
NEWS | Loading commit data... | |
README.md | Loading commit data... | |
RUNNING_TESTS.md | Loading commit data... | |
Rakefile | Loading commit data... | |
UPGRADING | Loading commit data... | |
paperclip.gemspec | Loading commit data... |