From d2c0352a96460b170d778b7e8e8a8917195ca311 Mon Sep 17 00:00:00 2001 From: Orien Madgwick <497874+orien@users.noreply.github.com> Date: Mon, 26 Feb 2024 19:18:03 +1100 Subject: [PATCH] Don't put `doc/` `pkg/` or `vendor/` directory in the gem --- webmachine.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webmachine.gemspec b/webmachine.gemspec index bb86578..0bf1dc5 100644 --- a/webmachine.gemspec +++ b/webmachine.gemspec @@ -33,6 +33,6 @@ Gem::Specification.new do |gem| gem.add_development_dependency('standard', ['~> 1.21']) ignores = File.read('.gitignore').split(/\r?\n/).reject { |f| f =~ /^(#.+|\s*)$/ }.map { |f| Dir[f] }.flatten gem.files = (Dir['**/*', '.gitignore'] - ignores).reject do |f| - !File.file?(f) || f.start_with?(*%w[. Gemfile RELEASING Rakefile memory_test spec webmachine.gemspec]) + !File.file?(f) || f.start_with?(*%w[. Gemfile RELEASING Rakefile doc/ memory_test pkg/ spec/ vendor/ webmachine.gemspec]) end end