Skip to content

Commit

Permalink
Exclude spec files from gem package (#57)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
amatsuda authored Jul 24, 2024
1 parent e538be8 commit 8f9f4c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions websocket.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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']

Expand Down

0 comments on commit 8f9f4c1

Please sign in to comment.