ghuls-apps / ghuls-lib Goto Github PK
View Code? Open in Web Editor NEWThe library Ruby Gem for GHULS
Home Page: https://rubygems.org/gems/ghuls-lib
License: MIT License
The library Ruby Gem for GHULS
Home Page: https://rubygems.org/gems/ghuls-lib
License: MIT License
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.
@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.
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?
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.
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:
@Strikingwolf I'd like to know your thoughts.
Does not catch Octokit::NotFound when getting a random user.
An example of a user that this occurs on would be @sferik.
Error: /usr/local/lib/ruby/gems/2.2.0/gems/ghuls-lib-1.1.2/lib/ghuls/lib.rb:78:in 'block in get_org_repos': undefined method 'each' for "":String (NoMethodError)
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.