lib/chatterbot/skeleton.rb in chatterbot-0.7.0 vs lib/chatterbot/skeleton.rb in chatterbot-0.7.1

- old
+ new

@@ -5,14 +5,17 @@ class Skeleton class << self def generate(bot) path = File.join(Chatterbot.libdir, "..", "templates", "skeleton.txt") src = File.read(path) + puts bot.config.inspect opts = bot.config.merge({ :name => bot.botname, :timestamp => Time.now }) + puts opts.inspect + if RUBY_VERSION =~ /^1\.8\./ apply_vars(src, opts) else src % opts end