Sha256: 19b53ad571cce64cae48607eab52801870589741524275ac723f384d532cd559
Contents?: true
Size: 394 Bytes
Versions: 3
Compression:
Stored size: 394 Bytes
Contents
# frozen_string_literal: true require "forwardable" module Gistory class VersionChange extend Forwardable def_delegators :@commit, :short_hash, :date attr_reader :commit, :version def initialize(commit:, version:) @commit = commit @version = version freeze end def to_s "Version #{version} (on #{date} by #{short_hash})" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gistory-0.4.0 | lib/gistory/version_change.rb |
gistory-0.3.0 | lib/gistory/version_change.rb |
gistory-0.2.1 | lib/gistory/version_change.rb |