Sha256: 331f4600eadc774e9663d46c5b2ef493e768c027717ebe1fc9c53ee204cdd26f
Contents?: true
Size: 1.84 KB
Versions: 1
Compression:
Stored size: 1.84 KB
Contents
# TerminalNotifier - Guard Style A simple Ruby wrapper around the [`terminal-notifier`][HOMEPAGE] command-line tool, which allows you to send User Notifications to the Notification Center on Mac OS X 10.8, or higher. This version has 4 different icons included for each status that [Guard][GUARD] supports: 1. Failed 2. Notify 3. Pending 4. Success ## Installation ``` $ gem install terminal-notifier-guard ``` ### OSX 10.8 users As of version `1.6.1`, we no longer bundle notifiers binaries in this gem. Please revert to version `1.5.3` for OSX 10.8 support. ## Usage You could also use the notifier directly. Examples are: ```ruby TerminalNotifier::Guard.notify('Hello World') TerminalNotifier::Guard.notify('Hello World', :title => 'Ruby', :subtitle => 'Programming Language') TerminalNotifier::Guard.notify('Hello World', :activate => 'com.apple.Safari') TerminalNotifier::Guard.notify('Hello World', :open => 'http://twitter.com/alloy') TerminalNotifier::Guard.notify('Hello World', :execute => 'say "OMG"') TerminalNotifier::Guard.notify('Hello World', :group => Process.pid) TerminalNotifier::Guard.remove(Process.pid) TerminalNotifier::Guard.list(Process.pid) TerminalNotifier::Guard.list TerminalNotifier::Guard.failed('This did not go well.') TerminalNotifier::Guard.success('This did not go bad.') TerminalNotifier::Guard.pending('This needs some work still') ``` ## License All the works are available under the MIT license. See [LICENSE][LICENSE] for details. [HOMEPAGE]: https://github.com/Springest/terminal-notifier-guard [GUARD]: https://github.com/guard/guard [LICENSE]: https://github.com/Springest/terminal-notifier-guard/blob/master/Ruby/LICENSE ## Contributors & Thanks to - @alloy (For the terminal-notifier) - @railsme (For a clean way to test for OSX version #15) - @jamilbx (For support for local terminal-notifier command #8)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
terminal-notifier-guard-1.6.1 | README.markdown |