diff options
author | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2018-10-16 11:34:40 +0900 |
---|---|---|
committer | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2018-10-20 19:59:02 +0900 |
commit | 94f664fc4c55441736aa173b57b1bad6d7ef761d (patch) | |
tree | 14456155f6b45db485ef86c513693568a16c240f /bundler.gemspec | |
parent | 74f142be8c322e035ae52894d4ea4166ffb93fbf (diff) | |
download | bundler-94f664fc4c55441736aa173b57b1bad6d7ef761d.tar.gz |
Support file structure of ruby core repository.
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 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| |