Sha256: 0e8be8f0aebb34dd4b7f4c1146b6742368b7f5957348c8d7d6513a84188d809a

Contents?: true

Size: 865 Bytes

Versions: 209

Compression:

Stored size: 865 Bytes

Contents

# frozen_string_literal: true

module Bundler
  module Plugin
    class Installer
      class Git < Bundler::Source::Git
        def cache_path
          @cache_path ||= begin
            git_scope = "#{base_name}-#{uri_hash}"

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

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

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

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

        def root
          Plugin.root
        end

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

Version data entries

209 entries across 209 versions & 6 rubygems

Version Path
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/bundler-2.3.5/lib/bundler/plugin/installer/git.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/bundler-2.3.5/lib/bundler/plugin/installer/git.rb
rubygems-update-3.2.34 bundler/lib/bundler/plugin/installer/git.rb
bundler-2.2.34 lib/bundler/plugin/installer/git.rb
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/bundler-2.3.7/lib/bundler/plugin/installer/git.rb
rubygems-update-3.3.13 bundler/lib/bundler/plugin/installer/git.rb
bundler-2.3.13 lib/bundler/plugin/installer/git.rb
rubygems-update-3.3.12 bundler/lib/bundler/plugin/installer/git.rb
bundler-2.3.12 lib/bundler/plugin/installer/git.rb
rubygems-update-3.3.11 bundler/lib/bundler/plugin/installer/git.rb
bundler-2.3.11 lib/bundler/plugin/installer/git.rb
rubygems-update-3.3.10 bundler/lib/bundler/plugin/installer/git.rb
bundler-2.3.10 lib/bundler/plugin/installer/git.rb
rubygems-update-3.3.9 bundler/lib/bundler/plugin/installer/git.rb
bundler-2.3.9 lib/bundler/plugin/installer/git.rb
rubygems-update-3.3.8 bundler/lib/bundler/plugin/installer/git.rb
bundler-2.3.8 lib/bundler/plugin/installer/git.rb
rubygems-update-3.3.7 bundler/lib/bundler/plugin/installer/git.rb
bundler-2.3.7 lib/bundler/plugin/installer/git.rb
rubygems-update-3.3.6 bundler/lib/bundler/plugin/installer/git.rb