Skip to content

Commit

Permalink
Merge pull request #3845 from nobu/ls-files-regexp
Browse files Browse the repository at this point in the history
Fix ls-files matching regexp
  • Loading branch information
hsbt committed Jul 27, 2020
2 parents 9014b36 + 8a81183 commit 97ebb3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bundler/lib/bundler/templates/newgem/newgem.gemspec.tt
Expand Up @@ -25,10 +25,10 @@ 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{^(test|spec|features)/}) }
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
end
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
<%- if config[:ext] -%>
spec.extensions = ["ext/<%= config[:underscored_name] %>/extconf.rb"]
Expand Down

0 comments on commit 97ebb3f

Please sign in to comment.