# frozen_string_literal: true require_relative "lib/neetob/version" Gem::Specification.new do |spec| spec.name = "neetob" spec.version = Neetob::VERSION spec.authors = ["Udai Gupta"] spec.email = ["udaigupta19311@gmail.com"] spec.summary = "Provides a set of helper scripts for Github and Heroku." spec.description = "This gem gives different commands for interacting with Github and Heroku instances of existing neeto repos." spec.homepage = "https://github.com/bigbinary/neetob" spec.license = "MIT" spec.required_ruby_version = ">= 3.0.0" spec.metadata["homepage_uri"] = spec.homepage spec.metadata["source_code_uri"] = "https://github.com/bigbinary/neetob" spec.metadata["changelog_uri"] = "https://github.com/bigbinary/neetob/blob/main/CHANGELOG.md" # 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(__dir__) do `git ls-files -z`.split("\x0").reject do |f| (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)}) 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 "thor", "~> 1.2.1" # for cli spec.add_dependency "octokit", "~> 4.0" # for github client spec.add_dependency "terminal-table", "~> 3.0.2" # for building cli table spec.add_dependency "launchy", "~> 2.5.0" # for opening in browser spec.add_dependency "dotenv", "~> 2.8.1" # for loading env variables # 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*") } .map { |file| "#{submodule_path}/#{file}" } .map { |file| file.gsub "#{File.dirname(__FILE__)}/", "" } spec.files += required_submodule_files end end end