UPGRADING.md in slack-ruby-bot-0.10.3 vs UPGRADING.md in slack-ruby-bot-0.10.4

- old
+ new

@@ -1,7 +1,26 @@ Upgrading SlackRubyBot ====================== +### Upgrading to >= 0.10.4 + +#### Replace `server.hooks.add` with `server.on` + +We have deprecated `SlackRubyBot::Server#hooks` in favor of `SlackRubyBot::Server#on` instance method. All users using `SlackRubyBot::Server#hooks` method should +change their codebase and use the new method instead. Method signature is not affected. + +Example: + +```ruby + # Given server is an instance of SlackRubyBot::Server + # + # Before + server.hooks.add :hello, Greet.new + + # After + server.on :hello, Greet.new +``` + ### Upgrading to >= 0.9.0 #### Add giphy to your Gemfile for GIF support The dependency on the `giphy` gem was dropped and GIFs don't appear by default. If you want GIF support, add `gem 'giphy'` to your **Gemfile**.