require_relative "lib/robots_txt/version"

Gem::Specification.new do |spec|
  spec.name = "robots_txt"
  spec.version = RobotsTxt::VERSION
  spec.authors = ["HIRATA Yasuyuki"]
  spec.email = ["yasu@asuka.net"]

  spec.summary = "Yet another robots.txt parser"
  spec.description = "A robots.txt parser based on Robots Exclusion Protocol"
  spec.homepage = "https://github.com/hirataya/robots_txt"
  spec.license = "MIT"
  spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")

  spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"

  spec.metadata["homepage_uri"] = spec.homepage
  spec.metadata["source_code_uri"] = "https://github.com/hirataya/robots_txt"

  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) {
    `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
  }

  spec.bindir = "exe"
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
  spec.require_paths = ["lib"]
end
