Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Commit f9c0e99

Browse files
committed
Use empty array when spec_settings returns nil
If use bundler 1.14.4 with rubygems 2.6.8 and `Bundler.settings["build.#{spec.name}"]` returns `nil` then we get error "can't modify frozen literal string" from rubygems[1]. RubyGems 2.6.8 is the default version for Ruby2.4.0. [1]: https://github.com/rubygems/rubygems/blob/v2.6.8/lib/rubygems/ext/rake_builder.rb#L13 See also ku1ik/rainbow#48
1 parent c7f3d05 commit f9c0e99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/bundler/installer/gem_installer.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def spec_settings
5252
end
5353

5454
def install
55-
spec.source.install(spec, :force => force, :ensure_builtin_gems_cached => standalone, :build_args => [spec_settings])
55+
spec.source.install(spec, :force => force, :ensure_builtin_gems_cached => standalone, :build_args => Array(spec_settings))
5656
end
5757

5858
def install_with_settings

0 commit comments

Comments
 (0)