Sha256: f6e787dba2a2190de2fdacae4caa06f5d8df42b56500f33615154cc929aa3d1f
Contents?: true
Size: 1.44 KB
Versions: 3
Compression:
Stored size: 1.44 KB
Contents
# Bearychat::Notifier A simple wrapper for posting to bearychat channels ## Installation Add this line to your application's Gemfile: gem 'bearychat-notifier' And then execute: $ bundle Or install it yourself as: $ gem install bearychat-notifier ## Usage ```ruby options = { text: "text, this field may accept markdown", markdown: true, channel: "bearychat-dev", attachments: [ { title: "title_1", text: "attachment_text", color: "#ffffff", images: [ {"url": "http://example.com/index.jpg"} ] }] } @notifier = Bearychat::Notifier.new "webhook_url", options @notifier.ping "Hello world" ``` ## with exception_notification ```ruby Rails.application.config.middleware.use ExceptionNotification::Rack, :email => { :email_prefix => "[PREFIX] ", :sender_address => %{"notifier" <notifier@example.com>}, :exception_recipients => %w{exceptions@example.com} }, :bearychat => { text: "hello world", markdown: true, channel: "all", attachments: [] } ``` ## Contributing 1. Fork it ( https://github.com/[my-github-username]/bearychat-notifier/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request # bearychat-notifier
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bearychat-notifier-0.0.3 | README.md |
bearychat-notifier-0.0.2 | README.md |
bearychat-notifier-0.0.1 | README.md |