Class: MinaRevisioneer::ChangeLog
- Inherits:
-
MessageExtractor
- Object
- MessageExtractor
- MinaRevisioneer::ChangeLog
- Defined in:
- lib/mina_revisioneer/change_log.rb
Overview
Uses the first line of each commit message as entries to the changelog
can be configured by setting
:revisioneer_inclusion
for inclusiong (whitelisting) and
:revisioneer_exclusion
for exlusion (blacklisting)
Instance Attribute Summary
Attributes inherited from MessageExtractor
Instance Method Summary collapse
Methods inherited from MessageExtractor
#initialize, #last_deploy, #last_deploy_date, #last_deploy_sha, #number_of_new_commits, #repo, #sha
Constructor Details
This class inherits a constructor from MinaRevisioneer::MessageExtractor
Instance Method Details
#messages ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/mina_revisioneer/change_log.rb', line 10 def walker = Rugged::Walker.new(repo) walker.push sha walker.hide last_deploy_sha if last_deploy_sha = walker.each.to_a.map { |commit| commit..lines.first.strip } .select! { |line| line =~ revisioneer_inclusion } if revisioneer_inclusion .reject! { |line| line =~ revisioneer_exclusion } if revisioneer_exclusion end |
#revisioneer_exclusion ⇒ Object
26 27 28 |
# File 'lib/mina_revisioneer/change_log.rb', line 26 def revisioneer_exclusion eval "revisioneer_exclusion", binding end |
#revisioneer_inclusion ⇒ Object
22 23 24 |
# File 'lib/mina_revisioneer/change_log.rb', line 22 def revisioneer_inclusion eval "revisioneer_inclusion", binding end |