Promote timeout to default gems

This commit is contained in:
Hiroshi SHIBATA 2019-11-08 19:21:47 +09:00
Родитель 9a90a4d953
Коммит 2a0ed5691e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: F9CF13417264FAC2
5 изменённых файлов: 36 добавлений и 3 удалений

Просмотреть файл

@ -93,8 +93,6 @@ Zachary Scott (zzak)
_unmaintained_
[lib/time.rb]
Tanaka Akira (akr)
[lib/timeout.rb]
Yukihiro Matsumoto (matz)
[lib/tsort.rb]
Tanaka Akira (akr)
[lib/un.rb]
@ -257,6 +255,9 @@ Zachary Scott (zzak)
Yukihiro Matsumoto (matz)
https://github.com/ruby/singleton
https://rubygems.org/gems/singleton
[lib/timeout.rb]
Yukihiro Matsumoto (matz)
https://github.com/ruby/timeout
[lib/thwait.rb]
Keiju ISHITSUKA (keiju)
https://github.com/ruby/thwait

Просмотреть файл

@ -34,7 +34,6 @@ Set:: Provides a class to deal with collections of unordered, unique values
Shellwords:: Manipulates strings with word parsing rules of UNIX Bourne shell
Tempfile:: A utility class for managing temporary files
Time:: Extends the Time class with methods for parsing and conversion
Timeout:: Auto-terminate potentially long-running operations in Ruby
tmpdir.rb:: Extends the Dir class to manage the OS temporary file path
TSort:: Topological sorting using Tarjan's algorithm
un.rb:: Utilities to replace common UNIX commands
@ -86,6 +85,7 @@ RDoc:: Produces HTML and command-line documentation for Ruby
REXML:: An XML toolkit for Ruby
RSS:: Family of libraries that support various formats of XML "feeds"
Singleton:: Implementation of the Singleton pattern for Ruby
Timeout:: Auto-terminate potentially long-running operations in Ruby
Tracer:: Outputs a source level execution trace of a Ruby program
WEBrick:: An HTTP server toolkit for Ruby

Просмотреть файл

@ -0,0 +1,27 @@
begin
require_relative "lib/timeout/version"
rescue LoadError # Fallback to load version file in ruby core repository
require_relative "version"
end
Gem::Specification.new do |spec|
spec.name = "timeout"
spec.version = Timeout::VERSION
spec.authors = ["Yukihiro Matsumoto"]
spec.email = ["matz@ruby-lang.org"]
spec.summary = %q{Auto-terminate potentially long-running operations in Ruby.}
spec.description = %q{Auto-terminate potentially long-running operations in Ruby.}
spec.homepage = "https://github.com/ruby/timeout"
spec.license = "BSD-2-Clause"
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

3
lib/timeout/version.rb Normal file
Просмотреть файл

@ -0,0 +1,3 @@
module Timeout
VERSION = "0.1.0"
end

Просмотреть файл

@ -45,6 +45,7 @@
# * https://github.com/ruby/readline
# * https://github.com/ruby/readline-ext
# * https://github.com/ruby/observer
# * https://github.com/ruby/timeout
#
require 'fileutils'
@ -97,6 +98,7 @@ $repositories = {
readline: "ruby/readline",
readlineext: "ruby/readline-ext",
observer: "ruby/observer",
timeout: "ruby/timeout",
}
def sync_default_gems(gem)