lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "slugworth/version"

Gem::Specification.new do |spec|
  spec.name = "slugworth"
  spec.version = Slugworth::VERSION
  spec.authors = ["Matt Polito"]
  spec.email = ["matt.polito@gmail.com"]
  spec.description = "Easy slug functionality"
  spec.summary = "Easy slug functionality"
  spec.homepage = "https://github.com/mattpolito/slugworth"
  spec.license = "MIT"

  spec.files = `git ls-files`.split($/)
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
  spec.require_paths = ["lib"]

  spec.required_ruby_version = ">= 2.6"

  spec.add_development_dependency "rake"
  spec.add_development_dependency "rspec", "~> 3.0"
  spec.add_development_dependency "activerecord", ">= 4.0"
  spec.add_development_dependency "pry"
  spec.add_development_dependency "database_cleaner", "~> 1.0"
  spec.add_development_dependency "sqlite3"
  spec.add_development_dependency "standard"
end

lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "slugworth/version"

Gem::Specification.new do |spec|
  spec.name = "slugworth"
  spec.version = Slugworth::VERSION
  spec.authors = ["Matt Polito"]
  spec.email = ["matt.polito@gmail.com"]
  spec.description = "Easy slug functionality"
  spec.summary = "Easy slug functionality"
  spec.homepage = "https://github.com/mattpolito/slugworth"
  spec.license = "MIT"

  spec.files = Dir.chdir(File.expand_path("..", __FILE__)) do
    `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|.github)/}) }
  end
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
  spec.require_paths = ["lib"]

  spec.required_ruby_version = ">= 2.6"

  spec.add_development_dependency "rake"
  spec.add_development_dependency "rspec", "~> 3.0"
  spec.add_development_dependency "activerecord", ">= 4.0"
  spec.add_development_dependency "pry"
  spec.add_development_dependency "database_cleaner", "~> 1.0"
  spec.add_development_dependency "sqlite3"
  spec.add_development_dependency "standard"
end

Remove test files from gem build
Remove test files from gem build
