# frozen_string_literal: true require_relative "./lib/inkcpp_rb/version" Gem::Specification.new do |spec| spec.name = "inkcpp_rb" spec.version = InkcppRb::VERSION spec.authors = ["Chris Zelenak"] spec.email = ["chris@zelenak.me"] spec.licenses = ["MIT"] spec.summary = "inkcpp bindings in Ruby" spec.description = "inkcpp bindings in Ruby" spec.homepage = "https://git.sr.ht/~netshade/inkcpp_rb" spec.required_ruby_version = ">= 2.6.0" spec.metadata["allowed_push_host"] = "https://rubygems.org/" spec.metadata["homepage_uri"] = spec.homepage spec.metadata["source_code_uri"] = "https://git.sr.ht/~netshade/inkcpp_rb" spec.metadata["changelog_uri"] = "https://git.sr.ht/~netshade/inkcpp_rb/tree/main/item/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. submodules = %w{inkcpp} submodule_files = submodules.flat_map do |module_name| base_submodule_path = File.join("ext", "inkcpp_rb", module_name) submodule_path = File.join(File.expand_path(__dir__), base_submodule_path) Dir.chdir(submodule_path) do files = `git ls-files -z`.split("\x0").map { |module_file| File.join(base_submodule_path, module_file) } raise "Submodule not checked out" if files.empty? files end end spec.files = Dir.chdir(File.expand_path(__dir__)) do `git ls-files -z`.split("\x0").reject do |f| (f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)}) end end + submodule_files spec.bindir = "exe" spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] spec.extensions = ["ext/inkcpp_rb/extconf.rb"] # Uncomment to register a new dependency of your gem # spec.add_dependency "example-gem", "~> 1.0" spec.add_dependency "rice", "~> 4.3.3" spec.add_development_dependency "rake-compiler", "~> 1.2.8" spec.add_development_dependency "sorbet", "~> 0.5.0" spec.add_development_dependency "sorbet-runtime", "~> 0.5.0" spec.add_development_dependency "tapioca", "~> 0.16.0" spec.add_development_dependency "debug", "~> 1.1.0" # For more information and examples about making a new gem, check out our # guide at: https://bundler.io/guides/creating_gem.html end