Project

gigest

0.0
No commit activity in last 3 years
No release in over 3 years
Inspects Gemfiles across all repos for a GitHub user or org and generates Gem usage statistics.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0

Runtime

~> 2.0
 Project Readme

GIGEST

Build Status

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

  1. 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.

  1. 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.

  1. Get summary.

    analytics.summary

Returns you a Hash in the format:

{
  gem1: [repo1, repo2],
  gem2: [repo1, repo2, repo3, repo4]
}
  1. 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.