This gem provides a (very) light wrapper around the HipChat gem, to make it easier to send notifications to HipChat rooms from Rails.
Add this line to your application's Gemfile:
gem 'notifier'And then execute:
$ bundleOr install it yourself as:
$ gem install notifierAdd the following to config/initializers/notifier.rb:
Notifier.configure do |config|
config.api_key = "<hipchat-api-key>"
config.room_name = "My Room"
config.user_name = "RoomBot"
config.environments = [:production]
endNotify HipChat from within your app:
Notifier::success("This is a success message!")
Notifier::warning("This is a warning message!")
Notifier::success("This is an error message!")