jacs 0.4.1 → 0.4.2
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/lib/actionjabber.rb +1 -1
- data/lib/activejabber.rb +1 -1
- metadata +2 -2
data/lib/actionjabber.rb
CHANGED
@@ -24,7 +24,7 @@ module ActionJabber
|
|
24
24
|
end
|
25
25
|
end
|
26
26
|
class Server
|
27
|
-
# Sets up the server. The
|
27
|
+
# Sets up the server. The +controller+ argument is expected to be a class, not an instance.
|
28
28
|
def initialize(username, password, controller, debug = false)
|
29
29
|
@jabber = Jabber::Simple.new(username, password)
|
30
30
|
@controller = controller # Should be a class.
|
data/lib/activejabber.rb
CHANGED
@@ -22,7 +22,7 @@ module ActiveJabber
|
|
22
22
|
request_parts = []
|
23
23
|
Base::Request.new(self, nil, request_parts).send(method, *args)
|
24
24
|
end
|
25
|
-
# Sends a request to the client, path should be formatted like "/users" and
|
25
|
+
# Sends a request to the client, path should be formatted like "/users" and +opts+ may include a +:args+ (a string) and +:timeout+ (in seconds) keys.
|
26
26
|
def request(path, opts)
|
27
27
|
hash = self.generate_hash
|
28
28
|
message = hash + ':' + path.gsub(/\?$/, '')
|