Skip to content

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

class method

Gem::Source::Git.new

new(name, repository, reference, submodules = false)

Creates a new git gem source for a gems from loaded from repository at the given reference. The name is only used to track the repository back to a gem dependencies file, it has no real significance as a git repository may contain multiple gems. If submodules is true, submodules will be checked out when the gem is installed.

See also #<=> #specs also in 4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0