Socket
Book a DemoInstallSign in
Socket

gigest

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gigest

3.2.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

GIGEST

Build Status

GItHub GEms STats. Discover Gems usage for a GitHub user or org!

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]
}

4) 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.

FAQs

Package last updated on 06 Sep 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.