Sha256: 771862dba55a88891c589636560e75e4f9af6770e38f557db01d6aa635bc0251
Contents?: true
Size: 344 Bytes
Versions: 3
Compression:
Stored size: 344 Bytes
Contents
%w{ murlsh }.each { |m| require m } module Murlsh # try to fetch the content type and title of a url class AddPre50LookupContentTypeTitle < Plugin Hook = 'add_pre' def self.run(url, config) ask = URI(url.url).extend(Murlsh::UriAsk) url.content_type = ask.content_type url.title = ask.title end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
murlsh-0.8.1 | plugins/add_pre_50_lookup_content_type_title.rb |
murlsh-0.8.0 | plugins/add_pre_50_lookup_content_type_title.rb |
murlsh-0.7.0 | plugins/add_pre_50_lookup_content_type_title.rb |