# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'active_record/hierarchical_query/version'

Gem::Specification.new do |spec|
  spec.name          = 'activerecord-hierarchical_query'
  spec.version       = ActiveRecord::HierarchicalQuery::VERSION
  spec.authors       = ['Alexei Mikhailov', 'Zach Aysan']
  spec.email         = %w(amikhailov83@gmail.com zachaysan@gmail.com)
  spec.summary       = %q{Recursively traverse trees using a single SQL query}
  spec.homepage      = 'https://github.com/take-five/activerecord-hierarchical_query'
  spec.license       = 'MIT'
  spec.files         = `git ls-files -z lib spec`.split("\x0") + %w(README.md LICENSE.txt)
  spec.executables   = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
  spec.test_files    = spec.files.grep(%r{^(test|spec|features)/})
  spec.require_paths = %w(lib)

  spec.add_dependency 'activerecord', '>= 5.0', '< 7.1'
  spec.add_dependency 'pg', '>= 0.21', '< 1.4'

  spec.add_development_dependency 'bundler', '>= 1.16'
  spec.add_development_dependency 'rake', '~> 12.3'
  spec.add_development_dependency 'rspec', '~> 3.10'
  spec.add_development_dependency 'database_cleaner', '~> 1.7'
  spec.add_development_dependency 'simplecov', '~> 0.16'
end
