aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-10-13 21:06:13 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-10-14 14:42:53 +0900
commit1e316edf6063b8f12b0ec67e3d2404fc919a96f4 (patch)
treedc38c54ffd95bc6a9882408f412a278aad282262
parent102c2ba65f1fa2a6cdbaaa7d2b466aabfc50e5d7 (diff)
downloadruby-1e316edf6063b8f12b0ec67e3d2404fc919a96f4.tar.gz
Promote drb to the default gems
-rw-r--r--doc/maintainers.rdoc5
-rw-r--r--doc/standard_library.rdoc2
-rw-r--r--lib/drb/drb.gemspec30
-rw-r--r--lib/drb/version.rb3
-rw-r--r--tool/sync_default_gems.rb1
5 files changed, 38 insertions, 3 deletions
diff --git a/doc/maintainers.rdoc b/doc/maintainers.rdoc
index c936e92059..f0d564da01 100644
--- a/doc/maintainers.rdoc
+++ b/doc/maintainers.rdoc
@@ -38,8 +38,6 @@ Zachary Scott (zzak)
=== Libraries
-[lib/drb.rb, lib/drb/*]
- Masatoshi SEKI (seki)
[lib/debug.rb]
_unmaintained_
[lib/mkmf.rb]
@@ -116,6 +114,9 @@ Zachary Scott (zzak)
[lib/did_you_mean.rb]
Yuki Nishijima (yuki24)
https://github.com/ruby/did_you_mean
+[lib/drb.rb, lib/drb/*]
+ Masatoshi SEKI (seki)
+ https://github.com/ruby/drb
[lib/erb.rb]
Masatoshi SEKI (seki), Takashi Kokubun (k0kubun)
https://github.com/ruby/erb
diff --git a/doc/standard_library.rdoc b/doc/standard_library.rdoc
index 9667853eea..926ec41840 100644
--- a/doc/standard_library.rdoc
+++ b/doc/standard_library.rdoc
@@ -9,7 +9,6 @@ description.
== Libraries
DEBUGGER__:: Debugging functionality for Ruby
-DRb:: Distributed object system for Ruby
MakeMakefile:: Module used to generate a Makefile for C extensions
RbConfig:: Information of your configure and build of Ruby
Gem:: Package management framework for Ruby
@@ -39,6 +38,7 @@ CGI:: Support for the Common Gateway Interface protocol
CSV:: Provides an interface to read and write CSV files and data
Delegator:: Provides three abilities to delegate method calls to an object
DidYouMean:: "Did you mean?" experience in Ruby
+DRb:: Distributed object system for Ruby
English.rb:: Require 'English.rb' to reference global variables with less cryptic names
ERB:: An easy to use but powerful templating system for Ruby
FileUtils:: Several file utility methods for copying, moving, removing, etc
diff --git a/lib/drb/drb.gemspec b/lib/drb/drb.gemspec
new file mode 100644
index 0000000000..6b31e896c3
--- /dev/null
+++ b/lib/drb/drb.gemspec
@@ -0,0 +1,30 @@
+begin
+ require_relative "lib/drb/version"
+rescue LoadError # Fallback to load version file in ruby core repository
+ require_relative "version"
+end
+
+Gem::Specification.new do |spec|
+ spec.name = "drb"
+ spec.version = DRb::VERSION
+ spec.authors = ["Masatoshi SEKI"]
+ spec.email = ["seki@ruby-lang.org"]
+
+ spec.summary = %q{Distributed object system for Ruby}
+ spec.description = %q{Distributed object system for Ruby}
+ spec.homepage = "https://github.com/ruby/drb"
+ 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/lib/drb/version.rb b/lib/drb/version.rb
new file mode 100644
index 0000000000..ffba81d48e
--- /dev/null
+++ b/lib/drb/version.rb
@@ -0,0 +1,3 @@
+module DRb
+ VERSION = "2.0.4"
+end
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index 46151255f0..685e5745ad 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -79,6 +79,7 @@ REPOSITORIES = {
time: "ruby/time",
pp: "ruby/pp",
prettyprint: "ruby/prettyprint",
+ drb: "ruby/drb",
}
def sync_default_gems(gem)