Skip to content

Commit

Permalink
add Notifier::Base#build_output
Browse files Browse the repository at this point in the history
  • Loading branch information
sr committed Jul 22, 2010
1 parent b38861b commit 0c96fa1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions lib/integrity/notifier/base.rb
Expand Up @@ -40,7 +40,7 @@ def full_message
== Build Output:
#{escape(build.output)}
#{build_output}
EOM
end

Expand All @@ -50,11 +50,9 @@ def build_url
base_url.join("/#{build.project.permalink}/builds/#{build.id}")
end

private

def escape(s)
s.gsub("\e[0m", "").gsub(/\e\[3[1-7]m/, "")
end
def build_output
@build.output.gsub("\e[0m", "").gsub(/\e\[3[1-7]m/, "")
end
end
end
end
2 changes: 1 addition & 1 deletion lib/integrity/notifier/campfire.rb
Expand Up @@ -26,7 +26,7 @@ def full_message
Commit Date: #{build.commit.committed_at}
Commit Author: #{build.commit.author.name}
#{escape(build.output)}
#{build_output}
EOM
end

Expand Down

0 comments on commit 0c96fa1

Please sign in to comment.