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:
parent
3fea4f9d8c
commit
563d0fdada
1 changed files with 3 additions and 7 deletions
|
@ -22,6 +22,7 @@ Gem::Specification.new do |spec|
|
|||
spec.homepage = "https://github.com/ruby/etc"
|
||||
spec.licenses = ["Ruby", "BSD-2-Clause"]
|
||||
|
||||
changelogs = Dir.glob("logs/ChangeLog-*[^~]", base: __dir__)
|
||||
spec.files = %w[
|
||||
LICENSE.txt
|
||||
README.md
|
||||
|
@ -31,14 +32,9 @@ Gem::Specification.new do |spec|
|
|||
ext/etc/extconf.rb
|
||||
ext/etc/mkconstants.rb
|
||||
test/etc/test_etc.rb
|
||||
]
|
||||
] + changelogs
|
||||
spec.rdoc_options = ["--main", "README.md"]
|
||||
spec.extra_rdoc_files = [
|
||||
"LICENSE.txt",
|
||||
"README.md",
|
||||
"ChangeLog",
|
||||
*Dir.glob("logs/ChangeLog-*[^~]", base: __dir__),
|
||||
]
|
||||
spec.extra_rdoc_files = spec.files.grep_v(/\.{rb,[ch]}\z/)
|
||||
spec.bindir = "exe"
|
||||
spec.require_paths = ["lib"]
|
||||
spec.extensions = %w{ext/etc/extconf.rb}
|
||||
|
|
Loading…
Reference in a new issue