Sha256: 2350fbf63d6710a8bfff70249716b0f6a2360bb14d2c568552d43aacced7dba5

Contents?: true

Size: 420 Bytes

Versions: 5

Compression:

Stored size: 420 Bytes

Contents

# frozen_string_literal:  true

require 'schmersion/message'

module Schmersion
  class Commit

    attr_reader :message
    attr_reader :ref
    attr_reader :date
    attr_reader :author
    attr_reader :raw_commit

    def initialize(commit)
      @message = Message.new(commit.message)
      @ref = commit.sha
      @date = commit.date
      @author = commit.author.name
      @raw_commit = commit
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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