diff --git a/timeout.gemspec b/timeout.gemspec index 669ce73..88babe9 100644 --- a/timeout.gemspec +++ b/timeout.gemspec @@ -1,12 +1,14 @@ -lib = File.expand_path("lib", __dir__) -$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) -require "timeout/version" +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 = ["Hiroshi SHIBATA"] - spec.email = ["hsbt@ruby-lang.org"] + 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.}