Skip to content

Commit 13fa6cc

Browse files
nobumatzbot
authored andcommitted
[ruby/optparse] [DOC] Extract description from README
ruby/optparse@83e8c23d68
1 parent 3cd3f76 commit 13fa6cc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/optparse/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 = ["[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"]

0 commit comments

Comments
 (0)