$LOAD_PATH.push File.expand_path('lib', __dir__)
require 'kit/doc/version'

version = Kit::Doc::VERSION

# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
  s.name        = 'kit-doc'
  s.version     = version
  s.authors     = ['Nathan Appere']
  s.email       = ['nathan@rubykit.org']
  s.homepage    = 'https://github.com/rubykit/kit/tree/main/libraries/kit-doc'
  s.summary     = 'Yard setup & plugins for Kit'
  s.description = 'Kit::Doc is a Yard plugin that generates ExDoc look-alike documentation.'
  s.license     = 'MIT'

  s.metadata = {
    'documentation_uri' => "https://docs.rubykit.org/kit-doc/v#{ version }",
    'source_code_uri'   => "https://github.com/rubykit/kit/tree/v#{ version }/libraries/kit-doc",
  }

  s.files = Dir['{lib,tasks}/**/*', 'MIT-LICENSE', 'Rakefile', 'README.md']

  s.required_ruby_version = '>= 3.0'

  # TODO: All of these should be development dependencies, but that prevent them from being added to projects using the gem.
  s.add_dependency 'git'
  s.add_dependency 'nokogiri'
  #s.add_dependency 'rails'
  s.add_dependency 'rake'
  s.add_dependency 'redcarpet'
  s.add_dependency 'rspec'
  s.add_dependency 'yard'

  s.add_development_dependency 'rubocop'

end
