http://ruby-gem-downloads-badge.herokuapp.com/ - gem downloads shields
Clean and simple gem download badge, courtesy of shields.io, that displays the downloads number of your gem. By default will display the downloads count of the latest version of the gem provided.
Currently this service supports only SVG, PNG, JPG (or JPEG) and JSON format
The JSON format though will not display a badge but the data received from rubygems.org in JSON format
In your README.md, just add an image with the base URL (
http://ruby-gem-downloads-badge.herokuapp.com/) followed by the gem name and the version, for example :
You will then get a nice and pretty SVG with the downloads count of the gem provided:
Or you can use any extension you like like this (e.g. PNG, JSON):
You can also specify the version of the gem, for example:
You can also specify to display the total downloads count like this:
You can also specify to display the total downloads count for a version like this:
You can also customize the message displayed when using type=total params by using this:
If you want the downloads count to use metrics,, you can add
&metric=true at the end of the url.
If you want to change the color of your badge, just append
&color=COLOR_NAME to the image URL. By default, the badge is blue.
Available colors are (gem is rails):
If you want to style of the badge just append
&style=STYLE_NAME.to the image URL. By default, the badge is flat
Available styles are:
For social badges you can also use links for both sides of the badge like this:
If you want something else written on the badge you can use:
You can change the logo width by using this:
If you specify a version that is not valid like this, you will see a invalid image: