From 8f9f4c12b60934a476b6c571aab33a84309a3c68 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Wed, 24 Jul 2024 15:07:16 +0900 Subject: [PATCH] Exclude spec files from gem package (#57) * Exclude spec files from gem package * Make the gemspec work on Ruby 2.1 also, excluded the following five files as well: .codeclimate.yml .github/workflows/publish.yml .github/workflows/test.yml .gitignore .rubocop.yml --- websocket.gemspec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/websocket.gemspec b/websocket.gemspec index 764c6c4d..5cbc1a2d 100644 --- a/websocket.gemspec +++ b/websocket.gemspec @@ -14,8 +14,7 @@ Gem::Specification.new do |s| s.description = 'Universal Ruby library to handle WebSocket protocol' s.license = 'MIT' - s.files = `git ls-files`.split("\n") - s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") + s.files = `git ls-files`.split("\n").reject { |f| f.match(%r{^(spec/|\.)}) } s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) } s.require_paths = ['lib']