From 01e0d74965ccaa6382bae883adac5f556590023a Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 11 Sep 2020 22:01:08 +0900 Subject: [PATCH] Promote resolv-replace to default gems --- doc/maintainers.rdoc | 5 +++-- doc/standard_library.rdoc | 2 +- lib/resolv-replace.gemspec | 24 ++++++++++++++++++++++++ tool/sync_default_gems.rb | 1 + 4 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 lib/resolv-replace.gemspec diff --git a/doc/maintainers.rdoc b/doc/maintainers.rdoc index ebea636872..30e0cdef51 100644 --- a/doc/maintainers.rdoc +++ b/doc/maintainers.rdoc @@ -48,8 +48,6 @@ Zachary Scott (zzak) Tanaka Akira (akr) [lib/prettyprint.rb] Tanaka Akira (akr) -[lib/resolv-replace.rb] - Tanaka Akira (akr) [lib/rubygems.rb, lib/rubygems/*] Eric Hodel (drbrain), Hiroshi SHIBATA (hsbt) https://github.com/rubygems/rubygems @@ -217,6 +215,9 @@ Zachary Scott (zzak) [lib/resolv.rb] Tanaka Akira (akr) https://github.com/ruby/resolv +[lib/resolv-replace.rb] + Tanaka Akira (akr) + https://github.com/ruby/resolv-replace [lib/rdoc.rb, lib/rdoc/*] Eric Hodel (drbrain), Hiroshi SHIBATA (hsbt) https://github.com/ruby/rdoc diff --git a/doc/standard_library.rdoc b/doc/standard_library.rdoc index 1cdf715643..50b9649230 100644 --- a/doc/standard_library.rdoc +++ b/doc/standard_library.rdoc @@ -14,7 +14,6 @@ MakeMakefile:: Module used to generate a Makefile for C extensions 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 -resolv-replace.rb:: Replace Socket DNS with Resolv Gem:: Package management framework for Ruby Time:: Extends the Time class with methods for parsing and conversion un.rb:: Utilities to replace common UNIX commands @@ -68,6 +67,7 @@ Prime:: Prime numbers and factorization library PStore:: Implements a file based persistence mechanism based on a Hash Racc:: A LALR(1) parser generator written in Ruby. Resolv:: Thread-aware DNS resolver library in Ruby +resolv-replace.rb:: Replace Socket DNS with Resolv RDoc:: Produces HTML and command-line documentation for Ruby Rinda:: The Linda distributed computing paradigm in Ruby SecureRandom:: Interface for secure random number generator diff --git a/lib/resolv-replace.gemspec b/lib/resolv-replace.gemspec new file mode 100644 index 0000000000..0dadb19007 --- /dev/null +++ b/lib/resolv-replace.gemspec @@ -0,0 +1,24 @@ +Gem::Specification.new do |spec| + spec.name = "resolv-replace" + spec.version = "0.1.0" + spec.authors = ["Tanaka Akira"] + spec.email = ["akr@fsij.org"] + + spec.summary = %q{Replace Socket DNS with Resolv.} + spec.description = %q{Replace Socket DNS with Resolv.} + spec.homepage = "https://github.com/ruby/resolv-replace" + spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0") + spec.licenses = ["Ruby", "BSD-2-Clause"] + + 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"] + + spec.add_dependency "resolv" +end diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 4e70f2e68c..08b3c587a1 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -75,6 +75,7 @@ REPOSITORIES = { "open-uri": "ruby/open-uri", securerandom: "ruby/securerandom", resolv: "ruby/resolv", + "resolv-replace": "ruby/resolv-replace", } def sync_default_gems(gem)