Module: Jabber
- Included in:
- Mack::Notifier::Adapters::Xmpp
- Defined in:
- lib/gems/xmpp4r-0.4/lib/xmpp4r/jid.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/x.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/iq.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/sasl.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/query.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/caps/c.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/client.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/errors.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/stream.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/xmpp4r.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/message.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/debuglog.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/muc/item.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/presence.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/callbacks.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/component.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/muc/x/muc.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/semaphore.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/tune/tune.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/connection.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/rpc/iq/rpc.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/xhtml/html.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/xmppstanza.rb,
lib/gems/xmpp4r-0.4/test/lib/clienttester.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/idgenerator.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/xmppelement.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/streamparser.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/delay/x/delay.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/framework/bot.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/framework/base.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/vcard/iq/vcard.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/muc/iq/mucadmin.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/muc/iq/mucowner.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/roster/x/roster.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/dataforms/x/data.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/pubsub/iq/pubsub.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/roster/iq/roster.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/bytestreams/iq/si.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/muc/x/mucuseritem.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/rpc/helper/client.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/rpc/helper/server.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/caps/helper/helper.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/command/iq/command.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/httpbinding/client.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/tune/helper/helper.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/vcard/helper/vcard.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/version/iq/version.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/muc/iq/mucadminitem.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/muc/x/mucuserinvite.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/muc/helper/mucclient.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/pubsub/children/item.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/roster/helper/roster.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/caps/helper/generator.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/muc/helper/mucbrowser.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/pubsub/children/event.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/pubsub/children/items.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/discovery/iq/discoinfo.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/discovery/iq/discoitems.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/pubsub/children/publish.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/command/helper/responder.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/pubsub/helper/nodehelper.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/version/helper/responder.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/bytestreams/iq/bytestreams.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/discovery/helper/responder.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/muc/helper/simplemucclient.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/bytestreams/helper/ibb/base.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/pubsub/children/node_config.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/pubsub/children/unsubscribe.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/pubsub/helper/servicehelper.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/pubsub/children/subscription.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/bytestreams/helper/ibb/target.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/pubsub/children/configuration.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/feature_negotiation/iq/feature.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/version/helper/simpleresponder.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/bytestreams/helper/filetransfer.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/bytestreams/helper/ibb/initiator.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/pubsub/children/subscription_config.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/bytestreams/helper/socks5bytestreams/base.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/bytestreams/helper/socks5bytestreams/server.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/bytestreams/helper/socks5bytestreams/socks5.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/bytestreams/helper/socks5bytestreams/target.rb,
lib/gems/xmpp4r-0.4/lib/xmpp4r/bytestreams/helper/socks5bytestreams/initiator.rb
Overview
XMPP4R - XMPP Library for Ruby
- License
-
Ruby’s license (see the LICENSE file) or GNU GPL, at your option.
Website::home.gna.org/xmpp4r/
Defined Under Namespace
Modules: Bytestreams, Caps, ClientTester, Command, Dataforms, Delay, Discovery, FeatureNegotiation, FileTransfer, Framework, HTTPBinding, MUC, PubSub, RPC, Roster, SASL, UserTune, Vcard, Version, XHTML, XParent Classes: ArgumentError, Callback, CallbackList, Client, ClientAuthenticationFailure, Component, ComponentAuthenticationFailure, Connection, ErrorResponse, IdGenerator, Iq, IqQuery, JID, JabberError, Message, NoNameXmlnsRegistered, Presence, SOCKS5Error, Semaphore, ServerError, Stream, StreamParser, X, XMPPElement, XMPPStanza
Constant Summary collapse
- XMPP4R_VERSION =
XMPP4R Version number. This is the ONLY place where the version number should be specified. This constant is used to determine the version of package tarballs and generated gems.
'0.4'
- @@debug =
Is debugging mode enabled ?
false
Class Method Summary collapse
-
.debug ⇒ Object
returns true if debugging mode is enabled.
-
.debug=(debug) ⇒ Object
Enable/disable debugging mode.
-
.debuglog(string) ⇒ Object
Outputs a string only if debugging mode is enabled.
- .logger ⇒ Object
- .logger=(logger) ⇒ Object
Class Method Details
.debug ⇒ Object
returns true if debugging mode is enabled. If you just want to log something if debugging is enabled, use Jabber::debuglog instead.
31 32 33 |
# File 'lib/gems/xmpp4r-0.4/lib/xmpp4r/debuglog.rb', line 31 def Jabber::debug @@debug end |
.debug=(debug) ⇒ Object
Enable/disable debugging mode. When debug mode is enabled, information can be logged using Jabber::debuglog. When debug mode is disabled, calls to Jabber::debuglog are just ignored.
22 23 24 25 26 27 |
# File 'lib/gems/xmpp4r-0.4/lib/xmpp4r/debuglog.rb', line 22 def Jabber::debug=(debug) @@debug = debug if @@debug debuglog('Debugging mode enabled.') end end |
.debuglog(string) ⇒ Object
Outputs a string only if debugging mode is enabled. If the string includes several lines, 4 spaces are added at the beginning of each line but the first one. Time is prepended to the string.
38 39 40 41 |
# File 'lib/gems/xmpp4r-0.4/lib/xmpp4r/debuglog.rb', line 38 def Jabber::debuglog(string) return if not @@debug logger.debug string.chomp.gsub("\n", "\n ") end |