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.
Files changed (4) hide show
  1. data/CHANGELOG +8 -0
  2. data/Rakefile +1 -1
  3. data/lib/xmpp4r-simple.rb +10 -7
  4. metadata +2 -2
data/CHANGELOG CHANGED
@@ -1,3 +1,11 @@
1
+ xmpp4r-simple (0.8.1)
2
+
3
+ [ Blaine Cook ]
4
+ * Make the deferred_delivery method public
5
+
6
+ -- Blaine Cook <blaine@obvious.com> Tue, 05 Dec 2006 17:39:14 -0800
7
+
8
+
1
9
  xmpp4r-simple (0.8.0)
2
10
 
3
11
  [ Blaine Cook ]
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.0"
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.0
7
- date: 2006-11-09 00:00:00 -08:00
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