Sha256: d8061cc97b3f92a13219ddfb85b4ee3148afdb3f9c56433b6ee1779b768f59fa
Contents?: true
Size: 486 Bytes
Versions: 11
Compression:
Stored size: 486 Bytes
Contents
module Onebox module Engine class GiphyOnebox include Engine include StandardEmbed matches_regexp(/^https?:\/\/(giphy\.com\/gifs|gph\.is)\//) always_https def to_html oembed = get_oembed <<-HTML <a href="#{oembed[:url]}" target="_blank"> <img src="#{oembed[:image]}" width="#{oembed[:width]}" height="#{oembed[:height]}" #{Helpers.title_attr(oembed)}> </a> HTML end end end end
Version data entries
11 entries across 11 versions & 1 rubygems