summaryrefslogtreecommitdiff
path: root/bundler.gemspec
diff options
context:
space:
mode:
Diffstat (limited to 'bundler.gemspec')
-rw-r--r--bundler.gemspec8
1 files changed, 7 insertions, 1 deletions
diff --git a/bundler.gemspec b/bundler.gemspec
index d04bf34e7c..c004de0965 100644
--- a/bundler.gemspec
+++ b/bundler.gemspec
@@ -1,7 +1,13 @@
# coding: utf-8
# frozen_string_literal: true
-require File.expand_path("../lib/bundler/version", __FILE__)
+begin
+ require File.expand_path("../lib/bundler/version", __FILE__)
+rescue LoadError
+ # for Ruby core repository
+ require File.expand_path("../bundler/version", __FILE__)
+end
+
require "shellwords"
Gem::Specification.new do |s|