Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added "ruby-gem-downloads-badge" as a project that uses shields #211

Merged
merged 2 commits into from
Jul 9, 2014
Merged

Added "ruby-gem-downloads-badge" as a project that uses shields #211

merged 2 commits into from
Jul 9, 2014

Conversation

bogdanRada
Copy link
Contributor

ruby-gem-downloads-badge is a project that shows the downloads count of a gem , but you can also specify a version or just "stable" and will display the download count of the latest stable version , or it can also display the total download count.
Here's some examples :

  ![](http://ruby-gem-downloads-badge.herokuapp.com/rails)

  ![](http://ruby-gem-downloads-badge.herokuapp.com/rails?type=total)

You can find more details on the readme file of the repository : https://github.com/bogdanRada/ruby-gem-downloads-badge

@espadrine
Copy link
Member

Ok.

Do you want to take a stab at adding that functionality through Shields.io?

@espadrine espadrine merged commit dc6c5c8 into badges:master Jul 9, 2014
@bogdanRada
Copy link
Contributor Author

@espadrine i am not sure i understand . Can you please elaborate?
I am already using the service from img.shields.io

@espadrine
Copy link
Member

@bogdanRada Right now, as you can see at http://shieds.io, we have support for showing download counts for npm, PyPI, Packagist, NuGet, and Chocotaley. We could have support for gems… I'll add support, unless you want to do that! If you do, it's probably a simple change in /server.js. You have the example of supporting gem versions on line 562, and the example of supporting total downloads on line 1208.

@bogdanRada
Copy link
Contributor Author

i'll give it a try . If i have any questions will post them here. Thanks

@bogdanRada
Copy link
Contributor Author

I have been trying to run the application locally using npm version 1.4.14

The npm install works fine
But after i execute command "sudo node server" I get error:

module.js:480
  process.dlopen(filename, module.exports);
          ^
Error: /home/bogdan/github/shields/node_modules/canvas/build/Release/canvas.node: undefined symbol: _ZN4node6Buffer3NewEPKcj
    at Object.Module._extensions..node (module.js:480:11)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/home/bogdan/github/shields/node_modules/canvas/lib/bindings.js:2:18)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)

Do you know how i can resolve this? I have been searching on google for a couple of hours and can't seem to find anything about this.

@bogdanRada
Copy link
Contributor Author

seems is working if i don't run the server with sudo .

@espadrine
Copy link
Member

That's odd… I definitely don't have that issue. I have the same npm version and node v0.10.29.

@bogdanRada
Copy link
Contributor Author

hmm, i had a smaller version of node v0.10.15 . Upgrading works ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants