summaryrefslogtreecommitdiff
path: root/lib/shell/shell.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
commitca32fe167303becd98027afb42f6228b026f00a5 (patch)
treee47f306967336812e6c2d6b16a42b0856dcfe99a /lib/shell/shell.gemspec
parentcf855124d64fbfda23375969c0e9947661140167 (diff)
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/shell/shell.gemspec')
-rw-r--r--lib/shell/shell.gemspec7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/shell/shell.gemspec b/lib/shell/shell.gemspec
index ffd42d5ad9..1c27670ca4 100644
--- a/lib/shell/shell.gemspec
+++ b/lib/shell/shell.gemspec
@@ -1,4 +1,9 @@
-require_relative "version"
+begin
+ require_relative "lib/shell/version"
+rescue LoadError
+ # for Ruby core repository
+ require_relative "version"
+end
Gem::Specification.new do |spec|
spec.name = "shell"