From 08e22c64b34e2809ba6cafc82615b9c1fa8185fe Mon Sep 17 00:00:00 2001 From: Kenta Murata <3959+mrkn@users.noreply.github.com> Date: Tue, 26 Dec 2023 10:25:46 +0900 Subject: [PATCH] [rubygems/rubygems] Use cache_home instead of data_home in default_spec_cache_dir https://github.com/rubygems/rubygems/commit/d2801fcfde --- lib/rubygems/defaults.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rubygems/defaults.rb b/lib/rubygems/defaults.rb index 00dc5707c3..19cf306f88 100644 --- a/lib/rubygems/defaults.rb +++ b/lib/rubygems/defaults.rb @@ -24,7 +24,7 @@ module Gem default_spec_cache_dir = File.join Gem.user_home, ".gem", "specs" unless File.exist?(default_spec_cache_dir) - default_spec_cache_dir = File.join Gem.data_home, "gem", "specs" + default_spec_cache_dir = File.join Gem.cache_home, "gem", "specs" end default_spec_cache_dir