# Idobadge [![Build Status](https://travis-ci.org/hanachin/idobadge.svg?branch=master)](https://travis-ci.org/hanachin/idobadge) [![Code Climate](https://codeclimate.com/github/hanachin/idobadge/badges/gpa.svg)](https://codeclimate.com/github/hanachin/idobadge) [![Test Coverage](https://codeclimate.com/github/hanachin/idobadge/badges/coverage.svg)](https://codeclimate.com/github/hanachin/idobadge) [![Dependency Status](https://gemnasium.com/hanachin/idobadge.svg)](https://gemnasium.com/hanachin/idobadge) Text badges generator for idobata.io generic webhook. ![badges screenshot](screenshot.png) ## Installation Add this line to your application's Gemfile: gem 'idobadge' And then execute: $ bundle Or install it yourself as: $ gem install idobadge ## Usage ``` ruby require 'idobadge' Idobadge.success('success') # => " success" Idobadge.warning('warning') # => " warning" Idobadge.important('important') # => " important" Idobadge.failure('failure') # => " failure" # customize icon Idobadge.success('success', icon: 'thumbs-o-up') # => " success" # no icon Idobadge.success('success', icon: nil) # => "success" ``` ## Contributing 1. Fork it ( https://github.com/hanachin/idobadge/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