Sha256: 3ae9eb22202a878a40fd9ef33c7fc8fa7817fee747a87028ef8290f888505295

Contents?: true

Size: 483 Bytes

Versions: 12

Compression:

Stored size: 483 Bytes

Contents

module Physique
  class MetadataConfig
    def initialize
      @metadata = default_metadata

      Albacore.subscribe :build_version do |data|
        @metadata.version  = data.nuget_version
      end
    end

    def with_metadata
      yield @metadata
    end

    private

    def default_metadata
      metadata = Albacore::NugetModel::Metadata.new
      metadata.description = 'MISSING'
      metadata.authors = 'MISSING'
      metadata
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
physique-0.3.10 lib/physique/config.rb
physique-0.3.9 lib/physique/config.rb
physique-0.3.8 lib/physique/config.rb
physique-0.3.7 lib/physique/config.rb
physique-0.3.6 lib/physique/config.rb
physique-0.3.5 lib/physique/config.rb
physique-0.3.4 lib/physique/config.rb
physique-0.3.3 lib/physique/config.rb
physique-0.3.2 lib/physique/config.rb
physique-0.3.1 lib/physique/config.rb
physique-0.3.0 lib/physique/config.rb
physique-0.2.2 lib/physique/config.rb