Skip to content

Commit 72aa17f

Browse files
committed
[DOC] Extract description from README
1 parent d6f03d7 commit 72aa17f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

optparse.gemspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ Gem::Specification.new do |spec|
1414
spec.email = ["[email protected]"]
1515

1616
spec.summary = %q{OptionParser is a class for command-line option analysis.}
17-
spec.description = %q{OptionParser is a class for command-line option analysis.}
17+
spec.description = File.open(File.join(__dir__, "README.md")) do |readme|
18+
readme.gets("") # heading
19+
readme.gets("").chomp
20+
end rescue spec.summary
1821
spec.homepage = "https://github.com/ruby/optparse"
1922
spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
2023
spec.licenses = ["Ruby", "BSD-2-Clause"]
2124

22-
spec.metadata["homepage_uri"] = spec.homepage
23-
spec.metadata["source_code_uri"] = spec.homepage
24-
2525
spec.files = Dir["{doc,lib,misc}/**/{*,.document}"] +
2626
%w[README.md ChangeLog COPYING .document .rdoc_options]
2727
spec.rdoc_options = ["--main=README.md", "--op=rdoc", "--page-dir=doc"]

0 commit comments

Comments
 (0)