[前][次][番号順一覧][スレッド一覧]

ruby-changes:63861

From: Nobuyoshi <ko1@a...>
Date: Thu, 3 Dec 2020 17:58:07 +0900 (JST)
Subject: [ruby-changes:63861] 7d0a6e28f2 (master): [ruby/io-nonblock] Fix ls-files matching regexp

https://git.ruby-lang.org/ruby.git/commit/?id=7d0a6e28f2

From 7d0a6e28f2260ec2ba487c174e35a9dc614e2e60 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 12 Oct 2020 14:53:29 +0900
Subject: [ruby/io-nonblock] Fix ls-files matching regexp

See rubygems/rubygems@8a81183236c4475152798db99734e89779287331.

https://github.com/ruby/io-nonblock/commit/e14f7952c1

diff --git a/ext/io/nonblock/io-nonblock.gemspec b/ext/io/nonblock/io-nonblock.gemspec
index 2ef41d7..4565c99 100644
--- a/ext/io/nonblock/io-nonblock.gemspec
+++ b/ext/io/nonblock/io-nonblock.gemspec
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec| https://github.com/ruby/ruby/blob/trunk/ext/io/nonblock/io-nonblock.gemspec#L14
   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) }
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]