xmpp4r-simple 0.8.0 → 0.8.1
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 +8 -0
- data/Rakefile +1 -1
- data/lib/xmpp4r-simple.rb +10 -7
- metadata +2 -2
data/CHANGELOG
CHANGED
data/Rakefile
CHANGED
@@ -25,7 +25,7 @@ require 'rcov/rcovtask'
|
|
25
25
|
spec = Gem::Specification.new do |s|
|
26
26
|
s.add_dependency('xmpp4r', '>= 0.3.0')
|
27
27
|
s.name = "xmpp4r-simple"
|
28
|
-
s.version = "0.8.
|
28
|
+
s.version = "0.8.1"
|
29
29
|
s.author = "Blaine Cook"
|
30
30
|
s.email = "romeda@gmail.com"
|
31
31
|
s.homepage = "http://xmpp4r-simple.rubyforge.org/"
|
data/lib/xmpp4r-simple.rb
CHANGED
@@ -298,6 +298,16 @@ module Jabber
|
|
298
298
|
def disconnect
|
299
299
|
disconnect!
|
300
300
|
end
|
301
|
+
|
302
|
+
# Queue messages for delivery once a user has accepted our authorization
|
303
|
+
# request. Works in conjunction with the deferred delivery thread.
|
304
|
+
#
|
305
|
+
# You can use this method if you want to manually add friends and still
|
306
|
+
# have the message queued for later delivery.
|
307
|
+
def deliver_deferred(jid, message, type)
|
308
|
+
msg = {:to => jid, :message => message, :type => type}
|
309
|
+
queue(:pending_messages) << [msg]
|
310
|
+
end
|
301
311
|
|
302
312
|
private
|
303
313
|
|
@@ -382,13 +392,6 @@ module Jabber
|
|
382
392
|
}
|
383
393
|
end
|
384
394
|
|
385
|
-
# Queue messages for delivery once a user has accepted our authorization
|
386
|
-
# request. Works in conjunction with the deferred delivery thread.
|
387
|
-
def deliver_deferred(jid, message, type) #:nodoc:
|
388
|
-
msg = {:to => jid, :message => message, :type => type}
|
389
|
-
queue(:pending_messages) << [msg]
|
390
|
-
end
|
391
|
-
|
392
395
|
def queue(queue)
|
393
396
|
@queues ||= Hash.new { |h,k| h[k] = Queue.new }
|
394
397
|
@queues[queue]
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: xmpp4r-simple
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.8.
|
7
|
-
date: 2006-
|
6
|
+
version: 0.8.1
|
7
|
+
date: 2006-12-05 00:00:00 -08:00
|
8
8
|
summary: A simplified Jabber client library.
|
9
9
|
require_paths:
|
10
10
|
- lib
|