Skip to content

Commit 83e8c23

Browse files
committed
[DOC] Extract description from README
1 parent 30571f9 commit 83e8c23

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

optparse.gemspec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ Gem::Specification.new do |spec|
1414
spec.email = ["nobu@ruby-lang.org"]
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"]

0 commit comments

Comments
 (0)