# frozen_string_literal: true lib = File.expand_path("lib", __dir__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require "mihari/version" def ci_env? # CI=true in GitHub Actions ENV["CI"] end Gem::Specification.new do |spec| spec.name = "mihari" spec.version = Mihari::VERSION spec.authors = ["Manabu Niseki"] spec.email = ["manabu.niseki@gmail.com"] spec.summary = "A query aggregator for OSINT based threat hunting" spec.homepage = "https://github.com/ninoseki/mihari" spec.license = "MIT" spec.required_ruby_version = ">= 3.1" spec.metadata["rubygems_mfa_required"] = "true" # 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(__dir__)) do `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(.github|.vscode|docs|docker|frontend|images|spec|)/}) } end # Include frontend assets in lib/mihari/web/public spec.files += Dir.glob("lib/mihari/web/public/**/*") spec.bindir = "exe" spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] spec.add_development_dependency "better_errors", "~> 2.10" spec.add_development_dependency "binding_of_caller", "~> 1.0" spec.add_development_dependency "bundler", "~> 2.4" spec.add_development_dependency "coveralls_reborn", "~> 0.28" spec.add_development_dependency "fakefs", "~> 2.5" spec.add_development_dependency "faker", "~> 3.2" spec.add_development_dependency "fuubar", "~> 2.5" spec.add_development_dependency "mysql2", "~> 0.5" spec.add_development_dependency "pg", "~> 1.5" spec.add_development_dependency "rack-test", "~> 2.1" spec.add_development_dependency "rake", "~> 13.1" spec.add_development_dependency "rb-fsevent", "~> 0.11" spec.add_development_dependency "rerun", "~> 0.14" spec.add_development_dependency "rspec", "~> 3.12" spec.add_development_dependency "rspec-parameterized", "~> 1.0" spec.add_development_dependency "rubocop-rspec", "~> 2.25" spec.add_development_dependency "rubocop-yard", "~> 0.8" spec.add_development_dependency "simplecov-lcov", "~> 0.8" spec.add_development_dependency "standard", "~> 1.32" spec.add_development_dependency "test-prof", "~> 1.2" spec.add_development_dependency "timecop", "~> 0.9" spec.add_development_dependency "vcr", "~> 6.2" spec.add_development_dependency "webmock", "~> 3.19" unless ci_env? spec.add_development_dependency "lefthook", "~> 1.5" spec.add_development_dependency "solargraph", "~> 0.49" end spec.add_dependency "activerecord", "7.1.2" spec.add_dependency "addressable", "2.8.5" spec.add_dependency "anyway_config", "2.5.4" spec.add_dependency "awrence", "2.0.1" spec.add_dependency "dotenv", "2.8.1" spec.add_dependency "dry-container", "0.11.0" spec.add_dependency "dry-files", "1.1.0" spec.add_dependency "dry-monads", "1.6.0" spec.add_dependency "dry-schema", "1.13.3" spec.add_dependency "dry-struct", "1.6.0" spec.add_dependency "dry-validation", "1.10.0" spec.add_dependency "email_address", "0.2.4" spec.add_dependency "grape", "2.0.0" spec.add_dependency "grape-entity", "1.0.0" spec.add_dependency "grape-swagger", "2.0.0" spec.add_dependency "grape-swagger-entity", "0.5.2" spec.add_dependency "http", "5.1.1" spec.add_dependency "jr-cli", "0.6.0" spec.add_dependency "launchy", "2.5.2" spec.add_dependency "memo_wise", "1.8.0" spec.add_dependency "normalize_country", "0.3.2" spec.add_dependency "parallel", "1.23.0" spec.add_dependency "plissken", "2.0.1" spec.add_dependency "public_suffix", "5.0.4" spec.add_dependency "puma", "6.4.0" spec.add_dependency "rack", "3.0.8" spec.add_dependency "rack-cors", "2.0.1" spec.add_dependency "rackup", "2.1.0" spec.add_dependency "semantic_logger", "4.15.0" spec.add_dependency "sentry-ruby", "5.13.0" spec.add_dependency "slack-notifier", "2.4.0" spec.add_dependency "sqlite3", "1.6.8" spec.add_dependency "thor", "1.3.0" spec.add_dependency "thor-hollaback", "0.2.1" spec.add_dependency "uuidtools", "2.2.0" spec.add_dependency "whois", "5.1.1" spec.add_dependency "whois-parser", "2.0.0" end