Module: Ore::Specification

Defined in:
lib/ore/specification.rb

Overview

Acts as a drop-in replacement for calling Gem::Specification.new in a projects gemspec file.

Class Method Summary collapse

Class Method Details

.new {|gemspec| ... } ⇒ Gem::Specification

Creates a new Gem Specification, and automatically populates it using the metadata file.

Yields:

  • (gemspec)

    The given block will be passed the populated Gem Specification object.

Yield Parameters:

  • gemspec (Gem::Specification)

    The newly created Gem Specification.

Returns:

  • (Gem::Specification)

    The Gem Specification.

See Also:



25
26
27
# File 'lib/ore/specification.rb', line 25

def Specification.new(&block)
  Project.find.to_gemspec(&block)
end