diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-01 09:44:46 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-03 09:40:11 +0900 |
commit | b3b2b55f7b7ab035851176d28ecee4afaa3fe0cc (patch) | |
tree | 34596a02e7ab341ea6e09eb818670c37b5bf7c3d /spec/bundler/support | |
parent | aad7443e168880e382680d4c0be1757840b23c18 (diff) | |
download | ruby-b3b2b55f7b7ab035851176d28ecee4afaa3fe0cc.tar.gz |
[bundler/bundler] The keys for RbConfig::CONFIG was String.
https://github.com/bundler/bundler/commit/ffc5e76335
Diffstat (limited to 'spec/bundler/support')
-rw-r--r-- | spec/bundler/support/path.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/bundler/support/path.rb b/spec/bundler/support/path.rb index ca05ef5e3b..aa06a3f047 100644 --- a/spec/bundler/support/path.rb +++ b/spec/bundler/support/path.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true require "pathname" +require "rbconfig" module Spec module Path @@ -32,7 +33,7 @@ module Spec if Bundler::VERSION.split(".").first.to_i < 3 system_gem_path(*path) else - bundled_app(*[".bundle", ENV.fetch("BUNDLER_SPEC_RUBY_ENGINE", Gem.ruby_engine), Gem::ConfigMap[:ruby_version], *path].compact) + bundled_app(*[".bundle", ENV.fetch("BUNDLER_SPEC_RUBY_ENGINE", Gem.ruby_engine), RbConfig::CONFIG["ruby_version"], *path].compact) end end @@ -51,7 +52,7 @@ module Spec end def vendored_gems(path = nil) - bundled_app(*["vendor/bundle", Gem.ruby_engine, Gem::ConfigMap[:ruby_version], path].compact) + bundled_app(*["vendor/bundle", Gem.ruby_engine, RbConfig::CONFIG["ruby_version"], path].compact) end def cached_gem(path) |