# frozen_string_literal: true require_relative "lib/neeto_deploy/version" Gem::Specification.new do |spec| spec.name = "neetodeploy" spec.version = NeetoDeploy::VERSION spec.authors = ["Subin Siby"] spec.email = ["subin.siby@bigbinary.com"] spec.summary = "CLI for neetoDeploy" spec.description = "Manage neetoDeploy apps with CLI" spec.homepage = "https://github.com/neetohq/neeto-deploy-cli" spec.license = "MIT" spec.required_ruby_version = ">= #{File.read(File.expand_path("./.ruby-version", __dir__)).strip}" spec.metadata["homepage_uri"] = spec.homepage spec.metadata["source_code_uri"] = "https://github.com/neetohq/neeto-deploy-cli" spec.metadata["changelog_uri"] = "https://github.com/neetohq/neeto-deploy-cli/blob/main/CHANGELOG.md" # Specify which files should be added to the gem when it is released. # The `git ls-files -z` gives the list of files tracked by git. spec.files = Dir.chdir(__dir__) do `git ls-files -z`.split("\x0").filter do |f| (f == __FILE__) || f == ".ruby-version" || f.start_with?("exe/") || f.start_with?("lib/") || f.start_with?("Gemfile") end end spec.bindir = "exe" spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] # Must have deps spec.add_dependency "dotenv", "~> 2.8.1" # for loading env variables spec.add_dependency "httparty", "~> 0.21.0" # for http requests spec.add_dependency "launchy", "~> 2.5.0" # for opening in browser spec.add_dependency "terminal-table", "~> 3.0.2" # for building cli table spec.add_dependency "thor", "~> 1.3.0" # for cli spec.add_dependency "websocket-client-simple" spec.add_dependency "colorize" spec.add_dependency "tty-spinner" # To add the files from submodules `git submodule --quiet foreach pwd`.split($\).each do |submodule_path| Dir.chdir(submodule_path) do required_submodule_files = `git ls-files -z` .split("\x0") .select { |file| file.match("lib/neeto_compliance*|data/*") } .map { |file| "#{submodule_path}/#{file}" } .map { |file| file.gsub "#{File.dirname(__FILE__)}/", "" } spec.files += required_submodule_files end end end