[前][次][番号順一覧][スレッド一覧]

ruby-changes:62659

From: Hiroshi <ko1@a...>
Date: Thu, 20 Aug 2020 21:01:10 +0900 (JST)
Subject: [ruby-changes:62659] dfda2f739b (master): Promote find to default gems

https://git.ruby-lang.org/ruby.git/commit/?id=dfda2f739b

From dfda2f739bad7997ef000b713d7dfba618430dc0 Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Thu, 20 Aug 2020 21:00:48 +0900
Subject: Promote find to default gems


diff --git a/doc/maintainers.rdoc b/doc/maintainers.rdoc
index 73edf1b..d11787b 100644
--- a/doc/maintainers.rdoc
+++ b/doc/maintainers.rdoc
@@ -48,8 +48,6 @@ Zachary Scott (zzak) https://github.com/ruby/ruby/blob/trunk/doc/maintainers.rdoc#L48
   _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) https://github.com/ruby/ruby/blob/trunk/doc/maintainers.rdoc#L144
   _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 df677b7..6fe5aa0 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 https://github.com/ruby/ruby/blob/trunk/doc/standard_library.rdoc#L13
 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 https://github.com/ruby/ruby/blob/trunk/doc/standard_library.rdoc#L54
 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 0000000..fff0f70
--- /dev/null
+++ b/lib/find.gemspec
@@ -0,0 +1,24 @@ https://github.com/ruby/ruby/blob/trunk/lib/find.gemspec#L1
+Gem::Specification.new do |spec|
+  spec.name          = "find"
+  spec.version       = "0.1.0"
+  spec.authors       = ['Kazuki Tsujimoto']
+  spec.email         = ['kazuki@c...']
+
+  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 ca3ad9d..f4e70a8 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -63,6 +63,7 @@ $repositories = { https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L63
   bigdecimal: "ruby/bigdecimal",
   optparse: "ruby/optparse",
   set: "ruby/set",
+  find: "ruby/find",
 }
 
 def sync_default_gems(gem)
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]