1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/etc] Derive extra_rdoc_files from files

https://github.com/ruby/etc/commit/e8ecce3442
This commit is contained in:
Nobuyoshi Nakada 2022-01-03 18:06:18 +09:00 committed by Hiroshi SHIBATA
parent 3fea4f9d8c
commit 563d0fdada

View file

@ -22,6 +22,7 @@ Gem::Specification.new do |spec|
spec.homepage = "https://github.com/ruby/etc" spec.homepage = "https://github.com/ruby/etc"
spec.licenses = ["Ruby", "BSD-2-Clause"] spec.licenses = ["Ruby", "BSD-2-Clause"]
changelogs = Dir.glob("logs/ChangeLog-*[^~]", base: __dir__)
spec.files = %w[ spec.files = %w[
LICENSE.txt LICENSE.txt
README.md README.md
@ -31,14 +32,9 @@ Gem::Specification.new do |spec|
ext/etc/extconf.rb ext/etc/extconf.rb
ext/etc/mkconstants.rb ext/etc/mkconstants.rb
test/etc/test_etc.rb test/etc/test_etc.rb
] ] + changelogs
spec.rdoc_options = ["--main", "README.md"] spec.rdoc_options = ["--main", "README.md"]
spec.extra_rdoc_files = [ spec.extra_rdoc_files = spec.files.grep_v(/\.{rb,[ch]}\z/)
"LICENSE.txt",
"README.md",
"ChangeLog",
*Dir.glob("logs/ChangeLog-*[^~]", base: __dir__),
]
spec.bindir = "exe" spec.bindir = "exe"
spec.require_paths = ["lib"] spec.require_paths = ["lib"]
spec.extensions = %w{ext/etc/extconf.rb} spec.extensions = %w{ext/etc/extconf.rb}