Class: Gil
- Inherits:
-
Object
- Object
- Gil
- Defined in:
- lib/gil.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ Gil
constructor
A new instance of Gil.
- #summarise_commits(rev) ⇒ Object
Constructor Details
#initialize(options) ⇒ Gil
Returns a new instance of Gil.
81 82 83 |
# File 'lib/gil.rb', line 81 def initialize() @lighthouse = LighthouseProject.new() end |
Instance Method Details
#summarise_commits(rev) ⇒ Object
85 86 87 88 89 |
# File 'lib/gil.rb', line 85 def summarise_commits(rev) logentries = Git.get_log_entries(rev) ticketnumbers = logentries.map { |entry| find_ticket_number(entry) }.compact.uniq @lighthouse.get_tickets(ticketnumbers) end |