nsnotify
Uses the built-in OS X Mountain Lion Notification Center to display messages. It uses a nice app by Eloy DurĂ¡n that gives you command line access to the service.
Installation
Add this line to your application's Gemfile:
gem 'nsnotify'
And then execute:
$ bundle
Or install it yourself as:
$ gem install nsnotify
Usage
require 'nsnotify'
# Use the notify method
Nsnotify.notify "Testing!", "Can you see me?!"
# Or one of the other convenience methods
# (success, error, warning, pending, info, broken)
Nsnotify.success "Yeah if this works!"
Nsnotify.error "Did something go wrong?!?"
# You can set the title to your app's name
# instead of that lame Nsnotify.
Nsnotify.app_name = "MyApp"
Nsnotify.success "Yeah, see me?!"
Todo
- Integration in Guard/Watchr and stuff.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request