diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2025-07-08 15:33:15 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-07-08 06:36:18 +0000 |
| commit | 680383c64204f2002f90644b810b290636ad73e3 (patch) | |
| tree | d686783ba54b24b055fec95229c5d59356d16024 | |
| parent | 51de7c75e57d52468cef6492728282eb1c069caf (diff) | |
[ruby/tsort] Exclude gemspec and git-related files
https://github.com/ruby/tsort/commit/bf2e3a8695
| -rw-r--r-- | lib/tsort.gemspec | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tsort.gemspec b/lib/tsort.gemspec index f968a8946d..8970cbe826 100644 --- a/lib/tsort.gemspec +++ b/lib/tsort.gemspec @@ -22,7 +22,8 @@ Gem::Specification.new do |spec| dir, gemspec = File.split(__FILE__) excludes = %W[ - :^/bin/ :^/test/ :^/spec/ :^/features/ :^/Gemfile :^/Rakefile + :^/.git* :^/bin/ :^/test/ :^/spec/ :^/features/ :^/Gemfile :^/Rakefile + :^/#{gemspec} ] spec.files = IO.popen(%w[git ls-files -z --] + excludes, chdir: dir) do |f| f.read.split("\x0") |
