1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Promote io-wait to the default gems

This commit is contained in:
Hiroshi SHIBATA 2020-07-30 21:10:28 +09:00
parent ec1ab1d465
commit d75b42a70a
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
4 changed files with 33 additions and 2 deletions

View file

@ -94,8 +94,6 @@ Zachary Scott (zzak)
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)
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

View file

@ -98,6 +98,7 @@ 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::
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

View file

@ -0,0 +1,22 @@
Gem::Specification.new do |spec|
spec.name = "io-wait"
spec.version = "0.1.0"
spec.authors = ["Nobu Nakada"]
spec.email = ["nobu@ruby-lang.org"]
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

View file

@ -14,6 +14,7 @@ $repositories = {
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)
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")