diff options
Diffstat (limited to 'bundler.gemspec')
-rw-r--r-- | bundler.gemspec | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bundler.gemspec b/bundler.gemspec index a06e969a96..26fc32278a 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| |