[ruby/optparse] [DOC] Extract description from README

https://github.com/ruby/optparse/commit/83e8c23d68
This commit is contained in:
Nobuyoshi Nakada 2024-04-26 19:32:29 +09:00 committed by git
parent 3cd3f76679
commit 13fa6cc6a3

View File

@ -14,7 +14,10 @@ Gem::Specification.new do |spec|
spec.email = ["nobu@ruby-lang.org"]
spec.summary = %q{OptionParser is a class for command-line option analysis.}
spec.description = %q{OptionParser is a class for command-line option analysis.}
spec.description = File.open(File.join(__dir__, "README.md")) do |readme|
readme.gets("") # heading
readme.gets("").chomp
end rescue spec.summary
spec.homepage = "https://github.com/ruby/optparse"
spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
spec.licenses = ["Ruby", "BSD-2-Clause"]