diff options
| author | marc <[email protected]> | 2015-07-03 16:44:45 +0200 |
|---|---|---|
| committer | marc <[email protected]> | 2015-07-03 16:44:45 +0200 |
| commit | c7c7937dcde9a94f2e5ee0549451b34e410803e0 (patch) | |
| tree | d06ccd49055e1474891a6b3d3d190e457e7e2304 /axlsx.gemspec | |
| parent | 1bec39cebaef6a98481f52587ecc0483b4defc08 (diff) | |
| download | caxlsx-c7c7937dcde9a94f2e5ee0549451b34e410803e0.tar.gz caxlsx-c7c7937dcde9a94f2e5ee0549451b34e410803e0.zip | |
Validates whether an image is acceptable through mime type
image/jpeg, image/png & image/gif are considered the allowed mime types
for an image. mimemagic gem is added as dependency in order to do the
checking.
Added tests to check against three supported mime types. A fake jpg
fixture (created with 'touch' command) has been added to test that
extension is no longer used.
Diffstat (limited to 'axlsx.gemspec')
| -rw-r--r-- | axlsx.gemspec | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/axlsx.gemspec b/axlsx.gemspec index 9fc19285..8e3cd9ca 100644 --- a/axlsx.gemspec +++ b/axlsx.gemspec @@ -20,6 +20,7 @@ Gem::Specification.new do |s| s.add_runtime_dependency 'nokogiri', '>= 1.4.1' s.add_runtime_dependency 'rubyzip', '~> 1.1.7' s.add_runtime_dependency "htmlentities", "~> 4.3.1" + s.add_runtime_dependency "mimemagic", "~> 0.3" s.add_development_dependency 'yard' s.add_development_dependency 'kramdown' |
