From 563d0fdadaca6d12c90ceb33120bc7bcf932c612 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 3 Jan 2022 18:06:18 +0900 Subject: [PATCH] [ruby/etc] Derive extra_rdoc_files from files https://github.com/ruby/etc/commit/e8ecce3442 --- ext/etc/etc.gemspec | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/ext/etc/etc.gemspec b/ext/etc/etc.gemspec index af41091ade..e6ac6323b5 100644 --- a/ext/etc/etc.gemspec +++ b/ext/etc/etc.gemspec @@ -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}