ruby-changes:70837
From: Nobuyoshi <ko1@a...>
Date: Wed, 12 Jan 2022 23:53:44 +0900 (JST)
Subject: [ruby-changes:70837] 7d94df63c4 (master): [ruby/optparse] Add rdoc options
https://git.ruby-lang.org/ruby.git/commit/?id=7d94df63c4 From 7d94df63c40ba2c2b85344140c9f3da03a05fc72 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 12 Jan 2022 18:17:22 +0900 Subject: [ruby/optparse] Add rdoc options Specify the main page and the page directory. Also in Rakefile, extract and use the same options from the gemspec file. https://github.com/ruby/optparse/commit/d182cd60b5 --- lib/optparse/optparse.gemspec | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/optparse/optparse.gemspec b/lib/optparse/optparse.gemspec index ae6596678c4..a4287ddeeed 100644 --- a/lib/optparse/optparse.gemspec +++ b/lib/optparse/optparse.gemspec @@ -23,6 +23,7 @@ Gem::Specification.new do |spec| https://github.com/ruby/ruby/blob/trunk/lib/optparse/optparse.gemspec#L23 spec.metadata["source_code_uri"] = spec.homepage spec.files = Dir["{doc,lib,misc}/**/*"] + %w[README.md ChangeLog COPYING] + spec.rdoc_options = ["--main=README.md", "--op=rdoc", "--page-dir=doc"] spec.bindir = "exe" spec.executables = [] spec.require_paths = ["lib"] -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/