Socket
Book a DemoInstallSign in
Socket

bearychat-notifier

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bearychat-notifier

0.0.6
bundlerRubygems
Version published
Maintainers
1
Created
Source

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

    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

Rails.application.config.middleware.use ExceptionNotification::Rack,
  :email => {
    :email_prefix => "[PREFIX] ",
    :sender_address => %{"notifier" <notifier@example.com>},
    :exception_recipients => %w{exceptions@example.com}
  },
  :bearychat => {
    webhook_url: "Your webhook url"
    text: "hello world",
    markdown: true,
    channel: "all",
    attachments: []
  }

With Capistrano3(git)

require 'bearychat-notifier/capistrano'

set :bearychat_hook, your_bearychat_hook_uri

options

#default: true
set :bearychat_enabled

#default: #E51C23
set :bearychat_failed_color

#default: #259B24
set :bearychat_successed_color

#default: #FFC107
set :bearychat_starting_color

Contributing

  • Fork it ( https://github.com/[my-github-username]/bearychat-notifier/fork )
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create a new Pull Request

bearychat-notifier

FAQs

Package last updated on 11 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.