require File.expand_path("../lib/kramdown/version", __dir__)

root = File.expand_path("..", __dir__)

Gem::Specification.new do |spec|
  spec.name = "kramdown"
  spec.version = Kramdown::VERSION
  spec.summary = "kramdown is a fast, pure-Ruby Markdown-superset converter."
  spec.description = <<~DESC
    kramdown is yet-another-markdown-parser but fast, pure Ruby,
    using a strict syntax definition and supporting several common extensions.
  DESC
  spec.license = "MIT"
  spec.authors = ["Thomas Leitner"]
  spec.email = "t_leitner@gmx.at"
  spec.homepage = "http://kramdown.gettalong.org"
  spec.required_ruby_version = ">= 2.5"
  spec.require_paths = ["lib"]
  spec.bindir = "bin"
  spec.executables = ["kramdown"]
  spec.files = Dir.chdir(root) do
    Dir[
      "AUTHORS",
      "COPYING",
      "README.md",
      "VERSION",
      "bin/**/*",
      "data/**/*",
      "lib/**/*",
      "man/man1/kramdown.1",
      "test/**/*",
    ]
  end.select { |file| File.file?(file) }
  spec.add_dependency "rexml", ">= 3.2"
end
