From 1576d8357749b973e011a0e51ebe988dd2051de6 Mon Sep 17 00:00:00 2001 From: Joel McCoy Date: Wed, 21 Jan 2015 15:26:41 -0500 Subject: [PATCH] Remove load_model! method (we use make_model!) --- Gemfile.lock | 10 ++++++++++ bots.rb | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 46f905c..7bade4c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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) diff --git a/bots.rb b/bots.rb index 4620b8a..afb901c 100644 --- a/bots.rb +++ b/bots.rb @@ -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|