Class: Herodotus::Collector
- Inherits:
-
Object
- Object
- Herodotus::Collector
- Defined in:
- lib/herodotus/collector.rb
Defined Under Namespace
Classes: Change
Constant Summary collapse
- CHANGES_REGEX =
/changelog.*?\n(.*)/mi.freeze
Instance Attribute Summary collapse
-
#changelog_filename ⇒ Object
Returns the value of attribute changelog_filename.
-
#changes ⇒ Object
Returns the value of attribute changes.
-
#git ⇒ Object
Returns the value of attribute git.
-
#since_ref ⇒ Object
Returns the value of attribute since_ref.
Instance Method Summary collapse
- #append_to_changelog ⇒ Object
-
#initialize(base_path, since_ref = nil) ⇒ Collector
constructor
A new instance of Collector.
- #print ⇒ Object
- #reporter ⇒ Object
Constructor Details
Instance Attribute Details
#changelog_filename ⇒ Object
Returns the value of attribute changelog_filename.
3 4 5 |
# File 'lib/herodotus/collector.rb', line 3 def changelog_filename @changelog_filename end |
#changes ⇒ Object
Returns the value of attribute changes.
3 4 5 |
# File 'lib/herodotus/collector.rb', line 3 def changes @changes end |
#git ⇒ Object
Returns the value of attribute git.
3 4 5 |
# File 'lib/herodotus/collector.rb', line 3 def git @git end |
#since_ref ⇒ Object
Returns the value of attribute since_ref.
3 4 5 |
# File 'lib/herodotus/collector.rb', line 3 def since_ref @since_ref end |
Instance Method Details
#append_to_changelog ⇒ Object
29 30 31 |
# File 'lib/herodotus/collector.rb', line 29 def append_to_changelog reporter.append_to_changelog end |
#print ⇒ Object
25 26 27 |
# File 'lib/herodotus/collector.rb', line 25 def print reporter.print end |