"Notify" provides notification functionalities on cross platforms.
Notify supports the following features:
- growl
- notify-send
- Growl for Windows (
ruby_gntp
) - libnotify
- Mountain Lion Notification Center (
terminal-notifier
)
gem install notify
require 'notify'
Notify.notify "title", "message"
or
ENV['NOTIFY'] = 'growlnotify'
require 'notify'
Notify.notify "title", "message"
Notify also allows passing in an app name to replace the default "ruby":
require 'notify'
Notify.notify "title", "message", { app_name: "My App" }
% notify title messages
Copyright (c) 2010 jugyo. See LICENSE for details.