lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "collectible/version"
rails_version = File.read(File.expand_path("../RAILS_VERSION", __dir__)).strip

Gem::Specification.new do |spec|
  spec.name          = "collectible"
  spec.version       = Collectible::VERSION
  spec.authors       = [ "Allen Rettberg", "Eric Garside" ]
  spec.email         = %w[allen.rettberg@freshly.com eric.garside@freshly.com]

  spec.summary       = "Provides an extensible framework for building array-like object collections"
  spec.description   = "Perform operations on and pass around explicit collections of objects"
  spec.homepage      = "https://github.com/Freshly/spicerack/tree/main/collectible"
  spec.license       = "MIT"

  spec.metadata["homepage_uri"] = spec.homepage
  spec.metadata["source_code_uri"] = spec.homepage
  spec.metadata["changelog_uri"] = "https://github.com/Freshly/spicerack/blob/main/collectible/CHANGELOG.md"
  spec.metadata["documentation_uri"] = "https://www.rubydoc.info/gems/collectible/#{Collectible::VERSION}"

  spec.files         = Dir["README.md", "LICENSE.txt", ".yardopts", "lib/**/{*,.[a-z]*}"]
  spec.require_paths = "lib"

  spec.add_runtime_dependency "activesupport", rails_version
  spec.add_runtime_dependency "short_circu_it", Collectible::VERSION
  spec.add_runtime_dependency "tablesalt", Collectible::VERSION
end
