Updated Upgrading to Guard 2.0 (markdown)

Rémy Coutable 2013-09-05 15:44:45 -07:00
Родитель e810f24cbd
Коммит bd96dd85a0
1 изменённых файлов: 4 добавлений и 4 удалений

@ -72,10 +72,10 @@ end
Notifiers are now classes with a common interface inherited from `Guard::Notifier::Base`:
* [require] `#notify(message, opts = {})`
* [optional] `.supported_hosts`
* [optional] `.available?(opts = {})`
* [optional] `.gem_name`
* _[required]_ `#notify(message, opts = {})`
* _[optional]_ `.supported_hosts`
* _[optional]_ `.available?(opts = {})`
* _[optional]_ `.gem_name`
**Breaking change:** The signature of `#notify` in the notifiers has changed from `#notify(type, title, message, image, options = {})` to `notify(message, opts = {})` (`:type`, `:title` and `:image` must now be passed in the `opts` hash.