Sha256: 85f85b1aa1f444851ccb29c995786868096cad72695ead8c34b21fbc95e7bfcd
Contents?: true
Size: 329 Bytes
Versions: 25
Compression:
Stored size: 329 Bytes
Contents
module HTML class Pipeline # HTML Filter for replacing http github urls with https versions. class HttpsFilter < Filter def call doc.css('a[href^="http://github.com"]').each do |element| element['href'] = element['href'].sub(/^http:/,'https:') end doc end end end end
Version data entries
25 entries across 25 versions & 3 rubygems