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

ruby-changes:62432

From: Hiroshi <ko1@a...>
Date: Thu, 30 Jul 2020 21:22:01 +0900 (JST)
Subject: [ruby-changes:62432] d75b42a70a (master): Promote io-wait to the default gems

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

From d75b42a70aa4c4ceed3f4d71a51aba3586ebbf2e Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Thu, 30 Jul 2020 21:10:28 +0900
Subject: Promote io-wait to the default gems


diff --git a/doc/maintainers.rdoc b/doc/maintainers.rdoc
index 963c369..0eebb45 100644
--- a/doc/maintainers.rdoc
+++ b/doc/maintainers.rdoc
@@ -94,8 +94,6 @@ Zachary Scott (zzak) https://github.com/ruby/ruby/blob/trunk/doc/maintainers.rdoc#L94
   Koichi Sasada (ko1)
 [ext/io/nonblock]
   Nobuyuki Nakada (nobu)
-[ext/io/wait]
-  Nobuyuki Nakada (nobu)
 [ext/monitor]
   Koichi Sasada (ko1)
 [ext/nkf]
@@ -309,6 +307,9 @@ Zachary Scott (zzak) https://github.com/ruby/ruby/blob/trunk/doc/maintainers.rdoc#L307
   Nobuyuki Nakada (nobu)
   https://github.com/ruby/io-console
   https://rubygems.org/gems/io-console
+[ext/io/wait]
+  Nobuyuki Nakada (nobu)
+  https://github.com/ruby/io-wait
 [ext/json]
   NARUSE, Yui (naruse), Hiroshi SHIBATA (hsbt)
   https://github.com/flori/json
diff --git a/doc/standard_library.rdoc b/doc/standard_library.rdoc
index 0d1e87a..fba8a29 100644
--- a/doc/standard_library.rdoc
+++ b/doc/standard_library.rdoc
@@ -98,6 +98,7 @@ Fcntl:: Loads constants defined in the OS fcntl.h C header file https://github.com/ruby/ruby/blob/trunk/doc/standard_library.rdoc#L98
 Fiddle:: A libffi wrapper for Ruby
 GDBM:: Ruby extension for the GNU dbm (gdbm) library
 IO::console:: Console interface
+IO::wait::
 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/wait/io-wait.gemspec b/ext/io/wait/io-wait.gemspec
new file mode 100644
index 0000000..08ca47c
--- /dev/null
+++ b/ext/io/wait/io-wait.gemspec
@@ -0,0 +1,22 @@ https://github.com/ruby/ruby/blob/trunk/ext/io/wait/io-wait.gemspec#L1
+Gem::Specification.new do |spec|
+  spec.name          = "io-wait"
+  spec.version       = "0.1.0"
+  spec.authors       = ["Nobu Nakada"]
+  spec.email         = ["nobu@r..."]
+
+  spec.summary       = %q{Waits until IO is readable or writable without blocking.}
+  spec.description   = %q{Waits until IO is readable or writable without blocking.}
+  spec.homepage      = "https://github.com/ruby/io-wait"
+  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 661711f..f0b9bd4 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -14,6 +14,7 @@ $repositories = { https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L14
   fiddle: 'ruby/fiddle',
   stringio: 'ruby/stringio',
   "io-console": 'ruby/io-console',
+  "io-wait": 'ruby/io-wait',
   csv: 'ruby/csv',
   webrick: 'ruby/webrick',
   dbm: 'ruby/dbm',
@@ -134,6 +135,12 @@ def sync_default_gems(gem) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L135
     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-wait"
+    rm_rf(%w[ext/io/wait test/io/wait])
+    cp_r("#{upstream}/ext/io/wait", "ext/io")
+    cp_r("#{upstream}/test/io/wait", "test/io")
+    cp_r("#{upstream}/io-wait.gemspec", "ext/io/wait")
+    `git checkout ext/io/wait/depend`
   when "dbm"
     rm_rf(%w[ext/dbm test/dbm])
     cp_r("#{upstream}/ext/dbm", "ext")
-- 
cgit v0.10.2


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

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