Class: Lolcommits::Plugin::Tranzlate

Inherits:
Base
  • Object
show all
Extended by:
Tranzlate::Lolspeak
Defined in:
lib/lolcommits/plugin/tranzlate.rb

Constant Summary

Constants included from Tranzlate::Lolspeak

Tranzlate::Lolspeak::LOL_DICTIONARY

Instance Method Summary collapse

Methods included from Tranzlate::Lolspeak

tranzlate

Instance Method Details

#run_pre_captureObject

Pre-capture hook, runs after lolcommits captures.

Translate the commmit message with lolspeak



17
18
19
20
21
# File 'lib/lolcommits/plugin/tranzlate.rb', line 17

def run_pre_capture
  debug "Commit message before: #{runner.message}"
  runner.message = self.class.tranzlate(runner.message)
  debug "Commit message after: #{runner.message}"
end