Giter VIP home page Giter VIP logo

githubstats's People

Contributors

2016rshah avatar ajmeese7 avatar akerl avatar akerl-cultivator[bot] avatar bsdlp avatar kinduff avatar shih91 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

githubstats's Issues

Github HTML has changed, which breaks this project

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 ?

https://github.com/akerl-archived/githubstats/blob/8a2c91ce712f03182640ae00c989551fc0dfe100/lib/githubstats.rb#L148

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>

100% coverage

Really just need a way to test with and without rugged install

undefined method `[]' for nil:NilClass (NoMethodError)

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

GitHub Enterprise support

handle environment variables, or by parsing .gitconfig.

GITHUB_HOST=enterprise.fizzbuzz.com
GITHUB_URL=https://enterprise.fizzbuzz.com/

or

[github]
    host = enterprise.fizzbuzz.com

Help parameter for githubstats

githubstats should provide an option that dumps usage information/explains the way that it selects the current username.

spark

update readme to tell users to grab spark

Github no longer produces SVG file for Contribution Graph

As titled. Github is now producing a table instead of SVG.

<table data-hydro-click="{&quot;event_type&quot;:&quot;user_profile.click&quot;,&quot;payload&quot;:{&quot;profile_user_id&quot;:19749458,&quot;target&quot;:&quot;CONTRIBUTION_CALENDAR_SQUARE&quot;,&quot;user_id&quot;:null,&quot;originating_url&quot;:&quot;https://github.com/shih91&quot;}}" 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!

Unable to load data from Github (RuntimeError)

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>'

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.