ruby-changes:60139
From: Hiroshi <ko1@a...>
Date: Thu, 20 Feb 2020 21:32:42 +0900 (JST)
Subject: [ruby-changes:60139] 3e12b65861 (master): Fallback to load version file in ruby core repository
https://git.ruby-lang.org/ruby.git/commit/?id=3e12b65861 From 3e12b658613a534f11a50b4a415c7c3e165bcfd1 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Thu, 20 Feb 2020 21:32:27 +0900 Subject: Fallback to load version file in ruby core repository diff --git a/lib/net/imap/net-imap.gemspec b/lib/net/imap/net-imap.gemspec index bd4e450..201a794 100644 --- a/lib/net/imap/net-imap.gemspec +++ b/lib/net/imap/net-imap.gemspec @@ -1,4 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/lib/net/imap/net-imap.gemspec#L1 -require_relative 'lib/net/imap/version' +begin + require_relative 'lib/net/imap/version' +rescue LoadError # Fallback to load version file in ruby core repository + require_relative "version" +end Gem::Specification.new do |spec| spec.name = "net-imap" -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/