Method: Bundler::Source#extension_cache_path

Defined in:
lib/bundler/source.rb

#extension_cache_path(spec) ⇒ Object

[View source]

81
82
83
84
85
86
87
88
# File 'lib/bundler/source.rb', line 81

def extension_cache_path(spec)
  return unless Bundler.feature_flag.global_gem_cache?
  return unless source_slug = extension_cache_slug(spec)
  Bundler.user_cache.join(
    "extensions", Gem::Platform.local.to_s, Bundler.ruby_scope,
    source_slug, spec.full_name
  )
end