diff options
author | David Rodriguez <deivid.rodriguez@riseup.net> | 2021-10-21 00:04:09 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-10-25 20:48:51 +0900 |
commit | f7f85c1febd23eec04f78bc461b21ea604a865a9 (patch) | |
tree | 752daf8cc4ee316e928fd092f063484444743b5e /lib/bundler/rubygems_gem_installer.rb | |
parent | 4fc29d17b36e12311c1fe1d2f63e463bbf8ad725 (diff) |
[rubygems/rubygems] Manage global gem cache directly
Previously, it was maintained in sync with the standard cache. That was
less efficient, and it caused some error messages to point to non
existent files.
https://github.com/rubygems/rubygems/commit/931f8cb8a9
Diffstat (limited to 'lib/bundler/rubygems_gem_installer.rb')
-rw-r--r-- | lib/bundler/rubygems_gem_installer.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bundler/rubygems_gem_installer.rb b/lib/bundler/rubygems_gem_installer.rb index 8890582318..fa46451887 100644 --- a/lib/bundler/rubygems_gem_installer.rb +++ b/lib/bundler/rubygems_gem_installer.rb @@ -31,7 +31,10 @@ module Bundler generate_plugins write_spec - write_cache_file + + SharedHelpers.filesystem_access("#{gem_home}/cache", :write) do + write_cache_file + end say spec.post_install_message unless spec.post_install_message.nil? |