GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: A xmpp4r wrapper turned Rails plugin...with a few advanced features like user registration and multi-user chat sends.
Homepage: http://github.com/kitplummer/xmpp4rails/wikis/home
Clone URL: git://github.com/kitplummer/xmpp4rails.git
removed rvooz and openfire references.
Kit Plummer (author)
Tue Apr 22 16:07:27 -0700 2008
commit  860b0c0bcbd27a81aab535f22178d727d889d48b
tree    b4823eb6350ebaf7ce519d4f1cd82b8e1e0e4ef0
parent  239fad7dbc6461c01a0380d7342cddc1aa6c4df6
...
23
24
25
26
 
27
28
29
...
35
36
37
38
 
39
40
41
...
43
44
45
46
 
47
48
49
...
51
52
53
54
 
55
56
57
...
67
68
69
70
 
71
72
73
...
23
24
25
 
26
27
28
29
...
35
36
37
 
38
39
40
41
...
43
44
45
 
46
47
48
49
...
51
52
53
 
54
55
56
57
...
67
68
69
 
70
71
72
73
0
@@ -23,7 +23,7 @@ require 'xmpp4r'
0
 module Xmpp4Rails
0
   def register_account jid, pw
0
     begin
0
- cl = Jabber::Client.new(Jabber::JID.new(jid + "/rvooz"))
0
+ cl = Jabber::Client.new(Jabber::JID.new(jid))
0
       logger.info "Connecting to register with: " + jid.to_s
0
       cl.connect
0
 
0
@@ -35,7 +35,7 @@ module Xmpp4Rails
0
       # Shutdown
0
       cl.close
0
     rescue Errno::ECONNREFUSED
0
- raise StandardError, "Connection to Openfire Failed."
0
+ raise StandardError, "Connection to XMPP Failed."
0
     rescue Jabber::ErrorException
0
       raise StandardError, "Account conflict."
0
     end
0
@@ -43,7 +43,7 @@ module Xmpp4Rails
0
 
0
   def unregister_account jid, pw
0
     begin
0
- cl = Jabber::Client.new(Jabber::JID.new(jid + "/rvooz"))
0
+ cl = Jabber::Client.new(Jabber::JID.new(jid))
0
       logger.info "Connecting to unregister with: " + jid.to_s
0
       cl.connect
0
       cl.auth(pw)
0
@@ -51,7 +51,7 @@ module Xmpp4Rails
0
 
0
       cl.close
0
     rescue Errno::ECONNREFUSED
0
- raise StandardError, "Connection to Openfire Failed."
0
+ raise StandardError, "Connection to XMPP Failed."
0
     end
0
 
0
   end
0
@@ -67,7 +67,7 @@ module Xmpp4Rails
0
 
0
       cl.close
0
     rescue
0
- raise StandardError, "Failed to change Openfire password."
0
+ raise StandardError, "Failed to change XMPP password."
0
     end
0
   end
0
    
...
18
19
20
21
22
23
24
25
...
18
19
20
 
 
21
22
23
0
@@ -18,8 +18,6 @@
0
 # @author: Kit Plummer (kitplummer@gmail.com)
0
 #
0
 
0
-require 'test/unit'
0
-
0
 class Xmpp4RailsTest < Test::Unit::TestCase
0
   # Replace this with your real tests.
0
   def test_this_plugin

Comments

    No one has commented yet.