diff options
Diffstat (limited to 'lib')
-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 = ["[email protected]"] + + 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 |