Sha256: 1c4337f2cda9ae3cc0c8c410424825ef11e5663985cefcec7dd066d795ff33ea

Contents?: true

Size: 971 Bytes

Versions: 3

Compression:

Stored size: 971 Bytes

Contents

require "socket"
require "ostruct"
require "optparse"
require "timeout"
require "iconv"
require "cgi"
require "open-uri"
require "net/http"

$stdout.sync = true

# A dAmn <=> IRC server.
module Potato
  # Used for making file requiring work properly
  # @api private
  ROOT = File.expand_path(File.dirname(__FILE__))
  
  autoload :Server,   "#{ROOT}/potato/irc/server.rb"
  
  # IRC namespace
  module IRC
    require             "#{ROOT}/potato/irc/events.rb"
    autoload :Client,   "#{ROOT}/potato/irc/client.rb"
    autoload :Packet,   "#{ROOT}/potato/irc/packet.rb"
    autoload :User,     "#{ROOT}/potato/irc/user.rb"
  end
  
  # dAmn namespace
  module DAmn
    require             "#{ROOT}/potato/damn/events.rb"
    autoload :Client,   "#{ROOT}/potato/damn/client.rb"
    autoload :Packet,   "#{ROOT}/potato/damn/packet.rb"
    autoload :Token,    "#{ROOT}/potato/damn/token.rb"
  end
end

Dir["#{Potato::ROOT}/potato/helpers/*.rb"].each do |f|
  require f
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
potato-0.0.10 lib/potato.rb
potato-0.0.7 lib/potato.rb
potato-0.0.6 lib/potato.rb