Giter VIP home page Giter VIP logo

ghuls-lib's Introduction

ghuls-lib

Gem Version

The library Ruby Gem for GHULS

Installation

Ruby Gems

gem install ghuls-lib

Bundler

Add this line to the application's Gemfile:

gem 'ghuls-lib'

And then execute:

$ bundle

Usage

require 'ghuls-lib'

ghuls-lib's People

Contributors

elifoster avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ghuls-lib's Issues

Deprecate analyze_user and analyze_orgs

@Strikingwolf should we deprecate/delete the analyze methods? They don't really do a whole lot over just running the langs/repos methods. The only difference is that they return nil, which we check with .nil?, but that can easily be switched to .empty?, as it would do the exact same thing.

More data

I think we should get even more data. Currently the data we get is limited. Sure it's interesting, but I think we could go deeper into the User Statistics.

Here are my current ideas:

  • Forks and stargazers: Histogram with each "line" being a repository and the total
  • Followers and following: pie chart? Not really sure for this one
  • Open issues/PRs, closed issues/PRs/merged PRs: Histogram with each "line" being a repository and the total
  • Public, forked, mirrored, private, and total repo count: Pie chart

@Strikingwolf I'd like to know your thoughts.

UndefinedConversionError

It sometimes errors with "\xE2" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError)

This should be a pretty simple fix by just using Marshal as the serializer for Octokit.

Incorrect data for almost all data points

All of my repos, followers, watchers, forks and stargazers are capped to 30, the issue/PR stats are also way too low but seems to be capped differently. I'm guessing you are only fetching the first page for each thing?

Ambiguity and crappy require

The require should be something like require 'ghuls-lib' rather than require 'ghuls', due to confusion. The CLI gem is "ghuls", while the lib gem is "ghuls-lib", so the require statements should reflect that.

Additionally, the module name is very ambiguous. It should be changed to something like GHULS::Library or GHULS::Utilities, or something. This will require changing everything in the ghuls-cli and ghuls-web repositories.

These two issues combined result in a NameError when running the CLI. However, the web app works fine.

Avatars

We should be able to get the user's avatar URL quickly so that it can be used in the web app. Can't really see any use in having it in the CLI.

Better object oriented style

Instead of having a bunch of module functions, we should have a GHULS class that can be initialized the same way configure_stuff works. I don't even know what I was thinking when I wrote this to be honest.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.