No commit activity in last 3 years
No release in over 3 years
GitHub contribution count client
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 2.0
~> 10.0
~> 3.0
 Project Readme

Gem Version Build Status Gem Download MIT License

ContributionCount

Independent Gem

  • for scraping
    • nokogiri
  • for notify
    • line-notify-client
    • slack-incoming-webhooks

Installation

Add this line to your application's Gemfile:

gem 'contribution_count'

And then execute:

$ bundle

Or install it yourself as:

$ gem install contribution_count

Usage

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 code of conduct.

License

The gem is available as open source under the terms of the MIT License.

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