Class: BundlerDate::SpecList

Inherits:
Object
  • Object
show all
Defined in:
lib/bundler_date/spec_list.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSpecList

Returns a new instance of SpecList.



7
8
9
10
11
12
# File 'lib/bundler_date/spec_list.rb', line 7

def initialize
  @definition = Bundler.definition
  Bundler.ui.silence { definition.resolve }
  Bundler.ui.silence { definition.resolve_remotely! }
  @specs = definition.specs
end

Instance Attribute Details

#definitionObject (readonly)

Returns the value of attribute definition.



5
6
7
# File 'lib/bundler_date/spec_list.rb', line 5

def definition
  @definition
end

Instance Method Details

#allObject



14
15
16
# File 'lib/bundler_date/spec_list.rb', line 14

def all
  specs.sort_by(&:name)
end

#specsObject



18
19
20
# File 'lib/bundler_date/spec_list.rb', line 18

def specs
  @specs.map { |s| Spec.new(s) }
end