xmpp4r 0.5.5 → 0.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +13 -5
- data/README.rdoc +2 -10
- data/Rakefile +1 -1
- data/data/doc/xmpp4r/examples/advanced/recvfile.rb +1 -1
- data/data/doc/xmpp4r/examples/advanced/xmpping.rb +1 -1
- data/data/doc/xmpp4r/examples/basic/client.rb +1 -1
- data/lib/xmpp4r.rb +1 -1
- data/lib/xmpp4r/base64.rb +1 -1
- data/lib/xmpp4r/bytestreams.rb +1 -1
- data/lib/xmpp4r/bytestreams/helper/filetransfer.rb +2 -2
- data/lib/xmpp4r/bytestreams/helper/ibb/base.rb +1 -1
- data/lib/xmpp4r/bytestreams/helper/ibb/initiator.rb +1 -1
- data/lib/xmpp4r/bytestreams/helper/ibb/target.rb +1 -1
- data/lib/xmpp4r/bytestreams/helper/socks5bytestreams/base.rb +1 -1
- data/lib/xmpp4r/bytestreams/helper/socks5bytestreams/initiator.rb +1 -1
- data/lib/xmpp4r/bytestreams/helper/socks5bytestreams/server.rb +1 -1
- data/lib/xmpp4r/bytestreams/helper/socks5bytestreams/socks5.rb +1 -1
- data/lib/xmpp4r/bytestreams/helper/socks5bytestreams/target.rb +1 -1
- data/lib/xmpp4r/bytestreams/iq/bytestreams.rb +1 -1
- data/lib/xmpp4r/bytestreams/iq/si.rb +1 -1
- data/lib/xmpp4r/callbacks.rb +1 -1
- data/lib/xmpp4r/caps/c.rb +1 -1
- data/lib/xmpp4r/caps/helper/generator.rb +1 -1
- data/lib/xmpp4r/caps/helper/helper.rb +1 -1
- data/lib/xmpp4r/client.rb +2 -2
- data/lib/xmpp4r/component.rb +1 -1
- data/lib/xmpp4r/connection.rb +12 -3
- data/lib/xmpp4r/dataforms.rb +1 -1
- data/lib/xmpp4r/dataforms/x/data.rb +1 -1
- data/lib/xmpp4r/debuglog.rb +1 -1
- data/lib/xmpp4r/delay.rb +1 -1
- data/lib/xmpp4r/delay/x/delay.rb +1 -1
- data/lib/xmpp4r/discovery.rb +1 -1
- data/lib/xmpp4r/discovery/helper/helper.rb +1 -1
- data/lib/xmpp4r/discovery/helper/responder.rb +1 -1
- data/lib/xmpp4r/discovery/iq/discoinfo.rb +1 -1
- data/lib/xmpp4r/discovery/iq/discoitems.rb +1 -1
- data/lib/xmpp4r/entity_time.rb +1 -1
- data/lib/xmpp4r/entity_time/iq.rb +1 -1
- data/lib/xmpp4r/entity_time/responder.rb +1 -1
- data/lib/xmpp4r/errors.rb +1 -1
- data/lib/xmpp4r/feature_negotiation.rb +1 -1
- data/lib/xmpp4r/feature_negotiation/iq/feature.rb +1 -1
- data/lib/xmpp4r/httpbinding.rb +1 -1
- data/lib/xmpp4r/httpbinding/client.rb +1 -1
- data/lib/xmpp4r/idgenerator.rb +1 -1
- data/lib/xmpp4r/iq.rb +1 -1
- data/lib/xmpp4r/jid.rb +1 -1
- data/lib/xmpp4r/last/helper/helper.rb +1 -1
- data/lib/xmpp4r/last/iq/last.rb +1 -1
- data/lib/xmpp4r/location/helper/helper.rb +1 -1
- data/lib/xmpp4r/location/location.rb +1 -1
- data/lib/xmpp4r/message.rb +1 -1
- data/lib/xmpp4r/muc.rb +1 -1
- data/lib/xmpp4r/muc/helper/mucbrowser.rb +1 -1
- data/lib/xmpp4r/muc/helper/mucclient.rb +6 -6
- data/lib/xmpp4r/muc/helper/simplemucclient.rb +1 -1
- data/lib/xmpp4r/muc/iq/mucadmin.rb +1 -1
- data/lib/xmpp4r/muc/iq/mucadminitem.rb +1 -1
- data/lib/xmpp4r/muc/iq/mucowner.rb +1 -1
- data/lib/xmpp4r/muc/item.rb +1 -1
- data/lib/xmpp4r/muc/x/muc.rb +1 -1
- data/lib/xmpp4r/muc/x/mucuserinvite.rb +1 -1
- data/lib/xmpp4r/muc/x/mucuseritem.rb +1 -1
- data/lib/xmpp4r/observable.rb +1 -1
- data/lib/xmpp4r/observable/contact.rb +1 -1
- data/lib/xmpp4r/observable/helper.rb +1 -1
- data/lib/xmpp4r/observable/observable_thing.rb +1 -1
- data/lib/xmpp4r/observable/pubsub.rb +1 -1
- data/lib/xmpp4r/observable/subscription.rb +1 -1
- data/lib/xmpp4r/observable/thread_store.rb +1 -1
- data/lib/xmpp4r/presence.rb +1 -1
- data/lib/xmpp4r/pubsub/children/configuration.rb +1 -1
- data/lib/xmpp4r/pubsub/children/event.rb +1 -1
- data/lib/xmpp4r/pubsub/children/item.rb +1 -1
- data/lib/xmpp4r/pubsub/children/items.rb +1 -1
- data/lib/xmpp4r/pubsub/children/node_config.rb +1 -1
- data/lib/xmpp4r/pubsub/children/publish.rb +1 -1
- data/lib/xmpp4r/pubsub/children/retract.rb +1 -1
- data/lib/xmpp4r/pubsub/children/subscription.rb +1 -1
- data/lib/xmpp4r/pubsub/children/subscription_config.rb +1 -1
- data/lib/xmpp4r/pubsub/children/unsubscribe.rb +1 -1
- data/lib/xmpp4r/pubsub/helper/nodebrowser.rb +1 -1
- data/lib/xmpp4r/pubsub/helper/nodehelper.rb +1 -1
- data/lib/xmpp4r/pubsub/helper/servicehelper.rb +1 -1
- data/lib/xmpp4r/pubsub/iq/pubsub.rb +1 -1
- data/lib/xmpp4r/query.rb +1 -1
- data/lib/xmpp4r/rexmladdons.rb +1 -1
- data/lib/xmpp4r/roster.rb +1 -1
- data/lib/xmpp4r/roster/helper/roster.rb +1 -1
- data/lib/xmpp4r/roster/iq/roster.rb +1 -1
- data/lib/xmpp4r/roster/x/roster.rb +1 -1
- data/lib/xmpp4r/rpc/iq/rpc.rb +1 -1
- data/lib/xmpp4r/sasl.rb +1 -1
- data/lib/xmpp4r/semaphore.rb +1 -1
- data/lib/xmpp4r/stream.rb +1 -1
- data/lib/xmpp4r/streamparser.rb +14 -2
- data/lib/xmpp4r/tune/helper/helper.rb +1 -1
- data/lib/xmpp4r/tune/tune.rb +1 -1
- data/lib/xmpp4r/vcard.rb +1 -1
- data/lib/xmpp4r/vcard/helper/vcard.rb +1 -1
- data/lib/xmpp4r/vcard/iq/vcard.rb +1 -1
- data/lib/xmpp4r/version.rb +1 -1
- data/lib/xmpp4r/version/helper/responder.rb +1 -1
- data/lib/xmpp4r/version/helper/simpleresponder.rb +1 -1
- data/lib/xmpp4r/version/iq/version.rb +1 -1
- data/lib/xmpp4r/x.rb +1 -1
- data/lib/xmpp4r/xmpp4r.rb +2 -2
- data/lib/xmpp4r/xmppelement.rb +1 -1
- data/lib/xmpp4r/xmppstanza.rb +1 -1
- data/test/lib/clienttester.rb +1 -1
- data/test/tc_streamparser.rb +7 -0
- data/xmpp4r.gemspec +81 -2
- metadata +3 -3
data/lib/xmpp4r/errors.rb
CHANGED
data/lib/xmpp4r/httpbinding.rb
CHANGED
data/lib/xmpp4r/idgenerator.rb
CHANGED
data/lib/xmpp4r/iq.rb
CHANGED
data/lib/xmpp4r/jid.rb
CHANGED
data/lib/xmpp4r/last/iq/last.rb
CHANGED
data/lib/xmpp4r/message.rb
CHANGED
data/lib/xmpp4r/muc.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# =XMPP4R - XMPP Library for Ruby
|
2
2
|
# License:: Ruby's license (see the LICENSE file) or GNU GPL, at your option.
|
3
|
-
# Website::http://
|
3
|
+
# Website::http://xmpp4r.github.io
|
4
4
|
|
5
5
|
require 'xmpp4r/muc/x/muc'
|
6
6
|
require 'xmpp4r/muc/iq/mucowner'
|
@@ -85,10 +85,10 @@ module Jabber
|
|
85
85
|
xmuc = XMUC.new
|
86
86
|
xmuc.password = password
|
87
87
|
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
88
|
+
# Add history/maxstanzas as requested. false=0
|
89
|
+
xmuc.add_element REXML::Element.new('history').tap { |hist|
|
90
|
+
hist.add_attribute 'maxstanzas', (opts[:history]||0).to_i.to_s
|
91
|
+
} unless opts[:history].nil?
|
92
92
|
|
93
93
|
pres.add(xmuc)
|
94
94
|
|
@@ -457,7 +457,7 @@ module Jabber
|
|
457
457
|
iq.from = my_jid
|
458
458
|
iq.add(IqQueryMUCAdmin.new)
|
459
459
|
|
460
|
-
items = [
|
460
|
+
items = [items] unless items.kind_of? Array
|
461
461
|
items.each { |item|
|
462
462
|
iq.query.add(item)
|
463
463
|
}
|
data/lib/xmpp4r/muc/item.rb
CHANGED
data/lib/xmpp4r/muc/x/muc.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# =XMPP4R - XMPP Library for Ruby
|
2
2
|
# License:: Ruby's license (see the LICENSE file) or GNU GPL, at your option.
|
3
|
-
# Website::http://
|
3
|
+
# Website::http://xmpp4r.github.io
|
4
4
|
|
5
5
|
require 'xmpp4r/muc/x/mucuseritem'
|
6
6
|
require 'xmpp4r/muc/x/mucuserinvite'
|
data/lib/xmpp4r/observable.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# This file's copyright (c) 2009 by Pablo Lorenzzoni <pablo@propus.com.br>
|
4
4
|
# License:: Ruby's license (see the LICENSE file) or GNU GPL, at your option.
|
5
|
-
# Website::http://
|
5
|
+
# Website::http://xmpp4r.github.io
|
6
6
|
|
7
7
|
require 'xmpp4r/observable/thread_store.rb'
|
8
8
|
require 'xmpp4r/observable/observable_thing.rb'
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# This file's copyright (c) 2009 by Pablo Lorenzzoni <pablo@propus.com.br>
|
4
4
|
# License:: Ruby's license (see the LICENSE file) or GNU GPL, at your option.
|
5
|
-
# Website::http://
|
5
|
+
# Website::http://xmpp4r.github.io
|
6
6
|
#
|
7
7
|
module Jabber
|
8
8
|
class Observable
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# This file's copyright (c) 2009 by Pablo Lorenzzoni <pablo@propus.com.br>
|
4
4
|
# License:: Ruby's license (see the LICENSE file) or GNU GPL, at your option.
|
5
|
-
# Website::http://
|
5
|
+
# Website::http://xmpp4r.github.io
|
6
6
|
#
|
7
7
|
# This is the helper for xmpp4r/observable, and was based on XMPP4R-Observable
|
8
8
|
# by Pablo Lorenzoni <pablo@propus.com.br>.
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# This file's copyright (c) 2009 by Pablo Lorenzzoni <pablo@propus.com.br>
|
4
4
|
# License:: Ruby's license (see the LICENSE file) or GNU GPL, at your option.
|
5
|
-
# Website::http://
|
5
|
+
# Website::http://xmpp4r.github.io
|
6
6
|
#
|
7
7
|
# This was based on Observable module from Ruby.
|
8
8
|
module ObservableThing
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# This file's copyright (c) 2009 by Pablo Lorenzzoni <pablo@propus.com.br>
|
4
4
|
# License:: Ruby's license (see the LICENSE file) or GNU GPL, at your option.
|
5
|
-
# Website::http://
|
5
|
+
# Website::http://xmpp4r.github.io
|
6
6
|
|
7
7
|
require 'xmpp4r/pubsub'
|
8
8
|
require 'xmpp4r/pubsub/helper/servicehelper'
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# This file's copyright (c) 2009 by Pablo Lorenzzoni <pablo@propus.com.br>
|
4
4
|
# License:: Ruby's license (see the LICENSE file) or GNU GPL, at your option.
|
5
|
-
# Website::http://
|
5
|
+
# Website::http://xmpp4r.github.io
|
6
6
|
module Jabber
|
7
7
|
class Observable
|
8
8
|
# Jabber::Observable::Subscriptions - convenience class to deal with
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# This file's copyright (c) 2009 by Pablo Lorenzzoni <pablo@propus.com.br>
|
4
4
|
# License:: Ruby's license (see the LICENSE file) or GNU GPL, at your option.
|
5
|
-
# Website::http://
|
5
|
+
# Website::http://xmpp4r.github.io
|
6
6
|
#
|
7
7
|
# Class ThreadStore
|
8
8
|
class ThreadStore
|
data/lib/xmpp4r/presence.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# =XMPP4R - XMPP Library for Ruby
|
2
2
|
# License:: Ruby's license (see the LICENSE file) or GNU GPL, at your option.
|
3
|
-
# Website::http://
|
3
|
+
# Website::http://xmpp4r.github.io
|
4
4
|
|
5
5
|
require 'xmpp4r/xmppelement'
|
6
6
|
require 'xmpp4r/pubsub/children/configuration'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# =XMPP4R - XMPP Library for Ruby
|
2
2
|
# License:: Ruby's license (see the LICENSE file) or GNU GPL, at your option.
|
3
|
-
# Website::http://
|
3
|
+
# Website::http://xmpp4r.github.io
|
4
4
|
|
5
5
|
require 'xmpp4r/xmppelement'
|
6
6
|
require 'xmpp4r/pubsub/children/configuration'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# =XMPP4R - XMPP Library for Ruby
|
2
2
|
# License:: Ruby's license (see the LICENSE file) or GNU GPL, at your option.
|
3
|
-
# Website::http://
|
3
|
+
# Website::http://xmpp4r.github.io
|
4
4
|
#
|
5
5
|
# For documentation of the return values please see [Jabber::PubSub::ServiceHelper]
|
6
6
|
# This class is only a wrapper around [Jabber::PubSub::ServiceHelper]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# =XMPP4R - XMPP Library for Ruby
|
2
2
|
# License:: Ruby's license (see the LICENSE file) or GNU GPL, at your option.
|
3
|
-
# Website::http://
|
3
|
+
# Website::http://xmpp4r.github.io
|
4
4
|
#
|
5
5
|
# It's recommented to read the XEP-0060 before you use this Helper. (Maybe its
|
6
6
|
# better not use the helper for now ) ;)
|