Class: Repository::Gem

Inherits:
Array
  • Object
show all
Defined in:
lib/bundler/repository.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, repository) ⇒ Gem

Returns a new instance of Gem.



60
61
62
63
64
65
66
67
# File 'lib/bundler/repository.rb', line 60

def initialize(name, repository)
  if repository.local?
    sub_path = repository.path.join(name)
    super([name, { :path => sub_path.exist? ? sub_path.to_s : repository.path.to_s }])
  else
    super([name, repository.options.dup])
  end
end