summaryrefslogtreecommitdiff
path: root/ext/io/nonblock
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-10-12 14:53:29 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-12-03 17:35:28 +0900
commit7d0a6e28f2260ec2ba487c174e35a9dc614e2e60 (patch)
tree15316152a6f6435af632191d5686d9d18302bf71 /ext/io/nonblock
parent412a0f52406b2e215eaa77dd601c456dd5c23fce (diff)
[ruby/io-nonblock] Fix ls-files matching regexp
See rubygems/rubygems@8a81183236c4475152798db99734e89779287331. https://github.com/ruby/io-nonblock/commit/e14f7952c1
Diffstat (limited to 'ext/io/nonblock')
-rw-r--r--ext/io/nonblock/io-nonblock.gemspec2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/io/nonblock/io-nonblock.gemspec b/ext/io/nonblock/io-nonblock.gemspec
index 2ef41d780b2..4565c99d178 100644
--- a/ext/io/nonblock/io-nonblock.gemspec
+++ b/ext/io/nonblock/io-nonblock.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) }