Skip to content
On this page

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

class · Ruby 3.0

Gem::Source::Git

< Gem::Source 2 instance methods 1 class methods

A git gem for use in a gem dependencies file.

Example:

Example
source =
  Gem::Source::Git.new 'rake', 'git@example:rake.git', 'rake-10.1.0', false

source.specs

Class methods 1

Instance methods 2

Attributes
Read

The name of the gem created by this git gem.

Does this repository need submodules checked out too?

Read

The commit reference used for checking out this git gem.

Read & Write

When false the cache for this repository will not be updated.

Read

The git repository this gem is sourced from.

Read & Write

The directory for cache and git gem installation