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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c128f9332d398f7aebf7cfa0f25c3e5ab1dbd9a1d3b083699ace811a9a8ecc9c
4
- data.tar.gz: f587866f6b9546d3d681091f5fd525ba2b8a16f1b243e5f3e49edae61cd79e8e
3
+ metadata.gz: 7305724ce1b19455dc9e9cbcfdb43691cc5bfb8d5cf66a54917aeadcf26a7ea2
4
+ data.tar.gz: 8b1423cb39e96c9af4357e4eae624f3654b678ba547d3f9758adad40714e0a2e
5
5
  SHA512:
6
- metadata.gz: 6386ad4234987f9d527fdadd19674039162b2d446bb7edf1afc44621f65631738f69c1887442f1a99851b82516bbd4f857b13e59999dd987071fd74c9aa8b46a
7
- data.tar.gz: 2e1caa11d9206f3029256796aa56f29a1dd1e41f217859c30d8c7bfd0deecc761cf0ba9ca01bf05952bf7617c22bbcfeae849f0df8856462fadff14f05c1623c
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
@@ -11,7 +11,7 @@ module OBSWS
11
11
  end
12
12
 
13
13
  def patch
14
- 2
14
+ 3
15
15
  end
16
16
 
17
17
  def to_a
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: obsws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - onyx_online