Sha256: 1720a4b31e1054ef79d9e4999801d2eab8e47843b1fcf033aeef247b0dc42d38
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
## bearychat-rb Simple ruby library to interact with [Bearychat](https://bearychat.com/) ## Installation Add this line to your application's Gemfile: ``` gem 'bearychat' ``` And then execute: $ bundle Or install it yourself as: $ gem install bearychat ## Usage ### Common Check bearychat [incoming API](https://github.com/bearyinnovative/bearychat-tutorial/blob/master/robots/incoming.md) ``` 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](http://opensource.org/licenses/MIT).
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bearychat-0.1.0 | README.md |