From 7befc0cdfcf972023842eca5836fe4709ec2ad46 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 22 Jul 2020 18:38:51 +0900 Subject: [PATCH] Promote optparse to default gems --- doc/maintainers.rdoc | 5 +++-- doc/standard_library.rdoc | 2 +- lib/optparse/optparse.gemspec | 21 +++++++++++++++++++++ tool/sync_default_gems.rb | 1 + 4 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 lib/optparse/optparse.gemspec diff --git a/doc/maintainers.rdoc b/doc/maintainers.rdoc index c2c5569ce2..963c369c7b 100644 --- a/doc/maintainers.rdoc +++ b/doc/maintainers.rdoc @@ -54,8 +54,6 @@ Zachary Scott (zzak) _unmaintained_ [lib/open-uri.rb] Tanaka Akira (akr) -[lib/optparse.rb, lib/optparse/*] - Nobuyuki Nakada (nobu) [lib/pp.rb] Tanaka Akira (akr) [lib/prettyprint.rb] @@ -170,6 +168,9 @@ Zachary Scott (zzak) Keiju ISHITSUKA (keiju) https://github.com/ruby/irb https://rubygems.org/gems/irb +[lib/optparse.rb, lib/optparse/*] + Nobuyuki Nakada (nobu) + https://github.com/ruby/optparse [lib/logger.rb] Naotoshi Seo (sonots) https://github.com/ruby/logger diff --git a/doc/standard_library.rdoc b/doc/standard_library.rdoc index 175c70cf1e..0d1e87a558 100644 --- a/doc/standard_library.rdoc +++ b/doc/standard_library.rdoc @@ -16,7 +16,6 @@ ERB:: An easy to use but powerful templating system for Ruby Find:: This module supports top-down traversal of a set of file paths MakeMakefile:: Module used to generate a Makefile for C extensions OpenURI:: An easy-to-use wrapper for Net::HTTP, Net::HTTPS and Net::FTP -OptionParser:: Ruby-oriented class for command-line option analysis PP:: Provides a PrettyPrinter for Ruby objects PrettyPrinter:: Implements a pretty printing algorithm for readable structure RbConfig:: Information of your configure and build of Ruby @@ -62,6 +61,7 @@ Forwardable:: Provides delegation of specified methods to a designated object GetoptLong:: Parse command line options similar to the GNU C getopt_long() IPAddr:: Provides methods to manipulate IPv4 and IPv6 IP addresses IRB:: Interactive Ruby command-line tool for REPL (Read Eval Print Loop) +OptionParser:: Ruby-oriented class for command-line option analysis Logger:: Provides a simple logging utility for outputting messages Matrix:: Represents a mathematical matrix. Mutex_m:: Mixin to extend objects to be handled like a Mutex diff --git a/lib/optparse/optparse.gemspec b/lib/optparse/optparse.gemspec new file mode 100644 index 0000000000..903dbb5216 --- /dev/null +++ b/lib/optparse/optparse.gemspec @@ -0,0 +1,21 @@ +Gem::Specification.new do |spec| + spec.name = "optparse" + spec.version = "0.1.0" + spec.authors = ["Nobu Nakada"] + 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.homepage = "https://github.com/ruby/optparse" + spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0") + + spec.metadata["homepage_uri"] = spec.homepage + spec.metadata["source_code_uri"] = spec.homepage + + spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do + `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } + end + spec.bindir = "exe" + spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } + spec.require_paths = ["lib"] +end diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 77145f5fce..661711f444 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -59,6 +59,7 @@ $repositories = { "net-ftp": "ruby/net-ftp", "net-http": "ruby/net-http", bigdecimal: "ruby/bigdecimal", + optparse: "ruby/optparse", } def sync_default_gems(gem)