diff --git a/pg.gemspec b/pg.gemspec index 8444d63a5..356bdfd09 100644 --- a/pg.gemspec +++ b/pg.gemspec @@ -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"]