summaryrefslogtreecommitdiff
path: root/bundler.gemspec
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <hsbt@ruby-lang.org>2018-10-16 11:34:40 +0900
committerSHIBATA Hiroshi <hsbt@ruby-lang.org>2018-10-20 19:59:02 +0900
commit94f664fc4c55441736aa173b57b1bad6d7ef761d (patch)
tree14456155f6b45db485ef86c513693568a16c240f /bundler.gemspec
parent74f142be8c322e035ae52894d4ea4166ffb93fbf (diff)
downloadbundler-94f664fc4c55441736aa173b57b1bad6d7ef761d.tar.gz
Support file structure of ruby core repository.
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|