diff options
author | Aleksey Lim <alsroot@sugarlabs.org> | 2013-02-24 05:20:53 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@sugarlabs.org> | 2013-02-24 05:20:53 (GMT) |
commit | cfd98c246af5dde90c0ed242bf27ce3b60c9c208 (patch) | |
tree | c3111579539783a660ec2af0724bc9d04bd6b027 | |
parent | 32cb55dcf074bd552c7fca1cb2f1463e171b6bf0 (diff) |
Suppress minor warning
-rw-r--r-- | app/processors/push_processor.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/processors/push_processor.rb b/app/processors/push_processor.rb index c393746..99144c6 100644 --- a/app/processors/push_processor.rb +++ b/app/processors/push_processor.rb @@ -29,9 +29,11 @@ class PushProcessor include Patchwork include Emailer - PUSH_EVENT_GIT_OUTPUT_SEPARATOR = "\t" - PUSH_EVENT_GIT_OUTPUT_SEPARATOR_ESCAPED = "\\\t" - GIT_PRETTY_FORMAT = "format:#{['%H','%cn <%ce>','%at','%s','%an'].join(PUSH_EVENT_GIT_OUTPUT_SEPARATOR)}" + unless const_defined? :GIT_PRETTY_FORMAT + PUSH_EVENT_GIT_OUTPUT_SEPARATOR = "\t" + PUSH_EVENT_GIT_OUTPUT_SEPARATOR_ESCAPED = "\\\t" + GIT_PRETTY_FORMAT = "format:#{['%H','%cn <%ce>','%at','%s','%an'].join(PUSH_EVENT_GIT_OUTPUT_SEPARATOR)}" + end def on_message(message) load_message(message) |