badgerkit
Simple api wrapper for submitting data to https://badgerhq.com
Installation
Add this line to your application's Gemfile:
gem 'badgerkit', :group => [:development, :test]
And then execute:
$ bundle
Usage
Without environment variables:
client = Badgerkit.new(
:access_token => '0dbce1478e94053d4282ccd4ace154c82a3475d5',
:source => 'github',
:repo => 'badgerhq/badgerkit.rb'
)
client.post('Documentation',
:value => 80,
:commit_sha1 => '0dbce1478e94053d4282ccd4ace154c82a3475d5',
:branch => 'master',
:archive => Badgerkit.archive('doc/')
)
With the following environment variables:
ENV['BADGER_ACCESS_TOKEN'] = '0dbce1478e94053d4282ccd4ace154c82a3475d5'
ENV['BADGER_SOURCE'] = 'github'
ENV['BADGER_REPO'] = 'badgerhq/badgerkit.rb'
Badgerkit.post('Documentation',
:value => 80,
:commit_sha1 => '0dbce1478e94053d4282ccd4ace154c82a3475d5',
:branch => 'master',
:archive => Badgerkit.archive('doc/')
)
Supported Ruby Versions
This library is tested against Travis and aims to support the following Ruby implementations:
- Ruby 1.9.3
- Ruby 2.0.0
- Ruby 2.1.1
Contributing
- Fork it ( http://github.com//badgekit/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 new Pull Request