summaryrefslogtreecommitdiff
path: root/lib/bundler
diff options
context:
space:
mode:
authorDavid Rodríguez <[email protected]>2023-12-12 21:17:28 +0100
committerHiroshi SHIBATA <[email protected]>2023-12-14 20:22:48 +0800
commit7564038864bcf7c3cfb2f602e318e9beae17b2f7 (patch)
treeab542049587c9c7d1e3f8fb28ae695e739e9fa9e /lib/bundler
parent04dd2a8aae84f58009d230304029cf4af9a6d296 (diff)
[rubygems/rubygems] Remove check only necessary for ancient RubyGems
https://github.com/rubygems/rubygems/commit/ffa2f03489
Diffstat (limited to 'lib/bundler')
-rw-r--r--lib/bundler/rubygems_integration.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb
index fdbe85b4d2..5158e7a044 100644
--- a/lib/bundler/rubygems_integration.rb
+++ b/lib/bundler/rubygems_integration.rb
@@ -161,7 +161,7 @@ module Bundler
def spec_cache_dirs
@spec_cache_dirs ||= begin
dirs = gem_path.map {|dir| File.join(dir, "specifications") }
- dirs << Gem.spec_cache_dir if Gem.respond_to?(:spec_cache_dir) # Not in RubyGems 2.0.3 or earlier
+ dirs << Gem.spec_cache_dir
dirs.uniq.select {|dir| File.directory? dir }
end
end