mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 05:29:10 +02:00
Use git ls-files instead of Dir.glob because optparse has optionparser.rb that is outside of lib/optparse directory
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
This commit is contained in:
parent
5ee6315704
commit
c3bdf7043c
1 changed files with 3 additions and 2 deletions
|
@ -25,8 +25,9 @@ Gem::Specification.new do |spec|
|
|||
spec.metadata["homepage_uri"] = spec.homepage
|
||||
spec.metadata["source_code_uri"] = spec.homepage
|
||||
|
||||
spec.files = Dir.glob("{doc,lib,misc}/**/{*,.document}", base: File.expand_path("..", __FILE__)) +
|
||||
%w[README.md ChangeLog COPYING .document .rdoc_options]
|
||||
dir, gemspec = File.split(__FILE__)
|
||||
excludes = %W[#{gemspec} rakelib test/ Gemfile Rakefile .git* .editor*].map {|n| ":^"+n}
|
||||
spec.files = IO.popen(%w[git ls-files -z --] + excludes, chdir: dir, &:read).split("\x0")
|
||||
spec.bindir = "exe"
|
||||
spec.executables = []
|
||||
spec.require_paths = ["lib"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue