summaryrefslogtreecommitdiffhomepage
path: root/axlsx.gemspec
diff options
context:
space:
mode:
authormarc <[email protected]>2015-07-03 16:44:45 +0200
committermarc <[email protected]>2015-07-03 16:44:45 +0200
commitc7c7937dcde9a94f2e5ee0549451b34e410803e0 (patch)
treed06ccd49055e1474891a6b3d3d190e457e7e2304 /axlsx.gemspec
parent1bec39cebaef6a98481f52587ecc0483b4defc08 (diff)
downloadcaxlsx-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.gemspec1
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'