# frozen_string_literal: true require_relative "lib/root_domain/version" Gem::Specification.new do |spec| spec.name = "root_domain" spec.version = RootDomain::VERSION spec.authors = ["Nando Vieira"] spec.email = ["me@fnando.com"] spec.summary = "Extract root domain from hosts (e.g. www.example " \ "will be extracted as example.com" spec.description = spec.summary spec.homepage = "https://github.com/fnando/root_domain" spec.license = "MIT" spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0") spec.metadata["homepage_uri"] = spec.homepage spec.metadata["source_code_uri"] = spec.homepage spec.metadata["changelog_uri"] = "#{spec.homepage}/tree/main/CHANGELOG.md" spec.files = Dir.chdir(File.expand_path(__dir__)) do `git ls-files -z` .split("\x0") .reject {|f| f.match(%r{^(test|spec|features)/}) } end spec.bindir = "exe" spec.executables = spec.files.grep(%r{^exe/}) {|f| File.basename(f) } spec.require_paths = ["lib"] spec.add_dependency "email_data" spec.add_dependency "simpleidn" spec.add_development_dependency "aitch" spec.add_development_dependency "bundler" spec.add_development_dependency "minitest" spec.add_development_dependency "minitest-utils" spec.add_development_dependency "rake" spec.add_development_dependency "rubocop" spec.add_development_dependency "rubocop-fnando" end