The notification function for many platforms.
Ruby
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin the notify command Sep 29, 2010
lib migrate to bundler Jun 13, 2013
.gitignore migrate to bundler Jun 13, 2013
LICENSE Initial commit to notify. Jan 30, 2010
README.md
Rakefile migrate to bundler Jun 13, 2013
VERSION Version bump to 0.5.2 Jun 13, 2013
notify.gemspec migrate to bundler Jun 13, 2013
sample.rb Second commit to notify Jan 30, 2010

README.md

notify

"Notify" provides notification functionalities on cross platforms.

Feature

Notify supports the following features:

  • growl
  • notify-send
  • Growl for Windows (ruby_gntp)
  • libnotify
  • Mountain Lion Notification Center (terminal-notifier)

Installation

gem install notify

Usage

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" }

Command

% notify title messages

Copyright

Copyright (c) 2010 jugyo. See LICENSE for details.