1 Star 0 Fork 0

Jim/markup

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.kick 562 Bytes
一键复制 编辑 原始数据 按行查看 历史
Chris Wanstrath 提交于 2009-10-30 18:14 . add .kick, i love it
# 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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Ruby
1
https://gitee.com/jimcheung/markup.git
git@gitee.com:jimcheung/markup.git
jimcheung
markup
markup
master

搜索帮助