Sha256: 4c5db7dd74dab062d76cd1eeae6eae1094d5e165aa482370d091c171ee732612

Contents?: true

Size: 1.41 KB

Versions: 32

Compression:

Stored size: 1.41 KB

Contents

# TerminalNotifier

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.


## Installation

```
$ gem install terminal-notifier
```


## Usage

For full information on all the options, see the tool’s [README][README].

Examples are:

```ruby
TerminalNotifier.notify('Hello World')
TerminalNotifier.notify('Hello World', :title => 'Ruby', :subtitle => 'Programming Language')
TerminalNotifier.notify('Hello World', :activate => 'com.apple.Safari')
TerminalNotifier.notify('Hello World', :open => 'http://twitter.com/alloy')
TerminalNotifier.notify('Hello World', :execute => 'say "OMG"')
TerminalNotifier.notify('Hello World', :group => Process.pid)
TerminalNotifier.notify('Hello World', :sender => 'com.apple.Safari')
TerminalNotifier.notify('Hello World', :sound => 'default')

TerminalNotifier.remove(Process.pid)

TerminalNotifier.list(Process.pid)
TerminalNotifier.list
```


## License

All the works are available under the MIT license. **Except** for
‘Terminal.icns’, which is a copy of Apple’s Terminal.app icon and as such is
copyright of Apple.

See [LICENSE][LICENSE] for details.

[HOMEPAGE]: https://github.com/alloy/terminal-notifier
[README]: https://github.com/alloy/terminal-notifier/blob/master/README.markdown
[LICENSE]: https://github.com/alloy/terminal-notifier/blob/master/Ruby/LICENSE

Version data entries

32 entries across 17 versions & 4 rubygems

Version Path
terminal-notifier-1.7.2 README.markdown
terminal-notifier-1.7.2 vendor/terminal-notifier/Ruby/README.markdown
gameboard-3.1.0 vendor/bundle/ruby/2.3.0/gems/terminal-notifier-1.7.1/vendor/terminal-notifier/Ruby/README.markdown
gameboard-3.1.0 vendor/bundle/ruby/2.3.0/gems/terminal-notifier-1.7.1/README.markdown
gameboard-3.0.0 vendor/bundle/ruby/2.3.0/gems/terminal-notifier-1.7.1/README.markdown
gameboard-3.0.0 vendor/bundle/ruby/2.3.0/gems/terminal-notifier-1.7.1/vendor/terminal-notifier/Ruby/README.markdown
second_step-0.1.2 secondstep-notify-1.0.0-osx/lib/ruby/lib/ruby/gems/2.2.0/gems/terminal-notifier-1.7.1/README.markdown
second_step-0.1.2 secondstep-notify-1.0.0-osx/lib/ruby/lib/ruby/gems/2.2.0/gems/terminal-notifier-1.7.1/vendor/terminal-notifier/Ruby/README.markdown
terminal-notifier-1.7.1 vendor/terminal-notifier/Ruby/README.markdown
terminal-notifier-1.7.1 README.markdown
terminal-notifier-1.7.0 README.markdown
terminal-notifier-1.7.0 vendor/terminal-notifier/Ruby/README.markdown
mastermind_adeybee-0.1.4 vendor/bundle/ruby/2.2.0/gems/terminal-notifier-1.6.3/vendor/terminal-notifier/Ruby/README.markdown
mastermind_adeybee-0.1.4 vendor/bundle/ruby/2.2.0/gems/terminal-notifier-1.6.3/README.markdown
mastermind_adeybee-0.1.3 vendor/bundle/ruby/2.2.0/gems/terminal-notifier-1.6.3/vendor/terminal-notifier/Ruby/README.markdown
mastermind_adeybee-0.1.3 vendor/bundle/ruby/2.2.0/gems/terminal-notifier-1.6.3/README.markdown
mastermind_adeybee-0.1.2 vendor/bundle/ruby/2.2.0/gems/terminal-notifier-1.6.3/README.markdown
mastermind_adeybee-0.1.2 vendor/bundle/ruby/2.2.0/gems/terminal-notifier-1.6.3/vendor/terminal-notifier/Ruby/README.markdown
mastermind_adeybee-0.1.1 vendor/bundle/ruby/2.2.0/gems/terminal-notifier-1.6.3/README.markdown
mastermind_adeybee-0.1.1 vendor/bundle/ruby/2.2.0/gems/terminal-notifier-1.6.3/vendor/terminal-notifier/Ruby/README.markdown