123456789_123456789_123456789_123456789_123456789_

Class: Bundler::Plugin::Installer::Git

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Bundler::Source::Git
Defined in: lib/bundler/plugin/installer/git.rb

Constant Summary

::Bundler::Source::Path - Inherited

DEFAULT_GLOB

Class Method Summary

Instance Attribute Summary

Instance Method Summary

::Bundler::Source::Git - Inherited

#==

Alias for Source::Git#eql?.

#app_cache_dirname, #cache,
#cache_path

This is the path which is going to contain a cache of the git repository.

#eql?, #extension_dir_name, #hash, #install,
#install_path

This is the path which is going to contain a specific checkout of the git repository.

#load_spec_files, #local_override!, #name,
#path
#revision, #specs, #to_lock, #to_s, #unlock!, #base_name, #cached_revision, #extension_cache_slug, #fetch, #git_proxy, #git_scope, #load_gemspec, #override_for, #serialize_gemspecs_in, #set_local!, #shortref_for_display, #shortref_for_path, #uri_hash,
#validate_spec

no-op, since we validate when re-serializing the gemspec.

::Bundler::Source::Path - Inherited

::Bundler::Source - Inherited

#can_lock?, #dependency_names_to_double_check,
#double_check_for

it’s possible that gems from one source depend on gems from some other source, so now we download gemspecs and iterate over those dependencies, looking for gems we don’t have info on yet.

#extension_cache_path, #include?, #inspect, #unmet_deps, #version_message, #earlier_version?, #extension_cache_slug, #print_using_message, #version_color

Constructor Details

This class inherits a constructor from Bundler::Source::Git

Instance Method Details

#cache_path

[ GitHub ]

  
# File 'lib/bundler/plugin/installer/git.rb', line 7

def cache_path
  @cache_path ||= begin
    git_scope = "#{base_name}-#{uri_hash}"

    Plugin.cache.join("bundler", "git", git_scope)
  end
end

#generate_bin(spec, disable_extensions = false)

[ GitHub ]

  
# File 'lib/bundler/plugin/installer/git.rb', line 31

def generate_bin(spec, disable_extensions = false)
  # Need to find a way without code duplication
  # For now, we can ignore this
end

#install_path

[ GitHub ]

  
# File 'lib/bundler/plugin/installer/git.rb', line 15

def install_path
  @install_path ||= begin
    git_scope = "#{base_name}-#{shortref_for_path(revision)}"

    Plugin.root.join("bundler", "gems", git_scope)
  end
end

#root

[ GitHub ]

  
# File 'lib/bundler/plugin/installer/git.rb', line 27

def root
  Plugin.root
end

#version_message(spec)

[ GitHub ]

  
# File 'lib/bundler/plugin/installer/git.rb', line 23

def version_message(spec)
  "#{spec.name} #{spec.version}"
end