aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mutex_m.gemspec
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-31 12:56:17 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-31 12:56:17 +0000
commit3112e591b2e4ae91c8e9258b6731c3fbafc64138 (patch)
treee47f306967336812e6c2d6b16a42b0856dcfe99a /lib/mutex_m.gemspec
parent69a26cc22ededb37ee4ef6e35272b6ae80a2f3d3 (diff)
downloadruby-3112e591b2e4ae91c8e9258b6731c3fbafc64138.tar.gz
Try to load version file of github repository at first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mutex_m.gemspec')
-rw-r--r--lib/mutex_m.gemspec7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/mutex_m.gemspec b/lib/mutex_m.gemspec
index 73ed183b85..409ed5b7b2 100644
--- a/lib/mutex_m.gemspec
+++ b/lib/mutex_m.gemspec
@@ -1,4 +1,9 @@
-require_relative "mutex_m"
+begin
+ require_relative "lib/mutex_m"
+rescue LoadError
+ # for Ruby core repository
+ require_relative "mutex_m"
+end
Gem::Specification.new do |spec|
spec.name = "mutex_m"