Project

bearychat

0.0
No commit activity in last 3 years
No release in over 3 years
Use bearychat's incoming/rtm API, work with capistrano
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
~> 5.0
~> 10.0
~> 1.0

Runtime

~> 0.9
 Project Readme

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.