GIGEST
GItHub GEms STats. Discover Gems usage for a GitHub user or org! Checkout Gigest App!
Do you want to know which are the most/least frequently used Gems for a GitHub user or organization? GIGEST gives you the ability to do that by inspecting the Gemfiles across all repos for a GitHub account.
Installation
gem install 'gigest'
Usage
-
Authenticate. You have 4 ways to do it.
analytics = Gigest::Analytics.new(login: "winston", password: "secret")
Authenticating with your username and password will give GIGEST access to public and private repos within your GitHub account and organization/s.
Authenticating with an OAuth access token will give GIGEST access to repos depending on the scopes which the OAuth access token was granted.
-
Process for a GitHub user or GitHub Organization.
analytics.process_for("winston")
This can take a while if the GitHub account contains A LOT of repos. Sit back and relax.
-
Get summary.
analytics.summary
Returns you a Hash in the format:
{
gem1: [repo1, repo2],
gem2: [repo1, repo2, repo3, repo4]
}
-
Get statistics.
analytics.statistics
Returns you an Array in the format:
[
{gem_name: "gem1", repositories: ["repo1", "repo2"], count: 2, percentage: 100.0},
{gem_name: "gem2", repositories: ["repo1"], count: 1, percentage: 50.0}
]
Contributing
Pull Requests are very welcomed (with specs, of course)!
To run all specs, just execute rake or rspec.
Author
GIGEST is maintained by Winston Teo.
You should follow Winston on Twitter, or find out more on WinstonYW and LinkedIn.
License
Copyright © 2013 Winston Teo Yong Wei. Free software, released under the MIT license.