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
- Host: GitHub
- URL: https://github.com/emono/contribution_count
- Owner: emono
- License: mit
- Created: 2019-05-19T13:11:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-19T23:41:43.000Z (about 3 years ago)
- Last Synced: 2025-09-18T21:11:43.434Z (4 months ago)
- Topics: contributing, gem, github, ruby
- Language: Ruby
- Homepage: https://rubygems.org/gems/contribution_count
- Size: 15.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://badge.fury.io/rb/contribution_count)
[](https://travis-ci.org/emono/contribution_count)
[](https://rubygems.org/gems/contribution_count)
[](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