Class: Schmersion::Version
- Inherits:
-
Object
- Object
- Schmersion::Version
- Defined in:
- lib/schmersion/version.rb
Instance Attribute Summary collapse
-
#commit_parser ⇒ Object
readonly
Returns the value of attribute commit_parser.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
- #commit_message ⇒ Object
- #commits ⇒ Object
- #end_commit ⇒ Object
-
#initialize(repo, version, commit_parser) ⇒ Version
constructor
A new instance of Version.
- #start_commit ⇒ Object
Constructor Details
#initialize(repo, version, commit_parser) ⇒ Version
Returns a new instance of Version.
9 10 11 12 13 |
# File 'lib/schmersion/version.rb', line 9 def initialize(repo, version, commit_parser) @repo = repo @version = version @commit_parser = commit_parser end |
Instance Attribute Details
#commit_parser ⇒ Object (readonly)
Returns the value of attribute commit_parser.
7 8 9 |
# File 'lib/schmersion/version.rb', line 7 def commit_parser @commit_parser end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
6 7 8 |
# File 'lib/schmersion/version.rb', line 6 def version @version end |
Instance Method Details
#commit_message ⇒ Object
27 28 29 |
# File 'lib/schmersion/version.rb', line 27 def "chore(release): #{version}" end |
#commits ⇒ Object
15 16 17 |
# File 'lib/schmersion/version.rb', line 15 def commits @commit_parser.commits end |
#end_commit ⇒ Object
23 24 25 |
# File 'lib/schmersion/version.rb', line 23 def end_commit @commit_parser.end_commit end |
#start_commit ⇒ Object
19 20 21 |
# File 'lib/schmersion/version.rb', line 19 def start_commit @commit_parser.start_commit end |