Sha256: f2f081504e549cc9904c55ae4eb90cb668b998a5c4a4d04b059daddfbc1b995c
Contents?: true
Size: 535 Bytes
Versions: 1
Compression:
Stored size: 535 Bytes
Contents
module Onebox module Engine class GithubBlobOnebox include Engine include HTML matches do http maybe("www") domain("github") tld("com") anything with("/blob/") end private def data { url: @url, filename: raw.css(".final-path").inner_text, lines: raw.css("#files .file .info .mode + span").inner_text, file: raw.css("#files .file .blob-wrapper").inner_text } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
onebox-1.1.0 | lib/onebox/engine/github_blob_onebox.rb |