Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework the send method and implement attachments and icons #2

Merged
merged 1 commit into from
Sep 8, 2014

Conversation

maknz
Copy link
Owner

@maknz maknz commented Sep 7, 2014

Rather than bogging down the send() function, we now have nice chainable methods for setting the username, channel and icon. The send function is now used to send the composed message along with the text for the message.

You can now send attachments with messages, and change the icon used to either a Slack emoji or a URL.

Also implemented some unit testing. You can see them being run on Travis-CI: https://travis-ci.org/maknz/slack. I will add a build badge to the README once this is merged.

This isn't BC with 0.1.x, but since we follow semantic versioning, we can make breaking changes for minor versions up until the 1.0 release.

@willwashburn can you take a look at the README (and maybe try it out, if you want to) and let me know what you think (and whether it satisfies the use cases from your PR). If all is well, I'll merge this and tag a 0.2 release.

Rather than bogging down the send() function, we now have nice chainable methods for setting the username, channel and icon. The send function is now used to send the composed message along with the text for the message.

Also implemented some unit testing.
@maknz
Copy link
Owner Author

maknz commented Sep 8, 2014

I'm going to merge this now since I'm pretty sure it's covering all bases. Please open an issue to discuss anything.

maknz added a commit that referenced this pull request Sep 8, 2014
Rework the send method and implement attachments and icons
@maknz maknz merged commit d2b7daf into master Sep 8, 2014
@maknz maknz deleted the develop branch September 13, 2014 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant