summaryrefslogtreecommitdiff
path: root/lib/irb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irb')
-rw-r--r--lib/irb/irb.gemspec7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/irb/irb.gemspec b/lib/irb/irb.gemspec
index 1ac5eaefe5..57a44fecb7 100644
--- a/lib/irb/irb.gemspec
+++ b/lib/irb/irb.gemspec
@@ -1,4 +1,9 @@
-require_relative "version"
+begin
+ require_relative "lib/irb/version"
+rescue LoadError
+ # for Ruby core repository
+ require_relative "version"
+end
Gem::Specification.new do |spec|
spec.name = "irb"