obsws 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/obsws/base.rb +7 -7
- data/lib/obsws/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7305724ce1b19455dc9e9cbcfdb43691cc5bfb8d5cf66a54917aeadcf26a7ea2
|
4
|
+
data.tar.gz: 8b1423cb39e96c9af4357e4eae624f3654b678ba547d3f9758adad40714e0a2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 271c5e2b12ee3cae82fd2069ec66c64d58681f24bc85cf4a841bdfa981900e28512b5c8d827dce7932c22b53d72ded9d7f7798b4858a9b92145c59f7bdd9f0ed
|
7
|
+
data.tar.gz: ccb732c3e56389adb277492cf8bf0af0ff69a59687e46866618eb5fa75ad06c90ee65de4e7f191f6e618a23e19b35117871bfc614bcd3a4f399712d684c5bbd1
|
data/lib/obsws/base.rb
CHANGED
@@ -75,18 +75,18 @@ module OBSWS
|
|
75
75
|
end
|
76
76
|
|
77
77
|
def identify(auth)
|
78
|
+
payload = {
|
79
|
+
op: Mixin::OPCodes::IDENTIFY,
|
80
|
+
d: {
|
81
|
+
rpcVersion: 1,
|
82
|
+
eventSubscriptions: @subs
|
83
|
+
}
|
84
|
+
}
|
78
85
|
if auth
|
79
86
|
if @password.empty?
|
80
87
|
raise OBSWSError("auth enabled but no password provided")
|
81
88
|
end
|
82
89
|
LOGGER.info("initiating authentication")
|
83
|
-
payload = {
|
84
|
-
op: Mixin::OPCodes::IDENTIFY,
|
85
|
-
d: {
|
86
|
-
rpcVersion: 1,
|
87
|
-
eventSubscriptions: @subs
|
88
|
-
}
|
89
|
-
}
|
90
90
|
payload[:d][:authentication] = auth_token(**auth)
|
91
91
|
end
|
92
92
|
@driver.text(JSON.generate(payload))
|
data/lib/obsws/version.rb
CHANGED