Skip to content

Commit

Permalink
Merge pull request #591 from AlexWayfer/exclude_ci_files_from_built_gem
Browse files Browse the repository at this point in the history
Exclude CI files from built gem
  • Loading branch information
larskanis authored Sep 20, 2024
2 parents 5db4b55 + da14f8c commit aa20ca1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pg.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ Gem::Specification.new do |spec|
# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
spec.files = Dir.chdir(File.expand_path(__dir__)) do
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features|translation)/}) }
`git ls-files -z`.split("\x0").reject do |f|
f.match(%r{\A(?:test|spec|features|translation|\.)})
end
end
spec.extensions = ["ext/extconf.rb"]
spec.require_paths = ["lib"]
Expand Down

0 comments on commit aa20ca1

Please sign in to comment.