Skip to content

Commit 8f9f4c1

Browse files
authored
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
1 parent e538be8 commit 8f9f4c1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

websocket.gemspec

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ Gem::Specification.new do |s|
1414
s.description = 'Universal Ruby library to handle WebSocket protocol'
1515
s.license = 'MIT'
1616

17-
s.files = `git ls-files`.split("\n")
18-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17+
s.files = `git ls-files`.split("\n").reject { |f| f.match(%r{^(spec/|\.)}) }
1918
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
2019
s.require_paths = ['lib']
2120

0 commit comments

Comments
 (0)