summaryrefslogtreecommitdiff
path: root/lib/shell/shell.gemspec
diff options
context:
space:
mode:
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"