neomsg 0.0.5 → 0.0.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.
- checksums.yaml +4 -4
- data/lib/clientlib.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5bb5e3557917b59d46688f3015ed27e4d487fead
|
4
|
+
data.tar.gz: 819577261d3aad3557822734cb3c0f8649dd21ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09746c8f81f8b8153a5cc6ab01a8813a0dca38e5768720720d07f7163d70877259f2d136260cb1db41fc99378e45c4aa908e0c398ec8e1334a6927b1451d8ff0
|
7
|
+
data.tar.gz: 77c453f43e9739209c9c6b1a617228b6bc8b939d793eb3e3a849ff77b3a2968d040b6355795f512965f73a6e6b6b2acaedea5411eef51d50d5a5c039e2a621d7
|
data/lib/clientlib.rb
CHANGED
@@ -11,7 +11,8 @@ class AMXClient
|
|
11
11
|
@sock = value
|
12
12
|
end
|
13
13
|
|
14
|
-
def initialize (hostname, username, password = '', keepalive = false, secure = true)
|
14
|
+
def initialize (app_id, hostname, username, password = '', keepalive = false, secure = true)
|
15
|
+
@app_id = app_id
|
15
16
|
@hostname = hostname
|
16
17
|
@secure = secure
|
17
18
|
if !password.empty? then
|
@@ -55,6 +56,7 @@ class AMXClient
|
|
55
56
|
private
|
56
57
|
|
57
58
|
def auth (username, password = '')
|
59
|
+
send_message "APP #{@app_id}"
|
58
60
|
token = send_message "AUTH #{username} #{password}"
|
59
61
|
return token.chop
|
60
62
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neomsg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Parks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Contains a simple clientlib and server config reader
|
14
14
|
email: bparks@synapsesoftware.com
|