README.md in slacked-0.8.0 vs README.md in slacked-0.9.0
- old
+ new
@@ -1,11 +1,15 @@
+[![Gem Version](https://badge.fury.io/rb/slacked.svg)](https://badge.fury.io/rb/slacked) [![Circle CI](https://circleci.com/gh/codelittinc/slacked.svg?style=svg)](https://circleci.com/gh/codelittinc/slacked)
+
# Slacked
This is a super simple Slack integration for Rails. A use case for this would be to post a notification in Slack when a new User is created or a certain action has been taken in your application.
Are there other gems that provide similar functionality? Yes. Do some of them provide more flexibility? Yes. The point of this was to make installing and integrating a 30 second process.
+This gem can be used with a rails application and enabled/disabled based on the environment config as you may see below
+
## Getting Started
Add this line to your application's Gemfile:
```ruby
@@ -70,9 +74,18 @@
def slacked
Slacked.post 'post created!'
end
end
```
+
+## Using with rails
+If you are using this gem inside a rails application you can enable or disable it based on your environment, to do it you only need to add the code below in your config file.
+
+```ruby
+config.slacked_disabled = true
+```
+
+The default value is false
## Contributors
- [Sean H.](https://github.com/seathony)
- [Kaio Magalhães](https://github.com/kaiomagalhaes)