hipchat / hipchat-rb

HipChat HTTP API Wrapper in Ruby with Capistrano hooks
https://www.hipchat.com/docs/apiv2
MIT License
336 stars 172 forks source link

updated user send syntax to match room send, add configurable message-format #170

Closed flyinbutrs closed 8 years ago

flyinbutrs commented 8 years ago

Apologies, on #168, I accidentally caused the syntaxes of the room send and direct send to diverge. This fixes that divergence.

before:

hc.user(user).send(message, 'text', true)

after:

hc.user(user).send(message, message_format: 'text', notify: true)