summaryrefslogtreecommitdiff
path: root/ext/win32ole
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2024-03-23 21:53:24 +0900
committergit <svn-admin@ruby-lang.org>2024-03-23 13:06:40 +0000
commit43fe89d921862373bde017e96fbd692a24534eca (patch)
tree581dd851c44b9e6f8d01bc7ac988f6a8edd1cd91 /ext/win32ole
parent14fba5a78499a3a797ec5f27fe697ffa763955f5 (diff)
[ruby/win32ole] Refine pathspecs for `spec.files`
https://github.com/ruby/win32ole/commit/8d443417a9
Diffstat (limited to 'ext/win32ole')
-rw-r--r--ext/win32ole/win32ole.gemspec8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/win32ole/win32ole.gemspec b/ext/win32ole/win32ole.gemspec
index e9abb576ff..625916ae17 100644
--- a/ext/win32ole/win32ole.gemspec
+++ b/ext/win32ole/win32ole.gemspec
@@ -23,11 +23,11 @@ Gem::Specification.new do |spec|
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage
- cmd = %W[git ls-files -z --
- :^#{File.basename(__FILE__)}
- :^/bin/ :^/test/ :^/rakelib/ :^/.git* :^Gemfile* :^Rakefile*
+ pathspecs = %W[
+ :(exclude,literal)#{File.basename(__FILE__)}
+ :^/bin/ :^/test/ :^/rakelib/ :^/.git* :^/Gemfile* :^/Rakefile*
]
- spec.files = IO.popen(cmd, chdir: __dir__, err: IO::NULL, exception: false, &:read).split("\x0")
+ spec.files = IO.popen(%w[git ls-files -z --] + pathspecs, chdir: __dir__, err: IO::NULL, exception: false, &:read).split("\x0")
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]