diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-11-08 19:21:47 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-11-09 07:32:34 +0900 |
commit | 2a0ed5691efbc602a4403ec09e6f91e89baa5507 (patch) | |
tree | e197106483134f9e93fa2cdd614d037ec0992ed6 /lib/timeout | |
parent | 9a90a4d953a4d1f8e5977cd8d2bab59637de5348 (diff) | |
download | ruby-2a0ed5691efbc602a4403ec09e6f91e89baa5507.tar.gz |
Promote timeout to default gems
Diffstat (limited to 'lib/timeout')
-rw-r--r-- | lib/timeout/timeout.gemspec | 27 | ||||
-rw-r--r-- | lib/timeout/version.rb | 3 |
2 files changed, 30 insertions, 0 deletions
diff --git a/lib/timeout/timeout.gemspec b/lib/timeout/timeout.gemspec new file mode 100644 index 0000000000..88babe9f8b --- /dev/null +++ b/lib/timeout/timeout.gemspec @@ -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 diff --git a/lib/timeout/version.rb b/lib/timeout/version.rb new file mode 100644 index 0000000000..39fc6eec5f --- /dev/null +++ b/lib/timeout/version.rb @@ -0,0 +1,3 @@ +module Timeout + VERSION = "0.1.0" +end |