# -*- encoding: utf-8 -*-
require File.dirname(__FILE__) + '/lib/mimemagic/version'
require 'date'

Gem::Specification.new do |s|
  s.name = 'mimemagic'
  s.version = MimeMagic::VERSION

  s.authors = ['Daniel Mendler']
  s.date = Date.today.to_s
  s.email = ['mail@daniel-mendler.de']

  s.files         = `git ls-files`.split("\n").reject { |f| f.match(%r{^(test|script)/}) }
  s.require_paths = %w(lib)
  s.extensions = %w(ext/mimemagic/Rakefile)

  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 = 'MIT'

  s.add_development_dependency('minitest', '~> 5.14')
  s.add_development_dependency('rake', '~> 13.0')

  if s.respond_to?(:metadata)
    s.metadata['changelog_uri'] = "https://github.com/minad/mimemagic/blob/master/CHANGELOG.md"
    s.metadata['source_code_uri'] = "https://github.com/minad/mimemagic"
    s.metadata['bug_tracker_uri'] = "https://github.com/minad/mimemagic/issues"
  end
end

# -*- encoding: utf-8 -*-
require File.dirname(__FILE__) + '/lib/mimemagic/version'
require 'date'

Gem::Specification.new do |s|
  s.name = 'mimemagic'
  s.version = MimeMagic::VERSION

  s.authors = ['Daniel Mendler']
  s.date = Date.today.to_s
  s.email = ['mail@daniel-mendler.de']

  s.files         = `git ls-files`.split("\n").reject { |f| f.match(%r{^(test|script)/}) }
  s.require_paths = %w(lib)
  s.extensions = %w(ext/mimemagic/Rakefile)

  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 = 'MIT'

  s.add_dependency('nokogiri', '~> 1.11.2')

  s.add_development_dependency('minitest', '~> 5.14')
  s.add_development_dependency('rake', '~> 13.0')

  if s.respond_to?(:metadata)
    s.metadata['changelog_uri'] = "https://github.com/minad/mimemagic/blob/master/CHANGELOG.md"
    s.metadata['source_code_uri'] = "https://github.com/minad/mimemagic"
    s.metadata['bug_tracker_uri'] = "https://github.com/minad/mimemagic/issues"
  end
end

Add a dependency on Nokogiri
Add a dependency on Nokogiri
