module Bundler::Plugin::API::Source

def app_cache_dirname

This is used by `app_cache_path`

Also this name is matched against the directories in cache for pruning

#cache is called.
Name of directory where plugin the is expected to cache the gems when
def app_cache_dirname
  base_name = File.basename(Bundler::URI.parse(uri).normalize.path)
  "#{base_name}-#{uri_hash}"
end