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:
$ bundle
Or install it yourself as:
$ gem install notifier
Add 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]
end
Notify 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!")