lib/poise_boiler/helpers/rake/badges.rb
# Create a single badge string.
#
# @param alt [String] Alt text for the badge.
# @param img [String] Image URI. If just a relative path is givenm it
#   will be a Shields.io image.
# @param href [String] URI to link to.
# @return [String]
Create a single badge string.
Create a single badge string .
def badge(alt, img, href)
          img = "https://img.shields.io/#{img}.svg" unless URI.parse(img).host
          "[![#{alt}](#{img})](#{href})\n"
        end
def badge ( alt , img , href ) img = "https://img.shields.io/#{img}.svg" unless URI . parse ( img ) . host "[![#{alt}](#{img})](#{href})\n" end
Create a single badge string.
Create a single badge string .
# Default scheme and hostname because I can.
None
String
alt
Alt text for the badge.
Alt text for the badge .
img
Image URI. If just a relative path is givenm it will be a Shields.io image.
Image URI . If just a relative path is givenm it will be a Shields . io image .
href
URI to link to.
URI to link to .