diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2021-07-25 16:10:55 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-07-27 09:25:56 +0900 |
commit | 095b5bbcc168f324588d42d4ef233b446ed9f860 (patch) | |
tree | 280a399920e77ff3ac30ad3b352c916d60c8ccda /lib/bundler/installer/gem_installer.rb | |
parent | 350f4a0b66db6f056af5d75fb0b98d31628a841d (diff) | |
download | ruby-095b5bbcc168f324588d42d4ef233b446ed9f860.tar.gz |
[rubygems/rubygems] Lazily load shellwords
https://github.com/rubygems/rubygems/commit/ef6388656a
Diffstat (limited to 'lib/bundler/installer/gem_installer.rb')
-rw-r--r-- | lib/bundler/installer/gem_installer.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bundler/installer/gem_installer.rb b/lib/bundler/installer/gem_installer.rb index 10b7f6ce04..1df86ccfbc 100644 --- a/lib/bundler/installer/gem_installer.rb +++ b/lib/bundler/installer/gem_installer.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require "shellwords" - module Bundler class GemInstaller attr_reader :spec, :standalone, :worker, :force, :installer @@ -47,6 +45,7 @@ module Bundler def spec_settings # Fetch the build settings, if there are any if settings = Bundler.settings["build.#{spec.name}"] + require "shellwords" Shellwords.shellsplit(settings) end end |