all repos — markup @ 86aafd93cd08f71c4da052f3dae122e5068fd16d

The code we use to render README.your_favorite_markup

add .kick, i love it
Chris Wanstrath chris@ozmm.org
Fri, 30 Oct 2009 18:14:35 -0700
commit

86aafd93cd08f71c4da052f3dae122e5068fd16d

parent

26e974f87fe058ebc31e6a317ecf12b400a3ed87

1 files changed, 26 insertions(+), 0 deletions(-)

jump to
A .kick

@@ -0,0 +1,26 @@

+# take control of the growl notifications +module GrowlHacks + def growl(type, subject, body, *args, &block) + case type + when Kicker::GROWL_NOTIFICATIONS[:succeeded] + puts subject = "Success" + body = body.split("\n").last + when Kicker::GROWL_NOTIFICATIONS[:failed] + subject = "Failure" + puts body + body = body.split("\n").last + else + return nil + end + super(type, subject, body, *args, &block) + end +end + +Kicker.send :extend, GrowlHacks + +# no logging +Kicker::Utils.module_eval do + def log(message) + nil + end +end