From 500bc16ea1f15c31ea335940ae65e53117fdb47b Mon Sep 17 00:00:00 2001 From: Jeremy Friesen Date: Tue, 19 Dec 2023 16:51:29 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Exclude=20specs=20and=20bin/rail?= =?UTF-8?q?s=20from=20gem=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There's no need to include the spec files in the gemfile list. And including `bin/rails` can wreck havoc on the downstream application. Related to: - https://github.com/samvera/hyrax/pull/6146 --- iiif_print.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iiif_print.gemspec b/iiif_print.gemspec index 8c1a2b12..c54795ed 100644 --- a/iiif_print.gemspec +++ b/iiif_print.gemspec @@ -20,7 +20,7 @@ Gem::Specification.new do |spec| (primarily scanned) content. SUMMARY spec.license = 'Apache-2.0' - spec.files = `git ls-files`.split($OUTPUT_RECORD_SEPARATOR) + spec.files = `git ls-files`.split($OUTPUT_RECORD_SEPARATOR).select { |f| File.dirname(f) !~ %r{\A"?spec\/?} && f != 'bin/rails' } spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.add_dependency 'blacklight_iiif_search', '>= 1.0', '< 3.0' spec.add_dependency 'derivative-rodeo', "~> 0.5"