This commit is contained in:
Robert Gerus 2014-03-10 09:11:56 +01:00
parent d9c1b8c9c6
commit 180b5332de

View file

@ -7,7 +7,7 @@ include EventMachine::IRC::Commands
DataMapper.setup(:default, Config[:scrape][:db])
module Scrape
def download(uri)
def self.download(uri)
ext = "." + word.sub(/.*[.]([^.]*)/, '\1') if word.match(/[^.]+[.][^.]+/)
content = open(word).read
md5 = Digest::MD5.hexdigest(content)