Remove load_model! method (we use make_model!)

This commit is contained in:
Joel McCoy
2015-01-21 15:26:41 -05:00
parent 500ece05bf
commit 1576d83577
2 changed files with 10 additions and 10 deletions

View File

@@ -3,9 +3,13 @@ GEM
specs:
addressable (2.3.6)
awesome_print (1.6.1)
aws_cf_signer (0.1.3)
bloomfilter-rb (2.1.1)
redis
buftok (0.2.0)
cloudinary (1.0.81)
aws_cf_signer
rest-client
coderay (1.1.0)
dotenv (1.0.2)
engtagger (0.2.0)
@@ -27,14 +31,19 @@ GEM
memoizable (0.4.2)
thread_safe (~> 0.3, >= 0.3.1)
method_source (0.8.2)
mime-types (2.4.3)
multipart-post (2.0.0)
naught (1.0.0)
netrc (0.10.2)
oauth (0.4.7)
pry (0.10.1)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
redis (3.2.0)
rest-client (1.7.2)
mime-types (>= 1.16, < 3.0)
netrc (~> 0.7)
rufus-scheduler (3.0.9)
tzinfo
simple_oauth (0.3.1)
@@ -69,5 +78,6 @@ PLATFORMS
ruby
DEPENDENCIES
cloudinary
dotenv
twitter_ebooks (= 3.0.7)

10
bots.rb
View File

@@ -225,16 +225,6 @@ class BoodooBot
text = obscure_curses(text)
super(ev, text, opts)
end
private
def load_model!
return if @model
@model_path ||= "model/#{original}.model"
log "Loading model #{model_path}"
@model = Ebooks::Model.load(model_path)
end
end
BoodooBot.new(SETTINGS['BOT_NAME']) do |bot|