Skip to content

Commit 680383c

Browse files
nobumatzbot
authored andcommitted
[ruby/tsort] Exclude gemspec and git-related files
ruby/tsort@bf2e3a8695
1 parent 51de7c7 commit 680383c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/tsort.gemspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ Gem::Specification.new do |spec|
2222

2323
dir, gemspec = File.split(__FILE__)
2424
excludes = %W[
25-
:^/bin/ :^/test/ :^/spec/ :^/features/ :^/Gemfile :^/Rakefile
25+
:^/.git* :^/bin/ :^/test/ :^/spec/ :^/features/ :^/Gemfile :^/Rakefile
26+
:^/#{gemspec}
2627
]
2728
spec.files = IO.popen(%w[git ls-files -z --] + excludes, chdir: dir) do |f|
2829
f.read.split("\x0")

0 commit comments

Comments
 (0)