We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7578655 commit 51de7c7Copy full SHA for 51de7c7
1 file changed
lib/tsort.gemspec
@@ -20,8 +20,12 @@ Gem::Specification.new do |spec|
20
spec.metadata["homepage_uri"] = spec.homepage
21
spec.metadata["source_code_uri"] = spec.homepage
22
23
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
24
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
+ dir, gemspec = File.split(__FILE__)
+ excludes = %W[
25
+ :^/bin/ :^/test/ :^/spec/ :^/features/ :^/Gemfile :^/Rakefile
26
+ ]
27
+ spec.files = IO.popen(%w[git ls-files -z --] + excludes, chdir: dir) do |f|
28
+ f.read.split("\x0")
29
end
30
spec.bindir = "exe"
31
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
0 commit comments