Sha256: 7f1d3506d55a3c1200fba4ec5e15348703873d3abd54dee33804d79956a9ded9

Contents?: true

Size: 1.71 KB

Versions: 5

Compression:

Stored size: 1.71 KB

Contents

# Require the necessary files
%w[
  rubygems
  eventmachine
  nokogiri
  digest/md5
  digest/sha1
  logger

  blather/core_ext/active_support
  blather/core_ext/nokogiri

  blather/errors
  blather/errors/sasl_error
  blather/errors/stanza_error
  blather/errors/stream_error
  blather/jid
  blather/roster
  blather/roster_item
  blather/xmpp_node

  blather/stanza
  blather/stanza/iq
  blather/stanza/iq/query
  blather/stanza/iq/command
  blather/stanza/iq/roster
  blather/stanza/disco
  blather/stanza/disco/disco_info
  blather/stanza/disco/disco_items
  blather/stanza/message
  blather/stanza/presence
  blather/stanza/presence/status
  blather/stanza/presence/subscription

  blather/stanza/pubsub
  blather/stanza/pubsub/affiliations
  blather/stanza/pubsub/create
  blather/stanza/pubsub/event
  blather/stanza/pubsub/items
  blather/stanza/pubsub/publish
  blather/stanza/pubsub/retract
  blather/stanza/pubsub/subscribe
  blather/stanza/pubsub/subscription
  blather/stanza/pubsub/subscriptions
  blather/stanza/pubsub/unsubscribe

  blather/stanza/pubsub_owner
  blather/stanza/pubsub_owner/delete
  blather/stanza/pubsub_owner/purge

  blather/stanza/x

  blather/stream
  blather/stream/client
  blather/stream/component
  blather/stream/parser
  blather/stream/features
  blather/stream/features/resource
  blather/stream/features/sasl
  blather/stream/features/session
  blather/stream/features/tls
].each { |r| require r }

module Blather
  # @private
  @@logger = nil

  # Get or create an instance of Logger
  def self.logger
    unless @@logger
      self.logger = Logger.new($stdout)
      self.logger.level = Logger::INFO
    end
    @@logger
  end

  # Set the Logger
  def self.logger=(logger)
    @@logger = logger
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blather-0.4.14 lib/blather.rb
blather-0.4.13 lib/blather.rb
blather-0.4.12 lib/blather.rb
blather-0.4.11 lib/blather.rb
blather-0.4.10 lib/blather.rb