require './version.rb'

Gem::Specification.new do |spec|
  spec.name          = 'jekyll_patternbot'
  spec.version       = JekyllPatternbot::VERSION
  spec.authors       = ['Thomas J Bradley']
  spec.email         = ['hey@thomasjbradley.ca']

  spec.summary       = 'Your pompous and persnickety patterning robot.'
  spec.description   = 'A Jekyll plugin for developing pattern libraries & style guides that can be used to generate a Jekyll website.'
  spec.homepage      = 'https://github.com/thomasjbradley/jekyll_patternbot/'
  spec.license       = 'MIT'

  # Specify which files should be added to the gem when it is released.
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
  spec.files         = Dir.chdir(File.expand_path('..', __FILE__)) do
    `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
  end

  spec.require_paths = ['_plugins']

  spec.required_ruby_version = '~> 2'

  spec.add_runtime_dependency 'jekyll', '>= 3.8', '< 5'
  spec.add_runtime_dependency 'listen', '~> 3'
  spec.add_runtime_dependency 'unicode', '~> 0.4'
  spec.add_runtime_dependency 'colorator', '~> 1'
  spec.add_runtime_dependency 'babosa', '~> 1'
  spec.add_runtime_dependency 'deep_merge', '~> 1'
  spec.add_runtime_dependency 'css_parser', '~> 1'
  spec.add_runtime_dependency 'color_contrast_calc', '~> 0.5'
  spec.add_runtime_dependency 'indifference', '~> 0.0'

  spec.add_development_dependency 'bundler', '>= 1.17', '< 3'
  spec.add_development_dependency 'rake', '>= 10'
end
