brainfart #2
This commit is contained in:
parent
d9c1b8c9c6
commit
180b5332de
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue