Mac Notifier is notify "Notification Center" on apple script. simply, and asynchronously.
Add this line to your application's Gemfile:
gem 'mac_notifier', github: 'dllmomi/mac_notifier'
simple notification:
notification = MacNotifier::Notification.new(
'notification body',
'title',
'subtitle'
)
MacNotifier.notify(notification)
notification with voice:
notification = MacNotifier::Notification.new(
'notification body',
'title',
'subtitle'
)
MacNotifier.notify_with_voice(notification)
# voice called 'notification body'
- Fork it ( https://github.com/dllmomi/mac_notifier/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request