Skip to content
[RubyGem]GitHub contribution count client
Ruby Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
spec
.gitignore
.rspec
.travis.yml
CODE_OF_CONDUCT.md
Gemfile
Gemfile.lock
LICENSE.txt
README.md
Rakefile
contribution_count.gemspec

README.md

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
You can’t perform that action at this time.