forked from hipchat/hipchat-rb
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
3 changed files
with
75 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters