summaryrefslogtreecommitdiff
path: root/ext/io/wait/io-wait.gemspec
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-10-11 15:19:23 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-12-03 17:35:29 +0900
commit09bcb935ec5467e44bab7426446c6e7ce2bbf983 (patch)
treee6233d798d79ced540dc815b4a4a65c3ac76ec5f /ext/io/wait/io-wait.gemspec
parent2800e9f347dc9110d2be33d5abab94a1957c71a6 (diff)
downloadruby-09bcb935ec5467e44bab7426446c6e7ce2bbf983.tar.gz
[ruby/io-wait] Fix ls-files matching regexp
See rubygems/rubygems@8a81183236c4475152798db99734e89779287331. https://github.com/ruby/io-wait/commit/04857e0cf5
Diffstat (limited to 'ext/io/wait/io-wait.gemspec')
-rw-r--r--ext/io/wait/io-wait.gemspec2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/io/wait/io-wait.gemspec b/ext/io/wait/io-wait.gemspec
index af03215a30..5aec72d635 100644
--- a/ext/io/wait/io-wait.gemspec
+++ b/ext/io/wait/io-wait.gemspec
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
spec.metadata["source_code_uri"] = spec.homepage
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) 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) }