Check for existence of a MIME type database at build time.
Because we're required to build a C extension in order to do so (don't ask, its a long story), use that C extension to make the path provided at build time available at run time.
Showing
ext/mimemagic/extconf.rb
0 → 100644
ext/mimemagic/mimemagic.c
0 → 100644
... | ... | @@ -12,11 +12,12 @@ Gem::Specification.new do |s| |
s.files = `git ls-files`.split("\n").reject { |f| f.match(%r{^(test|script)/}) } | ||
s.require_paths = %w(lib) | ||
s.extensions = %w(ext/mimemagic/extconf.rb) | ||
s.summary = 'Fast mime detection by extension or content' | ||
s.description = 'Fast mime detection by extension or content in pure ruby (Uses freedesktop.org.xml shared-mime-info database)' | ||
s.homepage = 'https://github.com/minad/mimemagic' | ||
s.license = 'GPL-2.0' | ||
s.license = 'MIT' | ||
s.add_development_dependency('minitest', '~> 5.14') | ||
s.add_development_dependency('rake', '~> 13.0') | ||
... | ... |
Please
register
or
sign in
to comment