summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-08-20 21:00:48 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-08-20 21:00:53 +0900
commitdfda2f739bad7997ef000b713d7dfba618430dc0 (patch)
tree74c8d4bacedf3733b1606df7dbcc9437d48b84b2
parent6509652c13f1fe79891a249fbacdb95c2214d1b1 (diff)
Promote find to default gems
-rw-r--r--doc/maintainers.rdoc5
-rw-r--r--doc/standard_library.rdoc2
-rw-r--r--lib/find.gemspec24
-rw-r--r--tool/sync_default_gems.rb1
4 files changed, 29 insertions, 3 deletions
diff --git a/doc/maintainers.rdoc b/doc/maintainers.rdoc
index 73edf1b9c62..d11787b67d7 100644
--- a/doc/maintainers.rdoc
+++ b/doc/maintainers.rdoc
@@ -48,8 +48,6 @@ Zachary Scott (zzak)
_unmaintained_
[lib/erb.rb]
Masatoshi SEKI (seki), Takashi Kokubun (k0kubun)
-[lib/find.rb]
- Kazuki Tsujimoto (ktsj)
[lib/mkmf.rb]
_unmaintained_
[lib/open-uri.rb]
@@ -146,6 +144,9 @@ Zachary Scott (zzak)
_unmaintained_
https://github.com/ruby/fileutils
https://rubygems.org/gems/fileutils
+[lib/find.rb]
+ Kazuki Tsujimoto (ktsj)
+ https://github.com/ruby/find
[lib/forwardable.rb]
Keiju ISHITSUKA (keiju)
https://github.com/ruby/forwardable
diff --git a/doc/standard_library.rdoc b/doc/standard_library.rdoc
index df677b7b55c..6fe5aa031e2 100644
--- a/doc/standard_library.rdoc
+++ b/doc/standard_library.rdoc
@@ -13,7 +13,6 @@ Base64:: Support for encoding and decoding binary data using a Base64 representa
DEBUGGER__:: Debugging functionality for Ruby
DRb:: Distributed object system for Ruby
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
PP:: Provides a PrettyPrinter for Ruby objects
@@ -55,6 +54,7 @@ Delegator:: Provides three abilities to delegate method calls to an object
DidYouMean:: "Did you mean?" experience in Ruby
English.rb:: Require 'English.rb' to reference global variables with less cryptic names
FileUtils:: Several file utility methods for copying, moving, removing, etc
+Find:: This module supports top-down traversal of a set of file paths
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
diff --git a/lib/find.gemspec b/lib/find.gemspec
new file mode 100644
index 00000000000..fff0f706cdf
--- /dev/null
+++ b/lib/find.gemspec
@@ -0,0 +1,24 @@
+Gem::Specification.new do |spec|
+ spec.name = "find"
+ spec.version = "0.1.0"
+ spec.authors = ['Kazuki Tsujimoto']
+ spec.email = ['kazuki@callcc.net']
+
+ spec.summary = %q{This module supports top-down traversal of a set of file paths.}
+ spec.description = %q{This module supports top-down traversal of a set of file paths.}
+ spec.homepage = "https://github.com/ruby/find"
+ 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
+
+ # Specify which files should be added to the gem when it is released.
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
+ 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 ca3ad9d0866..f4e70a8b7bb 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -63,6 +63,7 @@ $repositories = {
bigdecimal: "ruby/bigdecimal",
optparse: "ruby/optparse",
set: "ruby/set",
+ find: "ruby/find",
}
def sync_default_gems(gem)