- [BREAKING!] To follow changes with slack, client is now initialized with a webhook url instead of team & token. For help upgrading read the [upgrade from 0.6.1 guide](docs/upgrade-from-0.6.1.md)
#0.6.1
- fix bug in link_formatter to allow multiple links in a message
Recently slack changed the way incoming webhooks are handled. Instead of taking a team name and token, they now provide a unique (obfuscated) webhook url.
To upgrade the slack-notifier gem, you'll need to find your webhook url. In slack:
- go to you're configured integrations (https://team-name.slack.com/services)
- select **Incoming Webhooks**
- select the webhook that uses the slack-notifier gem
- find the webhook url under the heading **Integration Settings**
You'll then change the way you initialize your notifier
From:
```ruby
notifier =Slack::Notifier.new'team', 'token'
```
To:
```ruby
notifier =Slack::Notifier.new'WEBHOOK_URL'
```
Defaults & attachemnts will continue to work like they have
# => Messages will be posted to https://yourteam.slack.com/services/hooks/custom_hook_name
```
##Links
Slack requires links to be formatted a certain way, so slack-notifier will look through your message and attempt to convert any html or markdown links to slack's format before posting.
0 comments on commit
04006c8