Sha256: 3cda09363a1215556d32631aebbecc9b4ea44ce4f44754e2df23a487b6ff71c1

Contents?: true

Size: 1.58 KB

Versions: 13

Compression:

Stored size: 1.58 KB

Contents

# Require the necessary files
%w[
  rubygems
  eventmachine
  nokogiri
  digest/md5
  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/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/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
  @@logger = nil
  def self.logger
    unless @@logger
      self.logger = Logger.new($stdout)
      self.logger.level = Logger::INFO
    end
    @@logger
  end

  def self.logger=(logger)
    @@logger = logger
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
sprsquish-blather-0.4.0 lib/blather.rb
sprsquish-blather-0.4.1 lib/blather.rb
sprsquish-blather-0.4.2 lib/blather.rb
sprsquish-blather-0.4.3 lib/blather.rb
sprsquish-blather-0.4.4 lib/blather.rb
blather-0.4.7 lib/blather.rb
blather-0.4.6 lib/blather.rb
blather-0.4.5 lib/blather.rb
blather-0.4.4 lib/blather.rb
blather-0.4.3 lib/blather.rb
blather-0.4.2 lib/blather.rb
blather-0.4.1 lib/blather.rb
blather-0.4.0 lib/blather.rb