Sha256: 5e2c052bea4027db0211f35809bf3d9bc65a0fb98fbd617d7e1f2b83d93fd19b

Contents?: true

Size: 517 Bytes

Versions: 5

Compression:

Stored size: 517 Bytes

Contents

# frozen_string_literal: true

module Schmersion
  class Version

    attr_reader :version
    attr_reader :commit_parser

    def initialize(repo, version, commit_parser)
      @repo = repo
      @version = version
      @commit_parser = commit_parser
    end

    def commits
      @commit_parser.commits
    end

    def start_commit
      @commit_parser.start_commit
    end

    def end_commit
      @commit_parser.end_commit
    end

    def commit_message
      "chore(release): #{version}"
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
schmersion-1.1.3 lib/schmersion/version.rb
schmersion-1.1.2 lib/schmersion/version.rb
schmersion-1.1.0 lib/schmersion/version.rb
schmersion-1.0.1 lib/schmersion/version.rb
schmersion-1.0.0 lib/schmersion/version.rb