mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +02:00
parent
aad7443e16
commit
b3b2b55f7b
1 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require "pathname"
|
require "pathname"
|
||||||
|
require "rbconfig"
|
||||||
|
|
||||||
module Spec
|
module Spec
|
||||||
module Path
|
module Path
|
||||||
|
@ -32,7 +33,7 @@ module Spec
|
||||||
if Bundler::VERSION.split(".").first.to_i < 3
|
if Bundler::VERSION.split(".").first.to_i < 3
|
||||||
system_gem_path(*path)
|
system_gem_path(*path)
|
||||||
else
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -51,7 +52,7 @@ module Spec
|
||||||
end
|
end
|
||||||
|
|
||||||
def vendored_gems(path = nil)
|
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
|
end
|
||||||
|
|
||||||
def cached_gem(path)
|
def cached_gem(path)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue