Please sign in to comment.
Enabled setting the message color when sending to a room
Introduced an options hash that replaces the old notify boolean flag transparently and maintains backwards compatibility. New API is room.send 'nick', 'message', :notify => true, :color => 'red' Defaults stay the same: notify is false, color is yellow (set explicitly for simplicity of code, but that is the default of hipchat anyway) See API docs at https://www.hipchat.com/docs/api/method/rooms/message Also added a slew of specs for the new functionality, refactoring the mock for successful posts into a helper so things don't get bloated with repetitive mock code. Updated usage instructions in README accordingly.
- Loading branch information...
Showing with 75 additions and 15 deletions.