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

ruby-changes:65689

From: Nobuyoshi <ko1@a...>
Date: Mon, 29 Mar 2021 19:41:59 +0900 (JST)
Subject: [ruby-changes:65689] e97f21afcd (master): [ruby/optparse] Exclude unnecessary files from the package

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

From e97f21afcd0abbc1b03a070f9385ec7b765e5a71 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 29 Mar 2021 15:26:18 +0900
Subject: [ruby/optparse] Exclude unnecessary files from the package

https://github.com/ruby/optparse/commit/dfd9380231
---
 lib/optparse/optparse.gemspec | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/optparse/optparse.gemspec b/lib/optparse/optparse.gemspec
index afb9042..831c787 100644
--- a/lib/optparse/optparse.gemspec
+++ b/lib/optparse/optparse.gemspec
@@ -23,7 +23,9 @@ Gem::Specification.new do |spec| https://github.com/ruby/ruby/blob/trunk/lib/optparse/optparse.gemspec#L23
   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{\A(?:test|spec|features)/}) }
+    `git ls-files -z`.split("\x0").reject { |f|
+      f.match(%r{\A(?:(?:test|spec|features)/|Gemfile|\.(?:editor|git))})
+    }
   end
   spec.bindir        = "exe"
   spec.executables   = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
-- 
cgit v1.1


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

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