# frozen_string_literal: true

Gem::Specification.new do |spec|
  spec.name          = "cyclist-jekyll"
  spec.version       = "0.11.6"
  spec.authors       = ["Roben Kleene"]
  spec.email         = ["contact@robenkleene.com"]

  spec.summary       = "Bicycle for the mind."
  spec.homepage      = "https://github.com/cyclist-grid/cyclist-jekyl"
  spec.license       = "MIT"

  spec.files         = `git ls-files -z`.split("\x0").select { |f| f.match(%r!^(assets|vendor|_layouts|_includes|_sass|LICENSE|README)!i) }

  base_path = File.expand_path(File.dirname(__FILE__)) + "/"
  `git submodule --quiet foreach pwd`.split($\).each do |submodule_path|
    Dir.chdir(submodule_path) do
      submodule_relative_path = submodule_path.sub base_path, ""
      `git ls-files -z`.split("\x0").each do |filename|
        spec.files << "#{submodule_relative_path}/#{filename}"
      end
    end
  end

  spec.add_runtime_dependency "jekyll", ">= 3.5", "< 5.0"
  spec.add_runtime_dependency "jekyll-feed", "~> 0.9"
  spec.add_runtime_dependency "jekyll-seo-tag", "~> 2.1"
end
