Class: Bundler::IncompleteSpecification

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

Overview

Represents a package name that was found to be incomplete when trying to materialize a fresh resolution or the lockfile.

Holds the actual partially complete set of specifications for the name. These are used so that they can be unlocked in a future resolution, and fix the situation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, partially_complete_specs = []) ⇒ IncompleteSpecification

Returns a new instance of IncompleteSpecification.



15
16
17
18
# File 'lib/bundler/incomplete_specification.rb', line 15

def initialize(name, partially_complete_specs = [])
  @name = name
  @partially_complete_specs = partially_complete_specs
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



13
14
15
# File 'lib/bundler/incomplete_specification.rb', line 13

def name
  @name
end

#partially_complete_specsObject (readonly)

Returns the value of attribute partially_complete_specs.



13
14
15
# File 'lib/bundler/incomplete_specification.rb', line 13

def partially_complete_specs
  @partially_complete_specs
end

Instance Method Details

#==(other) ⇒ Object



20
21
22
# File 'lib/bundler/incomplete_specification.rb', line 20

def ==(other)
  partially_complete_specs == other.partially_complete_specs
end