summaryrefslogtreecommitdiff
path: root/lib/timeout/timeout.gemspec
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2019-11-08 19:21:47 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-11-09 07:32:34 +0900
commit2a0ed5691efbc602a4403ec09e6f91e89baa5507 (patch)
treee197106483134f9e93fa2cdd614d037ec0992ed6 /lib/timeout/timeout.gemspec
parent9a90a4d953a4d1f8e5977cd8d2bab59637de5348 (diff)
Promote timeout to default gems
Diffstat (limited to 'lib/timeout/timeout.gemspec')
-rw-r--r--lib/timeout/timeout.gemspec27
1 files changed, 27 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