Class: Git::Tag
- Inherits:
-
Object
- Object
- Git::Tag
- Defined in:
- lib/tag_changelog/git/tag.rb
Overview
Represents a Git tag and its annotation.
Instance Attribute Summary collapse
-
#date ⇒ Object
readonly
Author commit date of the tag.
-
#version ⇒ Object
readonly
Tag version.
Instance Method Summary collapse
-
#initialize(tag) ⇒ Tag
constructor
Gets change information for a specific tagged version.
Constructor Details
#initialize(tag) ⇒ Tag
Gets change information for a specific tagged version.
30 31 32 33 |
# File 'lib/tag_changelog/git/tag.rb', line 30 def initialize(tag) @version = tag @date = Date.parse(Git.get_tag_date(tag)) end |
Instance Attribute Details
#date ⇒ Object (readonly)
Author commit date of the tag
21 22 23 |
# File 'lib/tag_changelog/git/tag.rb', line 21 def date @date end |
#version ⇒ Object (readonly)
Tag version
24 25 26 |
# File 'lib/tag_changelog/git/tag.rb', line 24 def version @version end |