summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-07-30 21:21:08 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-07-30 21:21:08 +0900
commit2bd1f827f14e06575e128a5e4928cee79592e61b (patch)
treeda0111d354bcb479bf2c1daefe93e89b1acf12d3
parentd75b42a70aa4c4ceed3f4d71a51aba3586ebbf2e (diff)
Promote io-nonblock to the default gems.
-rw-r--r--doc/maintainers.rdoc5
-rw-r--r--doc/standard_library.rdoc4
-rw-r--r--ext/io/nonblock/io-nonblock.gemspec22
-rw-r--r--tool/sync_default_gems.rb7
4 files changed, 33 insertions, 5 deletions
diff --git a/doc/maintainers.rdoc b/doc/maintainers.rdoc
index 0eebb459fb0..c76df3b406a 100644
--- a/doc/maintainers.rdoc
+++ b/doc/maintainers.rdoc
@@ -92,8 +92,6 @@ Zachary Scott (zzak)
Akinori MUSHA (knu)
[ext/fiber]
Koichi Sasada (ko1)
-[ext/io/nonblock]
- Nobuyuki Nakada (nobu)
[ext/monitor]
Koichi Sasada (ko1)
[ext/nkf]
@@ -307,6 +305,9 @@ Zachary Scott (zzak)
Nobuyuki Nakada (nobu)
https://github.com/ruby/io-console
https://rubygems.org/gems/io-console
+[ext/io/nonblock]
+ Nobuyuki Nakada (nobu)
+ https://github.com/ruby/io-nonblock
[ext/io/wait]
Nobuyuki Nakada (nobu)
https://github.com/ruby/io-wait
diff --git a/doc/standard_library.rdoc b/doc/standard_library.rdoc
index fba8a29f84c..e039cb128a1 100644
--- a/doc/standard_library.rdoc
+++ b/doc/standard_library.rdoc
@@ -34,7 +34,6 @@ un.rb:: Utilities to replace common UNIX commands
Coverage:: Provides coverage measurement for Ruby
Digest:: Provides a framework for message digest libraries
-IO:: Extensions for Ruby IO class, including #wait and ::console
Monitor:: Provides an object or module to use safely by more than one thread
NKF:: Ruby extension for Network Kanji Filter
objspace:: Extends ObjectSpace module to add methods for internal statistics
@@ -97,8 +96,7 @@ Etc:: Provides access to information typically stored in UNIX /etc directory
Fcntl:: Loads constants defined in the OS fcntl.h C header file
Fiddle:: A libffi wrapper for Ruby
GDBM:: Ruby extension for the GNU dbm (gdbm) library
-IO::console:: Console interface
-IO::wait::
+IO:: Extensions for Ruby IO class, including #wait, #nonblock and ::console
JSON:: Implements Javascript Object Notation for Ruby
OpenSSL:: Provides SSL, TLS and general purpose cryptography for Ruby
Psych:: A YAML parser and emitter for Ruby
diff --git a/ext/io/nonblock/io-nonblock.gemspec b/ext/io/nonblock/io-nonblock.gemspec
new file mode 100644
index 00000000000..e87fb734106
--- /dev/null
+++ b/ext/io/nonblock/io-nonblock.gemspec
@@ -0,0 +1,22 @@
+Gem::Specification.new do |spec|
+ spec.name = "io-nonblock"
+ spec.version = "0.1.0"
+ spec.authors = ["Nobu Nakada"]
+ spec.email = ["nobu@ruby-lang.org"]
+
+ spec.summary = %q{Enables non-blocking mode with IO class}
+ spec.description = %q{Enables non-blocking mode with IO class}
+ spec.homepage = "https://github.com/ruby/io-nonblock"
+ spec.license = ["Ruby", "BSD-2-Clause"]
+ 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 f0b9bd40bc8..2b362659046 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -14,6 +14,7 @@ $repositories = {
fiddle: 'ruby/fiddle',
stringio: 'ruby/stringio',
"io-console": 'ruby/io-console',
+ "io-nonblock": 'ruby/io-nonblock',
"io-wait": 'ruby/io-wait',
csv: 'ruby/csv',
webrick: 'ruby/webrick',
@@ -135,6 +136,12 @@ def sync_default_gems(gem)
cp_r("#{upstream}/lib/io/console", "ext/io/console/lib")
cp_r("#{upstream}/io-console.gemspec", "ext/io/console")
`git checkout ext/io/console/depend`
+ when "io-nonblock"
+ rm_rf(%w[ext/io/nonblock test/io/nonblock])
+ cp_r("#{upstream}/ext/io/nonblock", "ext/io")
+ cp_r("#{upstream}/test/io/nonblock", "test/io")
+ cp_r("#{upstream}/io-nonblock.gemspec", "ext/io/nonblock")
+ `git checkout ext/io/nonblock/depend`
when "io-wait"
rm_rf(%w[ext/io/wait test/io/wait])
cp_r("#{upstream}/ext/io/wait", "ext/io")