An open API service indexing awesome lists of open source software.

https://github.com/emono/contribution_count

[RubyGem]GitHub contribution count client
https://github.com/emono/contribution_count

contributing gem github ruby

Last synced: 3 months ago
JSON representation

[RubyGem]GitHub contribution count client

Awesome Lists containing this project

README

          

[![Gem Version](https://badge.fury.io/rb/contribution_count.svg)](https://badge.fury.io/rb/contribution_count)
[![Build Status](https://travis-ci.org/emono/contribution_count.svg?branch=master)](https://travis-ci.org/emono/contribution_count)
[![Gem Download](https://img.shields.io/gem/dt/contribution_count.svg)](https://rubygems.org/gems/contribution_count)
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)

# ContributionCount
- GitHub contribution count client
- https://rubygems.org/gems/contribution_count

# Independent Gem
- for scraping
- nokogiri
- for notify
- line-notify-client
- slack-incoming-webhooks

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'contribution_count'
```

And then execute:

$ bundle

Or install it yourself as:

$ gem install contribution_count

## Usage
```ruby
name = "github_account_name"
# 1year
ContributionCount.new(name).all
# today
ContributionCount.new(name).today
# yesterday
ContributionCount.new(name).yesterday
# select date
ContributionCount.new(name).date("yyyy-mm-dd")
# today contribution?
ContributionCount.new(name).contribution_today?
# select date contribution?
ContributionCount.new(name).contribution?("yyyy-mm-dd")
# notify line
ContributionCount.new(name).today_contribution_notify_line
```

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/contribution_count. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.

## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

## Code of Conduct

- Fork it ( https://github.com/emono/contribution_count )
- 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 a new Pull Request