akerl / githubstats Goto Github PK
View Code? Open in Web Editor NEWObject oriented interface for Github's contribution scoring system
License: MIT License
Object oriented interface for Github's contribution scoring system
License: MIT License
Probably can't happen until 2.2 comes out (and I deprecate 1.9.3)
Hey! This project is a downstream dependency for githubchart, which in turn is a dependency for githubchart-api. I believe the entire chain has been broken because I think github changed their HTML that we scrape from. In particular, I believe the svg used to have a field called data-count
which no longer exists. This is causing the data structure to be undefined, which breaks everything.
I'm not super familiar with this part of the codebase. Would you possibly be able to update this line based on the updated github HTML @akerl ?
In case it is helpful, this is what the HTML looks like nowadays:
<rect width="11" height="11" x="16" y="0" class="ContributionCalendar-day" data-date="2022-01-02" data-level="0" rx="2" ry="2">No contributions on January 2, 2022</rect>
Really just need a way to test with and without rugged install
jchen@hobbes> githubstats
/usr/local/var/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/githubstats-0.1.7/lib/githubstats.rb:60:in `initialize': undefined method `[]' for nil:NilClass (NoMethodError)
from /usr/local/var/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/githubstats-0.1.7/lib/githubstats.rb:35:in `new'
from /usr/local/var/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/githubstats-0.1.7/lib/githubstats.rb:35:in `new'
from /usr/local/var/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/githubstats-0.1.7/bin/githubstats:5:in `<top (required)>'
from /usr/local/bin/githubstats:23:in `load'
from /usr/local/bin/githubstats:23:in `<main>'
[1] jchen@hobbes> gem list | grep githubstats
githubstats (0.1.7)
jchen@hobbes> rbenv version
2.0.0-p247 (set by /usr/local/var/rbenv/version)
jchen@hobbes> rbenv which gem
/usr/local/var/rbenv/versions/2.0.0-p247/bin/gem
Should accept a date and return the score from that day
handle environment variables, or by parsing .gitconfig.
GITHUB_HOST=enterprise.fizzbuzz.com
GITHUB_URL=https://enterprise.fizzbuzz.com/
or
[github]
host = enterprise.fizzbuzz.com
githubstats should provide an option that dumps usage information/explains the way that it selects the current username.
update readme to tell users to grab spark
These two vulnerabilities CVE-2020-7595 and CVE-2019-5477 are raising alerts in some repositories.
Wondering if this repository is still active so I can make a PR to do the upgrade.
As titled. Github is now producing a table instead of SVG.
<table data-hydro-click="{"event_type":"user_profile.click","payload":{"profile_user_id":19749458,"target":"CONTRIBUTION_CALENDAR_SQUARE","user_id":null,"originating_url":"https://github.com/shih91"}}" data-hydro-click-hmac="fb50728049e7b8dcfb2ff37236c848138efd4672a445d4e2ac182e06a350fd95" role="grid" aria-readonly="true" class="ContributionCalendar-grid js-calendar-graph-table" style="border-spacing: 4px; overflow: hidden; position: relative" aria-describedby="contribution-graph-description">
<caption class="sr-only">Contribution Graph</caption>
<thead>
<tr style="height: 15px">
<td style="width: 29px">
<span class="sr-only">Day of Week</span>
</td>
<td class="ContributionCalendar-label" colspan="3" style="position: relative">
<span class="sr-only">July</span>
<span aria-hidden="true" style="position: absolute; top: 0">Jul</span>
</td>
<td class="ContributionCalendar-label" colspan="4" style="position: relative">
<span class="sr-only">August</span>
<span aria-hidden="true" style="position: absolute; top: 0">Aug</span>
</td>
...
...
...
</tr>
</tbody>
</table>
As such, usage of nokogiri library should be updated. I have attempted and has fixed the bug, please assign this issue to me. Thanks!
Same problem as the issue I just made on github chart, just making sure you're tracking. Cheers!
jchen@meow> githubstats -u fly
/usr/local/var/rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/githubstats-0.2.3/lib/githubstats.rb:94:in `rescue in download': Unable to load data from Github (RuntimeError)
from /usr/local/var/rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/githubstats-0.2.3/lib/githubstats.rb:92:in `download'
from /usr/local/var/rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/githubstats-0.2.3/lib/githubstats.rb:84:in `load_data'
from /usr/local/var/rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/githubstats-0.2.3/lib/githubstats.rb:98:in `method_missing'
from /usr/local/var/rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/githubstats-0.2.3/bin/githubstats:8:in `<top (required)>'
from /usr/local/var/rbenv/versions/2.0.0-p353/bin/githubstats:23:in `load'
from /usr/local/var/rbenv/versions/2.0.0-p353/bin/githubstats:23:in `<main>'
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.