Sha256: 62cc5a484829c52baf2643b20b0e05702afb07eea2695544347edb43cc8152aa

Contents?: true

Size: 693 Bytes

Versions: 13

Compression:

Stored size: 693 Bytes

Contents

require 'ore/project'

module Ore
  #
  # Acts as a drop-in replacement for calling `Gem::Specification.new`
  # in a projects gemspec file.
  #
  module Specification
    #
    # Creates a new Gem Specification, and automatically populates it
    # using the metadata file.
    #
    # @yield [gemspec]
    #   The given block will be passed the populated Gem Specification
    #   object.
    #
    # @yieldparam [Gem::Specification] gemspec
    #   The newly created Gem Specification.
    #
    # @return [Gem::Specification]
    #   The Gem Specification.
    #
    # @see Project#to_gemspec
    #
    def Specification.new(&block)
      Project.find.to_gemspec(&block)
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
ore-core-0.1.5 lib/ore/specification.rb
ore-core-0.1.4 lib/ore/specification.rb
ore-core-0.1.3 lib/ore/specification.rb
ore-core-0.1.2 lib/ore/specification.rb
ore-core-0.1.1 lib/ore/specification.rb
ore-core-0.1.0 lib/ore/specification.rb
ore-0.2.3 lib/ore/specification.rb
ore-0.2.2 lib/ore/specification.rb
ore-0.2.1 lib/ore/specification.rb
ore-0.2.0 lib/ore/specification.rb
ore-0.1.4 lib/ore/specification.rb
ore-0.1.3 lib/ore/specification.rb
ore-0.1.2 lib/ore/specification.rb