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.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install nsnotify
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?!"
- Integration in Guard/Watchr and stuff.
- 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