From a03ae81274015e59cd2a075acfbf38dc028df07c Mon Sep 17 00:00:00 2001 From: Jose Luis Duran Date: Tue, 15 Oct 2024 13:56:21 +0000 Subject: [PATCH] Remove the igs directory to reduce gem size The directory lib/fhir_models/igs contains core.tgz files, which increase the gem size considerably and are not required for normal operation. Remove the entire igs directory. --- fhir_models.gemspec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fhir_models.gemspec b/fhir_models.gemspec index a2486112..09591d7b 100644 --- a/fhir_models.gemspec +++ b/fhir_models.gemspec @@ -15,8 +15,7 @@ Gem::Specification.new do |spec| spec.homepage = 'https://github.com/fhir-crucible/fhir_models' spec.files = `git ls-files -z lib LICENSE`.split("\x0") - spec.files.reject! { |file| file =~ /lib\/fhir_models\/examples|lib\/fhir_models\/definitions/} - spec.files.reject! { |file| file =~ /lib\/fhir_models\/igs\/hl7.fhir..*\.core\/package_supplement\/expansions.json/} + spec.files.reject! { |file| file =~ /lib\/fhir_models\/examples|lib\/fhir_models\/definitions|lib\/fhir_models\/igs/} spec.bindir = 'exe' spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ['lib']