badges/badgerbadgerbadger

View on GitHub
lib/badger/rubygem.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Badger
  class Rubygem
    def self.badge name
      badge_url = 'http://%s/gem/v/%s' % [
          Config.instance.config['badge_service'],
          name
      ]

      target_url = 'https://rubygems.org/gems/%s' % [
          name
      ]

      Badger.badge 'Gem Version', badge_url, target_url
    end
  end
end