lib/chatterbot.rb in chatterbot-0.6.6 vs lib/chatterbot.rb in chatterbot-0.7.0
- old
+ new
@@ -26,11 +26,10 @@
end
#
# the big kahuna!
module Chatterbot
-
#
# load in our assorted modules
def self.load
require "chatterbot/config"
require "chatterbot/db"
@@ -40,12 +39,23 @@
require "chatterbot/client"
require "chatterbot/search"
require "chatterbot/tweet"
require "chatterbot/retweet"
require "chatterbot/reply"
+ require "chatterbot/followers"
require "chatterbot/helpers"
require "chatterbot/bot"
+ end
+
+ require 'chatterbot/version'
+
+ # Return a directory with the project libraries.
+ def self.libdir
+ t = [File.expand_path(File.dirname(__FILE__)), "#{Gem.dir}/gems/chatterbot-#{Chatterbot::VERSION}"]
+
+ t.each {|i| return i if File.readable?(i) }
+ raise "both paths are invalid: #{t}"
end
end
# mount up