Socket
Book a DemoInstallSign in
Socket

bearychat

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bearychat

1.0.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

bearychat-rb

Simple ruby library to interact with Bearychat

Installation

Add this line to your application's Gemfile:

gem 'bearychat'

And then execute:

$ bundle

Or install it yourself as:

$ gem install bearychat

Usage

Incoming

Check bearychat incoming API

require 'bearychat'
incoming = Bearychat.incoming('hook_uri')
incoming.send { text: '...', ... }

or

require 'bearychat'
incoming = Bearychat.incoming('hook_uri')
incoming.text = "Willllll"
incoming.markdown = true
incoming.attachments << {"title"=>"Professor John Frink=>", "text"=>"Numbers are fun. ", "color"=>"#ffa500", "images"=>[{"url"=>"http://img3.douban.com/icon/ul15067564-30.jpg"}]}

incoming.send

Capistrano3(git)

require 'bearychat/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

TODO

  • show git revision in starting
  • Capistrano2 support
  • not only Capistrano
  • test

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 22 Jul 2016

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.